Closed
Bug 1136925
Opened 10 years ago
Closed 10 years ago
Remove the parent arg from NewProxyObject and ProxyObject::New
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
FIXED
mozilla39
Tracking | Status | |
---|---|---|
firefox39 | --- | fixed |
People
(Reporter: bzbarsky, Assigned: bzbarsky)
References
Details
Attachments
(4 files)
(deleted),
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Waldo
:
review+
bholley
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
Waldo
:
review+
|
Details | Diff | Splinter Review |
Now that bug 1134968 is fixed, passing JS::NullPtr() to NewObjectWithGivenTaggedProto will use the global, so we should be able to nix explicit parents from callers.
Assignee | ||
Comment 1•10 years ago
|
||
Attachment #8569486 -
Flags: review?(jwalden+bmo)
Assignee | ||
Updated•10 years ago
|
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Assignee | ||
Comment 2•10 years ago
|
||
Bobby, could you stamp the dom & xpconnect bits of this?
Attachment #8569487 -
Flags: review?(jwalden+bmo)
Attachment #8569487 -
Flags: review?(bobbyholley)
Assignee | ||
Comment 3•10 years ago
|
||
Attachment #8569488 -
Flags: review?(jwalden+bmo)
Assignee | ||
Comment 4•10 years ago
|
||
Attachment #8569489 -
Flags: review?(jwalden+bmo)
Updated•10 years ago
|
Attachment #8569486 -
Flags: review?(jwalden+bmo) → review+
Updated•10 years ago
|
Attachment #8569487 -
Flags: review?(jwalden+bmo) → review+
Comment 5•10 years ago
|
||
Comment on attachment 8569488 [details] [diff] [review]
part 3. Stop passing parents to js::NewProxyObject
Review of attachment 8569488 [details] [diff] [review]:
-----------------------------------------------------------------
::: js/ipc/WrapperOwner.cpp
@@ -1019,5 @@
> obj = NewProxyObject(cx,
> &CPOWProxyHandler::singleton,
> v,
> nullptr,
> - junkScope,
lol
::: js/src/proxy/ScriptedIndirectProxyHandler.cpp
@@ +435,5 @@
> RootedObject handler(cx, NonNullObject(cx, args[0]));
> if (!handler)
> return false;
> + RootedObject proto(cx);
> + proto = args.callee().global().getOrCreateFunctionPrototype(cx);
Looks like this'll all fit in a single 99ch line now, probably?
Attachment #8569488 -
Flags: review?(jwalden+bmo) → review+
Updated•10 years ago
|
Attachment #8569489 -
Flags: review?(jwalden+bmo) → review+
Assignee | ||
Comment 6•10 years ago
|
||
> Looks like this'll all fit in a single 99ch line now, probably?
Yep, done.
Updated•10 years ago
|
Attachment #8569487 -
Flags: review?(bobbyholley) → review+
Assignee | ||
Comment 7•10 years ago
|
||
All four backed out in https://hg.mozilla.org/integration/mozilla-inbound/rev/7c3cc4f11d38 as I grasp at straws to figure out what broke mochitest-e10s-dt today:
https://treeherder.mozilla.org/logviewer.html#?job_id=7050990&repo=mozilla-inbound
Flags: needinfo?(bzbarsky)
Assignee | ||
Comment 9•10 years ago
|
||
RElanded:
https://hg.mozilla.org/integration/mozilla-inbound/rev/2dac197193b7
https://hg.mozilla.org/integration/mozilla-inbound/rev/84c7cadc7dd2
https://hg.mozilla.org/integration/mozilla-inbound/rev/2e9b1150861b
https://hg.mozilla.org/integration/mozilla-inbound/rev/eafeefc2a038
Flags: needinfo?(bzbarsky)
Comment 10•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/2dac197193b7
https://hg.mozilla.org/mozilla-central/rev/84c7cadc7dd2
https://hg.mozilla.org/mozilla-central/rev/2e9b1150861b
https://hg.mozilla.org/mozilla-central/rev/eafeefc2a038
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
status-firefox39:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
You need to log in
before you can comment on or make changes to this bug.
Description
•