Closed
Bug 901162
Opened 11 years ago
Closed 11 years ago
Move JS execution routines from nsIScriptContext to nsJSUtils
Categories
(Core :: DOM: Core & HTML, defect)
Tracking
()
RESOLVED
FIXED
mozilla26
People
(Reporter: bholley, Assigned: bholley)
References
Details
Attachments
(4 files, 3 obsolete files)
5.35 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
7.51 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
10.97 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
7.07 KB,
patch
|
bzbarsky
:
review+
|
Details | Diff | Splinter Review |
This is a continuation of the work I did in bug 824864.
Assignee | ||
Comment 1•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=650a5d0794c3
Assignee | ||
Comment 2•11 years ago
|
||
Attachment #785524 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #785525 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 4•11 years ago
|
||
Given that this is just XUL stuff, I don't think we need the microtask and script-disabled checks.
Attachment #785526 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 5•11 years ago
|
||
Given that this is just XUL stuff, I don't think we need the microtask and script-disabled checks.
Attachment #785527 -
Flags: review?(bzbarsky)
Comment 6•11 years ago
|
||
Comment on attachment 785524 [details] [diff] [review] Part 1 - Remove unused mExecuteDepth machinery. v1 Rev the IID, and r=me
Attachment #785524 -
Flags: review?(bzbarsky) → review+
Comment 7•11 years ago
|
||
Comment on attachment 785525 [details] [diff] [review] Part 2 - Hoist EvaluateString into nsJSUtils. v1 If !mScriptsEnabled && aRetValue, we need to set *aRetValue to JS::UndefinedValue(). >+ // Scope the JSAutoCompartment so that it gets destroyed before we pop the >+ // cx and potentially call JS_RestoreFrameChain. The bit about popping the cx doesn't make sense in the new setup, since we're not pushing the cx ourselves. Is the JS_RestoreFrameChain bit just talking about what happens when we pop? On the other hand, should we be asserting that the cx is already pushed? >+ // Wrap the return value into whatever aCx was in. "compartment" went AWOL from this comment. r=me with the issues above addressed.
Attachment #785525 -
Flags: review?(bzbarsky) → review+
Comment 8•11 years ago
|
||
Comment on attachment 785526 [details] [diff] [review] Part 3 - Inline CompileScript into the one caller. v1 There is no microtask around at all, so not sure what that part of the commit comment is talking about. But I'm not convinced about the behavior change to always run scripts in remote XUL... yes, I know it's an edge case to have that and turn off script, but seems like we still shouldn't run script then.
Attachment #785526 -
Flags: review?(bzbarsky) → review-
Comment 9•11 years ago
|
||
Comment on attachment 785527 [details] [diff] [review] Part 4 - Inline ExecuteScript in the one caller. v1 I do think we want the microtask here, though, in addition to the comments about not executing if script is disabled. :(
Attachment #785527 -
Flags: review?(bzbarsky) → review-
Assignee | ||
Comment 10•11 years ago
|
||
Attachment #787267 -
Flags: review?(bzbarsky)
Assignee | ||
Comment 11•11 years ago
|
||
Attachment #785526 -
Attachment is obsolete: true
Attachment #785527 -
Attachment is obsolete: true
Attachment #787268 -
Flags: review?(bzbarsky)
Comment 12•11 years ago
|
||
Comment on attachment 787267 [details] [diff] [review] Part 3 - Inline CompileScript into the one caller. v2 Don't we need to bail on mLangVersion being UNKNOWN? Or can that not happen? Also, we need to unmarkgray the scope. r=me with those fixed.
Attachment #787267 -
Flags: review?(bzbarsky) → review+
Comment 13•11 years ago
|
||
Comment on attachment 787268 [details] [diff] [review] Part 4 - Inline ExecuteScript in the one caller. v2 Why is it ok to drop the unmarkgray calls? Why is it safe to no longer do the things ScriptEvaluated used to do? Especially the operation callback bits.
Updated•11 years ago
|
Flags: needinfo?(bobbyholley+bmo)
Assignee | ||
Comment 14•11 years ago
|
||
Attachment #787268 -
Attachment is obsolete: true
Attachment #787268 -
Flags: review?(bzbarsky)
Attachment #787641 -
Flags: review?(bzbarsky)
Assignee | ||
Updated•11 years ago
|
Flags: needinfo?(bobbyholley+bmo)
Comment 15•11 years ago
|
||
Comment on attachment 787641 [details] [diff] [review] Part 4 - Inline ExecuteScript in the one caller. v3 r=me
Attachment #787641 -
Flags: review?(bzbarsky) → review+
Assignee | ||
Comment 16•11 years ago
|
||
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/b0b4166c8807 remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/c4b14042bc32 remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/a429d61544af remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/5ede20316d32
Comment 17•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/b0b4166c8807 https://hg.mozilla.org/mozilla-central/rev/c4b14042bc32 https://hg.mozilla.org/mozilla-central/rev/a429d61544af https://hg.mozilla.org/mozilla-central/rev/5ede20316d32
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla26
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
•