Non-scriptable interfaces don't need to be marked builtinclass
Categories
(Core :: XPCOM, task, P3)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox107 | --- | fixed |
People
(Reporter: mccr8, Assigned: mccr8)
References
Details
Attachments
(2 files)
Non-scriptable interfaces can't be implemented by JS, so they don't need to be marked builtinclass. I think we can make this an error once the existing instances are cleaned up. (Bug 1792334 is marked as a dependency because XPConnect is a major offender here.)
| Assignee | ||
Comment 1•3 years ago
|
||
Interfaces can also be marked [noscript] which doesn't make any sense, so I think that should also be an error.
| Assignee | ||
Comment 2•3 years ago
|
||
Well, [noscript] on interfaces is redundant, as all interfaces are not scriptable unless they say they [scriptable].
| Assignee | ||
Comment 3•3 years ago
|
||
The [noscript] attribute does nothing on XPIDL interfaces, so make it
invalid so people don't think something might be affected if they set it.
| Assignee | ||
Comment 4•3 years ago
|
||
If an interface isn't scriptable, then it is invisible to script, so it
can't be implemented by it.
Comment 6•3 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/aae62785df37
https://hg.mozilla.org/mozilla-central/rev/b5c47c0780e5
Description
•