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)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

Details

Attachments

(4 files)

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.
Depends on: 1131803
Attachment #8569486 - Flags: review?(jwalden+bmo)
Assignee: nobody → bzbarsky
Status: NEW → ASSIGNED
Bobby, could you stamp the dom & xpconnect bits of this?
Attachment #8569487 - Flags: review?(jwalden+bmo)
Attachment #8569487 - Flags: review?(bobbyholley)
Attachment #8569488 - Flags: review?(jwalden+bmo)
Attachment #8569489 - Flags: review?(jwalden+bmo)
Blocks: 1136980
Attachment #8569486 - Flags: review?(jwalden+bmo) → review+
Attachment #8569487 - Flags: review?(jwalden+bmo) → review+
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+
Attachment #8569489 - Flags: review?(jwalden+bmo) → review+
> Looks like this'll all fit in a single 99ch line now, probably? Yep, done.
Attachment #8569487 - Flags: review?(bobbyholley) → review+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: