Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Navigator#taintEnabled / Navigator#oscpu appear in extracted WebIDL #10784

Open
gsnedders opened this issue Nov 20, 2024 · 0 comments
Open

Navigator#taintEnabled / Navigator#oscpu appear in extracted WebIDL #10784

gsnedders opened this issue Nov 20, 2024 · 0 comments

Comments

@gsnedders
Copy link
Member

What is the issue with the HTML Standard?

c.f. https://html.spec.whatwg.org/multipage/system-state.html#NavigatorID-partial

This is marked up as a generic WebIDL block, thus appears in webref as ordinary WebIDL: https://github.com/w3c/webref/blob/aa4cbe72346a8ca14110bbe14dbfe725eae73079/ed/idl/html.idl#L2368-L2371

This means that anything that is using the auto-extracted is only correct if the navigator compatibility mode is Gecko.

For example, wpt.fyi shows that every major browser aside from Firefox fails to correctly implement HTML's WebIDL: https://wpt.fyi/results/html/dom/idlharness.https.html%3Fexclude=(Document|Window|HTML.+)?q=subtest%3A%22navigator%20interface%3A%20attribute%20oscpu%22%20or%20subtest%3A%22navigator%20interface%3A%20operation%20taintenabled%28%29%22&run_id=5194715098251264&run_id=5181332684800000&run_id=5164305890934784

It might be worthwhile making the partial interface non-literal so that we don't end up with it appearing in the WebIDL for every UA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant