Closed Bug 1458322 Opened 6 years ago Closed 4 years ago

Object inspector should not call printPreview getter

Categories

(DevTools :: Console, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1552449

People

(Reporter: Oriol, Unassigned)

Details

Open browser console with devtools.chrome.enabled=true and enter

inspect(window.getInterface(Ci.nsIDocShell))

This will call the "printPreview" safe getter.
The problem is that this freezes the window in which the browser console opened.
And then, if you enter "window", you get

error occurred while processing 'evaluateJSAsync: Error: Permission denied for <moz-nullprincipal:{3ef7ce57-4d70-47b1-a2d8-986bf9d89041}> to create wrapper for object of class UnnamedClassLine: 0, column: 0
Priority: -- → P3
Product: Firefox → DevTools

can't reproduce this anymore.
Oriol, feel free to open it again if you are still seeing this kind of issues

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → INVALID

Fixed in 1552449 by making print preview less susceptible to inadvertent misuse

Resolution: INVALID → DUPLICATE
You need to log in before you can comment on or make changes to this bug.