Closed Bug 1630878 Opened 5 years ago Closed 5 years ago

Autocompletion in the javascript console triggers the print dialog repeatedly

Categories

(DevTools :: Console, defect)

75 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1609432

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:

  1. Open a page in Firefox and open the developer tools (F12).
  2. Open the console tab.
  3. 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)
  4. Start replacing "REPLACEME" with "pri" in the console.
  5. The print dialog triggers without entering the command.

Actual results:

The print dialog started showing repeatedly.

Expected results:

Nothing should have happened.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → Console
Product: Firefox → DevTools

Logan, looks like window.print did sneak in our side effect-free DOM list?

Flags: needinfo?(loganfsmyth)
Keywords: regression

Resetting severity to default of --.

This is because the function is passed as a callback to another native function, so the Debugger never has a chance to abort execution.

Status: UNCONFIRMED → RESOLVED
Closed: 5 years ago
Flags: needinfo?(loganfsmyth)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.