Open Bug 1831186 Opened 2 years ago Updated 5 months ago

Breakpoint in hidepage event crashes Firefox tab

Categories

(DevTools :: Debugger, defect, P3)

Firefox 112
defect

Tracking

(Not tracked)

People

(Reporter: jbstrater, Unassigned)

References

Details

Attachments

(1 file)

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/112.0

Steps to reproduce:

  1. Open new Firefox tab or new instance of Firefox
  2. Navigate to, or otherwise open, the attached .html file
  3. Open the Web Developer Tools, go to the Debugger tab, open the source file and place a breakpoint on the one line of code in the hidepage event handler hideIt().
  4. Click the [back] button to navigate to previous page. If you watch closely in the upper center of your Firefox window, you might see the "Paused on breakpoint" alert before the screen switches to the previous page.
  5. Click the [forward] button to navigate to the attached .html file's page.

Actual results:

You will now clearly see the "Paused on breakpoint" alert. Clicking either of its buttons appears to do nothing. The Debugger tab shows no sources. The "busy" circle in the tab title is spinning endlessly. The only thing I was able to do at this point was close the tab inside Firefox.

Expected results:

It should hit the breakpoint inside the debugger and not hang up indefinitely.

The Bugbug bot thinks this bug should belong to the 'DevTools::Debugger' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Debugger
Product: Firefox → DevTools

Thanks for the report,

Related to breaking on unload working currently started by Alex

Severity: -- → S3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(poirot.alex)
Priority: -- → P3

Yes hopefully breakpoints on unload/pagehide/navigation will all work once I'm done with bug 1806796.
I'll ensure this particular test case is addressed.

Depends on: 1806796
Flags: needinfo?(poirot.alex)

Bug 1806796 wasn't enough to fix the breakpoint, but at least firefox no longer crash/hang.
Bug 1892411 should make the pagehide breakpoint functional.

Depends on: 1892411
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: