Add support for extended attributes on types in Web IDL
Categories
(Core :: DOM: Core & HTML, enhancement, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox67 | --- | fixed |
People
(Reporter: d, Assigned: manishearth)
Details
Attachments
(11 files)
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review |
Comment 1•9 years ago
|
||
Updated•9 years ago
|
| Assignee | ||
Comment 2•7 years ago
|
||
I added support for this in Servo (which shares the webidl parser), might try to upstream it
Comment 3•7 years ago
|
||
That would be much appreciated! There are some codegen bits that would need to be fixed too, but I think the parser is the bulk of the work.
| Assignee | ||
Comment 4•7 years ago
|
||
An interesting complication I'm hitting is that this should also remove the ability to use these attributes on dictionary members and attrs, however we use extra attributes like [ChromeOnly] in a bunch of places, so we'll have to special-case parsing for those (not something I needed to do on the servo side).
I'll probably make it such that they continue to work the same, but resolve the parser ambiguity for attributes on the inside.
| Assignee | ||
Comment 5•7 years ago
|
||
Do we have tests for ensuring that things like [Clamp] etc work? Or do we just rely on their usage in the rest of the code?
| Assignee | ||
Comment 6•7 years ago
|
||
| Assignee | ||
Comment 7•7 years ago
|
||
Depends on D19733
| Assignee | ||
Comment 8•7 years ago
|
||
Depends on D19734
| Assignee | ||
Comment 9•7 years ago
|
||
See https://github.com/whatwg/html/pull/2580
Depends on D19735
| Assignee | ||
Comment 10•7 years ago
|
||
Depends on D19736
| Assignee | ||
Comment 11•7 years ago
|
||
Depends on D19737
| Assignee | ||
Comment 12•7 years ago
|
||
This should work.
A potential bit of cleanup I can do is to stop carrying around clamp/enforce/treatnullas info on arguments, attributes, and dictionaries, instead choosing to forward those to their child types. Not sure if I need to.
Updated•7 years ago
|
| Assignee | ||
Comment 13•7 years ago
|
||
Depends on D19738
| Assignee | ||
Comment 14•7 years ago
|
||
Depends on D20058
| Assignee | ||
Comment 15•7 years ago
|
||
Depends on D20059
| Assignee | ||
Comment 16•7 years ago
|
||
Depends on D20060
| Assignee | ||
Comment 17•7 years ago
|
||
Added patches making things hard errors, and updating specs.
Comment 18•7 years ago
|
||
I'm sorry about the review lag here. I needed to sit down and carefully check the changes against the spec grammar... Future reviews should be much faster.
| Assignee | ||
Comment 19•7 years ago
|
||
Addressed review comments for everything except writing tests). Working on these now.
| Assignee | ||
Comment 20•7 years ago
|
||
Tests pushed
| Assignee | ||
Comment 21•7 years ago
|
||
Depends on D20061
| Assignee | ||
Comment 22•7 years ago
|
||
Updated.
Comment 23•7 years ago
|
||
| Assignee | ||
Comment 24•7 years ago
|
||
Comment 25•7 years ago
|
||
Backed out 11 changesets (bug 1359269) for Linting failure. CLOSED TREE
Log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=231399589&repo=autoland&lineNumber=944
Backout:
https://hg.mozilla.org/integration/autoland/rev/0c70617150d9a41cb2f2f4fafcab9ae50c15ddd1
| Assignee | ||
Comment 26•7 years ago
|
||
Ah, some failures in the testsuite got introduced with the changes. Fixed.
| Assignee | ||
Comment 27•7 years ago
|
||
Comment 28•7 years ago
|
||
Comment 29•7 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/21deba7e36c5
https://hg.mozilla.org/mozilla-central/rev/87d4c51be96f
https://hg.mozilla.org/mozilla-central/rev/ee5af9ad9e45
https://hg.mozilla.org/mozilla-central/rev/3fccace0ea88
https://hg.mozilla.org/mozilla-central/rev/f4ec249fc52a
https://hg.mozilla.org/mozilla-central/rev/a64f79c456c9
https://hg.mozilla.org/mozilla-central/rev/b267c4012f94
https://hg.mozilla.org/mozilla-central/rev/eadc7a9fc56c
https://hg.mozilla.org/mozilla-central/rev/b26067ba0f78
https://hg.mozilla.org/mozilla-central/rev/759c00e21197
https://hg.mozilla.org/mozilla-central/rev/4166cae81546
Updated•7 years ago
|
Description
•