-
Notifications
You must be signed in to change notification settings - Fork 74
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
Examine tests which are commented out in <GlobalEventHandlers-onclick.html> #571
Comments
These are the tests commented out:
Basically, they verify that setting an event handler IDL attribute to a string or trusted type behaves the same as if we were setting the event handler content attribute. For the latter (covered by the three first tests), the spec defines attributes change steps that are called from the DOM spec. The PR whatwg/dom#1268 modifies these callers, to add a preliminary conversion from Trusted types to strings. For the former (covered by the tests commented out), the spec defines the steps to be run by the setter of an event handler IDL attribute, which eventually set eventHandler's value to the given value. The eventHandler's value can either null, a callback object or an internal raw uncompiled handler. The last one only seems to be used by the "attribute change steps" mentioned above. So I believe these uncommented tests do not correspond to anything in specs or open PRs and I'd suggest to remove them. If this is really something we want to support, probably the step 1.4.3 for the setter of an event handler IDL attribute should be modified to convert from Trusted types to strings and set the eventHandler's value to an internal raw uncompiled handler with proper value/location, and things should just work as desired. Incidentally, more comments on these tests:
I'll upload a PR. |
…minor tweaks. See w3c/trusted-types#571 (comment) Differential Revision: https://phabricator.services.mozilla.com/D233186 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1939893 gecko-commit: e058dd4b64b841edcbd3e5b5dfefd4f8a0ee96af gecko-reviewers: smaug
…lick.html and minor tweaks. r=smaug See w3c/trusted-types#571 (comment) Differential Revision: https://phabricator.services.mozilla.com/D233186
…minor tweaks. See w3c/trusted-types#571 (comment) Differential Revision: https://phabricator.services.mozilla.com/D233186 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1939893 gecko-commit: e058dd4b64b841edcbd3e5b5dfefd4f8a0ee96af gecko-reviewers: smaug
The proposed changes are done in web-platform-tests/wpt#49910 I believe we can close this issue (I can't do it, my github account does not have proper permission). If we really think we should allow setting a (handler) property by trusted type, then we should probably have a separate spec issue about it and work on something in the lines of what I mentioned above. |
@koto would you be able to grant Fred the same permissions as me please. |
…lick.html and minor tweaks. r=smaug See w3c/trusted-types#571 (comment) Differential Revision: https://phabricator.services.mozilla.com/D233186
…minor tweaks. See w3c/trusted-types#571 (comment) Differential Revision: https://phabricator.services.mozilla.com/D233186 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1939893 gecko-commit: e058dd4b64b841edcbd3e5b5dfefd4f8a0ee96af gecko-reviewers: smaug
https://searchfox.org/mozilla-central/rev/b6718bf263ae780289da471f0ea35797a09e2f05/testing/web-platform/tests/trusted-types/GlobalEventHandlers-onclick.html#52-91
CC @fred-wang
The text was updated successfully, but these errors were encountered: