Autocompletion in the javascript console triggers the print dialog repeatedly
Categories
(DevTools :: Console, defect)
Tracking
(Not tracked)
People
(Reporter: bugreport, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: regression)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:75.0) Gecko/20100101 Firefox/75.0
Steps to reproduce:
I was using the in-browser javascript-console in the dev-tools and while writing "p" in a forEach-function, the print dialog was triggered repeatedly.
I am using Firefox 75.0 on Ubuntu 19.10.
To reproduce, follow these steps:
- Open a page in Firefox and open the developer tools (F12).
- Open the console tab.
- Paste the following snippet in the console: [[1,2],[1,2],[1,2],[1,2],[1,2],[1,2]].filter(element => element.forEach(REPLACEME).length == 1)
- Start replacing "REPLACEME" with "pri" in the console.
- The print dialog triggers without entering the command.
Actual results:
The print dialog started showing repeatedly.
Expected results:
Nothing should have happened.
Comment 1•5 years ago
|
||
Bugbug thinks this bug should belong to this component, but please revert this change in case of error.
Comment 2•5 years ago
|
||
Logan, looks like window.print did sneak in our side effect-free DOM list?
Comment 3•5 years ago
|
||
Resetting severity to default of --.
Comment 4•5 years ago
|
||
This is because the function is passed as a callback to another native function, so the Debugger never has a chance to abort execution.
Description
•