Closed
Bug 921453
Opened 12 years ago
Closed 11 years ago
WebIDL.py should reject ChromeOnly, Pref, PrefControlled, and Func extended attributes if [NoInterfaceObject] is also present
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: emk, Assigned: bzbarsky)
References
(Blocks 1 open bug)
Details
(Whiteboard: [lang=python])
Attachments
(1 file, 1 obsolete file)
See bug 901114.
Comment 1•12 years ago
|
||
Probably better done in Codegen.py.
| Assignee | ||
Updated•12 years ago
|
Whiteboard: [mentor=bz][lang=python]
Depends on: 921612
Updated•11 years ago
|
Mentor: bzbarsky
Whiteboard: [mentor=bz][lang=python] → [lang=python]
| Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(bzbarsky)
| Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8476088 -
Flags: review?(khuey)
| Assignee | ||
Updated•11 years ago
|
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
| Assignee | ||
Updated•11 years ago
|
Mentor: bzbarsky
Flags: needinfo?(bzbarsky)
| Assignee | ||
Comment 3•11 years ago
|
||
Attachment #8476093 -
Flags: review?(khuey)
| Assignee | ||
Updated•11 years ago
|
Attachment #8476088 -
Attachment is obsolete: true
Attachment #8476088 -
Flags: review?(khuey)
Attachment #8476093 -
Flags: review?(khuey) → review+
| Assignee | ||
Comment 4•11 years ago
|
||
Pushed:
https://hg.mozilla.org/integration/mozilla-inbound/rev/af6fa89ec550
And a followup for b2g-only silliness:
https://hg.mozilla.org/integration/mozilla-inbound/rev/4a56d8b3d613
Kyle, mind looking over that one to make sure I'm not missing something?
Flags: needinfo?(khuey)
Comment 5•11 years ago
|
||
Comment on attachment 8476093 [details] [diff] [review]
Don't allow conditional-exposure annotations on an interface that has no interface object, since they make no sense there
Review of attachment 8476093 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/bindings/parser/WebIDL.py
@@ +1013,5 @@
> self.parentScope.primaryGlobalName,
> [self.location])
>
> + # Conditional exposure makes no sense for interfaces with no
> + # interface object, unless they're navigator properties.
What about something like
[NoInterfaceObject, Constructor, CheckPermissions]
interface Foo {};
| Assignee | ||
Comment 6•11 years ago
|
||
NoInterfaceObject and Constructor couldn't be used together even before the changes in this bug, since NoInterfaceObject means the object that Constructor would make into a constructor doesn't even exist.
Comment 7•11 years ago
|
||
This never worked, but if the intention of CheckPermission and AvailableIn there was to conditionally expose startPoll/powerOff/etc in MozNFC, the annotations should be added directly to those methods.
Flags: needinfo?(allstars.chh)
Comment 8•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/af6fa89ec550
https://hg.mozilla.org/mozilla-central/rev/4a56d8b3d613
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Thanks Reuben for reporting this,
We have found this problem in Bug 1054139 (The current r+ patches will be updated again) and will fix it there.
Thanks
Flags: needinfo?(allstars.chh)
(In reply to Yoshi Huang[:allstars.chh] from comment #9)
> Thanks Reuben for reporting this,
> We have found this problem in Bug 1054139
Will move the Bug 1061055.
lgtm.
Flags: needinfo?(khuey)
Updated•6 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•