Closed Bug 979525 Opened 10 years ago Closed 10 years ago

Consider having XPCJSContextStack::Push always JS_SaveFrameChain on the JSContext

Categories

(Core :: XPConnect, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: bzbarsky, Unassigned)

References

Details

Attachments

(1 file)

Right now it does not if the context is already stack-top and the principals match up right...  We're working around that in ~CallSetup by doing manual JS_SaveFrameChain calls.
I think we can do this when we land these two deps.
Depends on: 979596, 960820
(And we should remember to cleanup the XXX bits added in bug 978618).
Same question here as in bug 960820 comment 6.  If we are mostly iterating with GO_THROUGH_SAVED, what does JS_SaveFrameChain still mean?  Also, since we *also* have HideScriptedCaller, do we need both?
(In reply to Luke Wagner [:luke] from comment #3)
> Same question here as in bug 960820 comment 6.  If we are mostly iterating
> with GO_THROUGH_SAVED, what does JS_SaveFrameChain still mean?  Also, since
> we *also* have HideScriptedCaller, do we need both?

I will answer in that bug. It's been on my list, but I haven't had time. It's complicated.
No longer depends on: 979596
Depends on: 960108
WONTFIXing this in favor of bug 979730. I have patches for this, which I'll keep around in a branch for now (exnstack_gothroughsaved).
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
(In reply to Bobby Holley (:bholley) from comment #5)
> WONTFIXing this in favor of bug 979730. I have patches for this, which I'll
> keep around in a branch for now (exnstack_gothroughsaved).

Actually make that https://github.com/bholley/gecko-dev/tree/always_save_frame_chain .
Attached file patches.zip
Attaching those patches here to make sure they're archived for posterity.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: