Closed
Bug 1052052
Opened 11 years ago
Closed 11 years ago
Ensure that cx pushing only happens within AutoJSAPI
Categories
(Core :: XPConnect, defect)
Tracking
()
RESOLVED
FIXED
mozilla34
People
(Reporter: bholley, Assigned: bholley)
References
Details
Attachments
(3 files)
12.90 KB,
patch
|
gkrizsanits
:
review+
|
Details | Diff | Splinter Review |
72.91 KB,
patch
|
gkrizsanits
:
review+
|
Details | Diff | Splinter Review |
1.69 KB,
patch
|
gkrizsanits
:
review+
|
Details | Diff | Splinter Review |
The work here is 98% done by the other dependencies of bug 951991. The last step is to stop using it in AutoJSContext, and move it into a private namespace.
Assignee | ||
Comment 1•11 years ago
|
||
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #8471696 -
Flags: review?(gkrizsanits)
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #8471697 -
Flags: review?(gkrizsanits)
Assignee | ||
Comment 4•11 years ago
|
||
With this change, the only cx push left in the tree happens inside of AutoJSAPI. \o/
Attachment #8471698 -
Flags: review?(gkrizsanits)
Assignee | ||
Comment 5•11 years ago
|
||
Comment 6•11 years ago
|
||
Comment on attachment 8471696 [details] [diff] [review]
Part 1 - Hoist AutoCxPusher into ScriptSettings.h. v1
Review of attachment 8471696 [details] [diff] [review]:
-----------------------------------------------------------------
::: dom/base/ScriptSettings.h
@@ +23,5 @@
>
> namespace mozilla {
> namespace dom {
>
> +namespace danger {
Could you add here a one liner comment that is more explicit? Something like it's private, don't use it always use AutoJSAPI instead.
Attachment #8471696 -
Flags: review?(gkrizsanits) → review+
Updated•11 years ago
|
Attachment #8471697 -
Flags: review?(gkrizsanits) → review+
Updated•11 years ago
|
Attachment #8471698 -
Flags: review?(gkrizsanits) → review+
Assignee | ||
Comment 7•11 years ago
|
||
Note that I ended up moving AutoJSContext and friends to ScriptSettings.h instead, since I think that's really where they belong.
Comment 8•11 years ago
|
||
(In reply to Bobby Holley (:bholley) from comment #7)
> Note that I ended up moving AutoJSContext and friends to ScriptSettings.h
> instead, since I think that's really where they belong.
Sounds reasonable to me. Although what would make even more sense to me if all these fundamental AutoJSAPI/cx handling related classes ended up in a sub-header with a more descriptive name, since they are not necessary related to scripts, it's just an init for any call into JSAPI. But I really don't have a strong opinion here, what do you think?
Assignee | ||
Comment 9•11 years ago
|
||
(In reply to Gabor Krizsanits [:krizsa :gabor] from comment #8)
> (In reply to Bobby Holley (:bholley) from comment #7)
> > Note that I ended up moving AutoJSContext and friends to ScriptSettings.h
> > instead, since I think that's really where they belong.
>
> Sounds reasonable to me. Although what would make even more sense to me if
> all these fundamental AutoJSAPI/cx handling related classes ended up in a
> sub-header with a more descriptive name, since they are not necessary
> related to scripts, it's just an init for any call into JSAPI. But I really
> don't have a strong opinion here, what do you think?
We might consider renaming ScriptSettings.h at some point, but it's not a huge priority IMO. Shuffling all these headers around has actually taken me a lot of time (because I need to iteratively push to try to uncover Gonk failures), so I'm not really eager to mess around with it too much more at this point.
Comment 10•11 years ago
|
||
(In reply to Bobby Holley (:bholley) from comment #9)
> failures), so I'm not really eager to mess around with it too much more at
> this point.
Sure, I know how painful it can be... so no pushing really, was just an idea.
Assignee | ||
Comment 11•11 years ago
|
||
Assignee | ||
Comment 12•11 years ago
|
||
Assignee | ||
Comment 13•11 years ago
|
||
Comment 14•11 years ago
|
||
Backed out for B2G non-unified bustage.
https://hg.mozilla.org/integration/mozilla-inbound/rev/1d41a9159e58
https://tbpl.mozilla.org/php/getParsedLog.php?id=45969081&tree=Mozilla-Inbound
Assignee | ||
Comment 15•11 years ago
|
||
Assignee | ||
Comment 16•11 years ago
|
||
Comment 17•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/74f2a2d657e3
https://hg.mozilla.org/mozilla-central/rev/55783b8e332c
https://hg.mozilla.org/mozilla-central/rev/f9c51223ffc9
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
Updated•11 years ago
|
Flags: qe-verify-
You need to log in
before you can comment on or make changes to this bug.
Description
•