Closed
Bug 560572
Opened 15 years ago
Closed 15 years ago
Workers: ChromeWorker breaks --disable-ctypes builds
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
People
(Reporter: bent.mozilla, Assigned: bent.mozilla)
References
Details
Attachments
(1 file)
5.12 KB,
patch
|
dwitte
:
review+
|
Details | Diff | Splinter Review |
I didn't realize that we had that option. Need to fix.
Assignee | ||
Comment 1•15 years ago
|
||
Comment 2•15 years ago
|
||
Comment on attachment 440265 [details] [diff] [review]
Patch
>diff --git a/dom/src/threads/test/chromeWorker_subworker.js b/dom/src/threads/test/chromeWorker_subworker.js
>-if (!ctypes) {
>- throw "No ctypes!";
>-}
So this will make tests fail, right? Up to you, but I'm not so sure we want that -- it's gonna add noise for people who don't want a ctypes build and are happy living without the features it provides to other subsystems.
If you think ctypes should be an integral feature of workers in the browser, though -- in effect, a contract -- then I'm fine with it. (Can people disable workers?)
r=me either way.
Attachment #440265 -
Flags: review?(dwitte) → review+
Assignee | ||
Comment 3•15 years ago
|
||
Yeah, those are "-", not "+", so this works the way you want it to ;)
http://hg.mozilla.org/mozilla-central/rev/f8f6c5be311a
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Comment 4•15 years ago
|
||
Comment on attachment 440265 [details] [diff] [review]
Patch
> if (mPrivilegeModel == CHROME) {
> // Add chrome functions.
> success = JS_DefineFunctions(aCx, global, gDOMWorkerChromeFunctions);
> NS_ENSURE_TRUE(success, PR_FALSE);
>
>+#ifdef BUILD_CTYPES
> // Add the lazy getter for ctypes.
> success = JS_DefineProperty(aCx, global, "ctypes", JSVAL_VOID,
> nsDOMWorkerFunctions::CTypesLazyGetter, nsnull,
> 0);
> NS_ENSURE_TRUE(success, PR_FALSE);
> }
>+#endif
Oh?
Assignee | ||
Comment 5•15 years ago
|
||
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
•