Closed
Bug 839467
Opened 11 years ago
Closed 11 years ago
Remove JSContext switching in AdoptNode
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla23
People
(Reporter: bholley, Assigned: bholley)
References
Details
Attachments
(2 files)
4.78 KB,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
11.89 KB,
patch
|
mrbkap
:
review+
|
Details | Diff | Splinter Review |
Followup from bug 834732 part 10.
Assignee | ||
Comment 1•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=0883fc3666af
Assignee | ||
Comment 2•11 years ago
|
||
https://tbpl.mozilla.org/?tree=Try&rev=a8c0e626d332
Assignee | ||
Comment 3•11 years ago
|
||
Attachment #732538 -
Flags: review?(mrbkap)
Assignee | ||
Comment 4•11 years ago
|
||
Right now it has to be kept in sync with the nullness of aNewScope. Let's just rely on the cx stack here and kill the param.
Attachment #732539 -
Flags: review?(mrbkap)
Updated•11 years ago
|
Attachment #732538 -
Flags: review?(mrbkap) → review+
Comment 5•11 years ago
|
||
Comment on attachment 732539 [details] [diff] [review] Part 2 - Remove aCx parameter to CloneAndAdopt. v1 Review of attachment 732539 [details] [diff] [review]: ----------------------------------------------------------------- ::: content/base/src/nsDocument.cpp @@ -6578,5 @@ > nsCOMArray<nsINode> nodesWithProperties; > rv = nsNodeUtils::Adopt(adoptedNode, sameDocument ? nullptr : mNodeInfoManager, > - // The nsNodeUtils API requires that cx be non-null iff > - // newscope is non-null. > - newScope ? (JSContext*) cx : nullptr, I was going to ask for a static_cast, but then I realized that this patch nuked that line anyway.
Attachment #732539 -
Flags: review?(mrbkap) → review+
Assignee | ||
Comment 6•11 years ago
|
||
remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/96a501b8fb84 remote: https://hg.mozilla.org/integration/mozilla-inbound/rev/e10b37c57162
Comment 7•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/96a501b8fb84 https://hg.mozilla.org/mozilla-central/rev/e10b37c57162
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla23
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
•