Closed Bug 933010 Opened 11 years ago Closed 11 years ago

AsyncErrorReporter should take boolean principal argument

Categories

(Core :: DOM: Core & HTML, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: nsm, Assigned: nsm)

References

Details

(Whiteboard: [qa-])

Attachments

(1 file, 1 obsolete file)

It is used only to determine what category to show the error under in the error console (system principal or not). Getting the principal on workers is circuitous, requiring main thread access, but it is easy to check if the worker uses the system principal or not.
Assignee: nobody → nsm.nikhil
Comment on attachment 824932 [details] [diff] [review] AsyncErrorReporter takes bool isSystemPrincipal. Please fix the commit message to match the actual variable name? > ScriptErrorEvent(nsIScriptGlobalObject* aScriptGlobal, This should keep taking a principal, but pass through nsContentUtils::IsSystemPrincipal(aGlobalPrincipal), no? Right now you're ending up with callers passing a principal but it getting coerced to bool, so they all look like chrome... r=me with that fixed.
Attachment #824932 - Flags: review?(bzbarsky) → review+
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
Whiteboard: [qa-]
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: