Closed Bug 1255201 Opened 8 years ago Closed 8 years ago

Improve the stack handling in nsXPCComponents_Utils::ReportError for the DOMException case

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla48
Tracking Status
firefox48 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

Attachments

(1 file, 1 obsolete file)

We can get a stack in that case too.
Comment on attachment 8728658 [details] [diff] [review]
Improve the stack handling in nsXPCComponents_Utils::ReportError for the DOMException case to include the stack from the DOMException

Review of attachment 8728658 [details] [diff] [review]:
-----------------------------------------------------------------

Sorry this one got lost.

::: dom/base/nsJSUtils.cpp
@@ +77,5 @@
>    return nativeGlobal->GetScriptContext();
>  }
>  
> +nsPIDOMWindowInner *
> +nsJSUtils::GetCurrentlyRunningCodeInnerWindow(JSContext *aContext)

This duplicates CurrentWindowOrNull, right?
Attachment #8728658 - Flags: review?(bobbyholley) → review-
> This duplicates CurrentWindowOrNull, right?

Except in the null JSContext case, you're right.  Good catch.
Attachment #8728658 - Attachment is obsolete: true
Attachment #8729642 - Flags: review?(bobbyholley) → review+
https://hg.mozilla.org/mozilla-central/rev/82e7e34cedc5
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla48
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: