Closed
Bug 753642
Opened 12 years ago
Closed 12 years ago
Rip out the codegen for the Xray-related bits of worker bindings, since we don't have Xrays in workers
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla15
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(1 file)
If you look at the generated code in XMLHttpRequestBinding.cpp, in the worker part, then CreateInterfaceObjects does this: if (sMethods_ids[0] == JSID_VOID && (!InitIds(aCx, sMethods, sMethods_ids) || !InitIds(aCx, sAttributes, sAttributes_ids) || !InitIds(aCx, sConstants, sConstants_ids))) { but EnumerateProperties does this: for (size_t i = 0; i < sizeof(sChromeAttributes_ids); ++i) { if ((sChromeAttributes[i].flags & JSPROP_ENUMERATE) && !props.append(sChromeAttributes_ids[i])) { and similar for ResolveProperty. Looks pretty fishy. This happens because CGCreateInterfaceObjectsMethod is doing: if props.hasChromeOnly() and not self.descriptor.workers: idsToInit.append(props.variableName(True)) Maybe this is all a non-issue because there are no Xrays in workers, but then we just shouldn't generate EnumerateProperties/ResolveProperty for workers, right?
Assignee | ||
Comment 1•12 years ago
|
||
Ben says no Xrays in workers, so let's just not generate this gunk.
Attachment #623920 -
Flags: review?(peterv)
Assignee | ||
Updated•12 years ago
|
Assignee: nobody → bzbarsky
Whiteboard: [need review]
Updated•12 years ago
|
Attachment #623920 -
Flags: review?(peterv) → review+
Assignee | ||
Comment 2•12 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/6223b41be383
Flags: in-testsuite-
Whiteboard: [need review]
Target Milestone: --- → mozilla15
Comment 3•12 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/6223b41be383
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
OS: Mac OS X → All
Hardware: x86 → All
Summary: Why do we not need to init chromeonly jsids for workers? → Rip out the codegen for the Xray-related bits of worker bindings, since we don't have Xrays in workers
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•