Closed Bug 1602090 Opened 5 years ago Closed 5 years ago

Report CheckMayLoad errors to the web console, not just the browser console

Categories

(Core :: DOM: Security, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla73
Tracking Status
firefox73 --- fixed

People

(Reporter: bzbarsky, Assigned: bzbarsky)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [domsecurity-active])

Attachments

(2 files)

Right now CheckMayLoad errors don't get reported to the browser console, because they have no window id associated with them. We should fix that.

This will allow the errors reported via this method to show up in the web console as needed.

Assignee: nobody → bzbarsky

CheckMayLoadAndReport takes a window ID. This allows us to report
errors from it to the web console as needed. Most consumers know statically
whether they want reporting or not, so there's no reason to force the ones that
don't to provide window ids.

Blocks: 1602483
Priority: -- → P2
Whiteboard: [domsecurity-active]
Status: NEW → ASSIGNED
Pushed by bzbarsky@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fdc4a588912e part 1. Add a window id argument to nsScriptSecurityManager::ReportError. r=ckerschb https://hg.mozilla.org/integration/autoland/rev/e3e2c1d7478e part 2. Create separate CheckMayLoad and CheckMayLoadWithReporting APIs. r=ckerschb
Depends on: 1603666

We hit a pre-existing leak in the devtools code. Bug 1603666 is tracking fixing that.

Flags: needinfo?(bzbarsky)
Pushed by bzbarsky@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a7116fcfcd8f part 1. Add a window id argument to nsScriptSecurityManager::ReportError. r=ckerschb https://hg.mozilla.org/integration/autoland/rev/f6b36c3a329b part 2. Create separate CheckMayLoad and CheckMayLoadWithReporting APIs. r=ckerschb
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla73
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: