Run `new Function("a", "b", "a+b")` in Browser Console causes an Error in Nightly build
Categories
(DevTools :: Console, defect)
Tracking
(firefox-esr91 unaffected, firefox99 disabled, firefox100 disabled, firefox101 disabled, firefox102 verified, firefox103 verified)
People
(Reporter: alice0775, Assigned: tjr)
References
(Regression)
Details
(Keywords: nightly-community, regression)
Attachments
(1 file)
Steps to reproduce:
- Open Browser Console
- Run
new Function("a", "b", "a+b")
in the console
Actual Results:
Fails to create the new function due to the following Error.
Uncaught InternalError: unsafe filename: debugger eval code line 1 > Function
<anonymous> debugger eval code:1
getEvalResult resource://devtools/server/actors/webconsole/eval-with-debugger.js:243
evalWithDebugger resource://devtools/server/actors/webconsole/eval-with-debugger.js:167
evaluateJS resource://devtools/server/actors/webconsole.js:1115
evaluateJSAsync resource://devtools/server/actors/webconsole.js:1007
makeInfallible resource://devtools/shared/ThreadSafeDevToolsUtils.js:103
debugger eval code:1:1
<anonymous> debugger eval code:1
Expected Results:
Successfully created.
Regression window:
https://hg.mozilla.org/integration/autoland/pushloghtml?&tochange=ecd05de39436&fromchange=322e753a4898
Comment 1•2 years ago
|
||
:tjr, since you are the author of the regressor, bug 1742645, could you take a look?
For more information, please visit auto_nag documentation.
Comment 2•2 years ago
|
||
FWIW worksforme Windows 7 (nightly)
Reporter | ||
Comment 3•2 years ago
|
||
This can also be reproduced on Nightly101.0a1 Ubuntu 20.04.
Updated•2 years ago
|
Comment 4•2 years ago
|
||
I can reproduce on the latest m-c Fx101 build (Win10)
Works for me in Fx99 (Win10)
Reporter | ||
Comment 5•2 years ago
|
||
The regressionwindow, See comment#0
Reporter | ||
Comment 6•2 years ago
|
||
FWIW, setting security.allow_parent_unrestricted_js_loads to true solves this.
Assignee | ||
Comment 7•2 years ago
|
||
Updated•2 years ago
|
Pushed by tritter@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/94ee875dee20 Do not bust on the debugger filename in the Browser Console r=ckerschb
Comment 9•2 years ago
|
||
bugherder |
Updated•2 years ago
|
Updated•2 years ago
|
Comment 10•2 years ago
•
|
||
Verified as fixed on Windows 10 x64, Ubuntu 20.04 x64 and on macOS 11.6 on Firefox 102.0b3 and Nightly 103.0a1.
Updated•2 years ago
|
Description
•