IDL: remove [PrimaryGlobal]
Categories
(Core :: DOM: Bindings (WebIDL), enhancement, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox71 | --- | fixed |
People
(Reporter: annevk, Assigned: bzbarsky)
References
Details
Attachments
(3 files)
| Assignee | ||
Comment 1•8 years ago
|
||
| Assignee | ||
Comment 2•8 years ago
|
||
Updated•8 years ago
|
| Reporter | ||
Updated•7 years ago
|
| Assignee | ||
Comment 3•6 years ago
|
||
There are no callers who want this. They all filter out external interfaces in various ways; we might as well do it up front.
| Assignee | ||
Comment 4•6 years ago
|
||
This avoids us needing to stick [Exposed=Window] on all of them.
| Assignee | ||
Comment 5•6 years ago
|
||
For review purposes, the important changes are in dom/bindings/Configuration.py
and dom/bindings/parser.
The changes to the IDL files were done by running these in dom/webidl
and dom/bindings/test:
perl -pi -e 's/^interface ([A-Za-z0-9_]+)($| [:{])/[Exposed=Window]\ninterface \1\2/' *.webidl
perl -pi -e 'BEGIN { $/ = undef; } s/[HTMLConstructor]\n[Exposed=Window]/[HTMLConstructor,\n Exposed=Window]/g' *.webidl
perl -pi -e 'BEGIN { $/ = undef; } s/[NoInterfaceObject]\n[Exposed=Window]/[NoInterfaceObject,\n Exposed=Window]/g' *.webidl
perl -pi -e 'BEGIN { $/ = undef; } s/[ChromeOnly]\n[Exposed=Window]/[ChromeOnly,\n Exposed=Window]/g' *.webidl
And running this in dom/chrome-webidl:
perl -pi -e 'BEGIN { $/ = undef; } s/[ChromeOnly]\ninterface/[ChromeOnly, Exposed=Window]\ninterface/g' *.webidl
and then fixing all the resulting parser failures. I then verified that the
generated code is the same as before this change.
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Updated•6 years ago
|
Comment 7•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/6a6f61b05da7
https://hg.mozilla.org/mozilla-central/rev/7cdac5476150
https://hg.mozilla.org/mozilla-central/rev/2416d17d33c1
Description
•