Debugger does not pause at breakpoints except for the 1st window (round 2)
Categories
(DevTools :: Debugger, defect, P2)
Tracking
(firefox-esr60 unaffected, firefox65 unaffected, firefox66 fixed, firefox67 fixed)
Tracking | Status | |
---|---|---|
firefox-esr60 | --- | unaffected |
firefox65 | --- | unaffected |
firefox66 | --- | fixed |
firefox67 | --- | fixed |
People
(Reporter: Oriol, Assigned: ravefalcon92)
References
Details
(Keywords: regression)
Attachments
(2 files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
10.01 KB,
patch
|
lizzard
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
Bug 1528654 wasn't completely fixed:
- Start with a clean profile
- Press Ctrl+Shift+I to open devtools
- Press F1 to open devtools preferences
- Check "Enable browser chrome and add-on debugging toolboxes"
- Check "Enable remote debugging"
- Press Ctrl+Alt+Shift+I to open Browser Toolbox
- In the Browser Toolbox, switch to the debugger panel
- Press Ctrl+P to find file
/content/browser.js
, open it - Press Ctrl+F to search
gBrowser.stop()
, add a breakpoint in that line. - In the Firefox window you should have two tabs (first run and privacy notice)
- Right-click one of them, choose "Move Tab" and "Move to New Window".
- The debugger pauses as expected, resume it.
- The tab will move into a new window.
- Open a 2nd tab in this new window.
- Right-click it and move it into a new window.
Expected: the debugger pauses again.
Actual: the debugger doesn't pause.
Comment 1•5 years ago
|
||
I tracked this down and see what's going on, but it actually looks like this is probably an existing issue that was not caused by https://bugzilla.mozilla.org/show_bug.cgi?id=1518661.
It's the same root cause as the other bug you filed. We're making an incorrect assumption about the relationship between scripts and sources, but it is in code that I didn't change as part of the breakpoint changes.
Reporter | ||
Comment 2•5 years ago
•
|
||
You are right, this was caused by bug 1513095 instead. I should have rechecked.
With mozregression I get https://hg.mozilla.org/integration/autoland/pushloghtml?fromchange=daf05866f9ddcd5a362b4d436477f3e01abd4234&tochange=957cc2dce89c9c93265bb24445792eb46fc24d4e
Reporter | ||
Updated•5 years ago
|
Comment 3•5 years ago
|
||
Interesting, I'll revisit when I get a chance. If that did introduce it, it's likely entirely by chance, since I don't think there are any explicit issues with that patch on its own, probably just the way it interacts with other existing code.
Updated•5 years ago
|
Assignee | ||
Comment 4•5 years ago
|
||
Updated•5 years ago
|
Pushed by lsmyth@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/173e4de60b4a Ensure breakpoints are added to newly-cloned JSScripts for existing sources. r=loganfsmyth
Comment 6•5 years ago
|
||
bugherder |
Comment 8•5 years ago
|
||
Beta/Release Uplift Approval Request
- Feature/Bug causing the regression: Bug 1513095
- User impact if declined: Users of the browser toolbox JS debugger may have certain breakpoints ignored entirely, making debugging more difficult.
- Is this code covered by automated tests?: Yes
- Has the fix been verified in Nightly?: Yes
- Needs manual test from QE?: No
- If yes, steps to reproduce:
- List of other uplifts needed: None
- Risk to taking this patch: Low
- Why is the change risky/not risky? (and alternatives if risky): This change is not risky because this just removes a special-case for previously-seen objects and makes things consistent across more cases.
- String changes made/needed:
Comment 9•5 years ago
|
||
This uplift patch also includes additional changes not in the original patch here, but they are only applicable changes for unit tests, so no concern there.
Comment 10•5 years ago
|
||
Comment on attachment 9049667 [details] [diff] [review] bug1530423.patch Fix for regression in 66, adds new tests, let's take it for the RC.
Comment 11•5 years ago
|
||
bugherder uplift |
Updated•5 years ago
|
Updated•5 years ago
|
Description
•