Closed
Bug 909971
Opened 12 years ago
Closed 11 years ago
Remove nsThreadUtils.h include from BindingUtils.h
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla35
People
(Reporter: mccr8, Assigned: mathias.demare)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
|
952 bytes,
patch
|
bjacob
:
review+
|
Details | Diff | Splinter Review |
This is only used for NS_IsMainThread() in various binding .cpp files, but right now other things that include BindingUtils.h are going to get it, which is less than ideal.
bz's comments from bug 904826:
(In reply to Boris Zbarsky [:bz] from comment #23)
> We're going to need this for any .cpp file with non-worker descriptors that
> have any methods or attributes, and for any file with chromeonly stuff, and
> any file with a dictionary. Followup for narrowing this down further is
> fine, especially because it'll be easier once bug 909639 lands.
(In reply to Boris Zbarsky [:bz] from comment #24)
> Actually, the other simple option is to throw this into the always-included
> headers in codegen and thus hide from non-codegen includers of BindingUtils.
> The only issue with that is that it'll conflict with bug 909639.
Updated•12 years ago
|
Blocks: includehell
| Reporter | ||
Comment 1•12 years ago
|
||
With bug 913847, this will be MainThreadUtils.h instead that can be removed
Comment 2•12 years ago
|
||
Yeah, and MainThreadUtils.h is very cheap to include, so once bug 913847 lands, maybe this won't be a big deal anymore. But it's always nice to make BindingUtils.h smaller.
| Assignee | ||
Comment 3•11 years ago
|
||
I wanted to try to solve the issues resulting from removing the MainThreadUtils.h include, so I removed it.
However, I was able to complete the build and start it without issue.
Attachment #8486465 -
Flags: review?(bjacob)
Updated•11 years ago
|
Attachment #8486465 -
Flags: review?(bjacob) → review+
Comment 4•11 years ago
|
||
Pushed to try to make sure that that builds on all platforms:
https://tbpl.mozilla.org/?tree=Try&rev=3beae4433356
Comment 5•11 years ago
|
||
Updated•11 years ago
|
Assignee: nobody → mathias.demare
Comment 6•11 years ago
|
||
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla35
Updated•7 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•