Closed Bug 1381571 Opened 7 years ago Closed 7 years ago

Page source isn't available in breakpoint triggered in refresh with a file URI

Categories

(DevTools :: Debugger, defect, P1)

defect

Tracking

(firefox57 wontfix, firefox58 affected)

RESOLVED WORKSFORME
Tracking Status
firefox57 --- wontfix
firefox58 --- affected

People

(Reporter: rhunt, Assigned: jlast)

Details

Attachments

(1 file)

Attached file root-breakpoint.html
STR:

1. Open the attached file
2. Open Devtools > Debugger
3. Place a breakpoint on the alert()
4. Refresh the page

Observed Result:

The breakpoint is hit, but the source cannot be viewed or found in the sources list. I can't view what breakpoint has been hit, I can only hit continue until the page is loaded.

Expected Result:

The breakpoint is hit, and the source can be viewed allowing you to look at where the breakpoint is and perform debugging.
Ah, I just attempted this on the attachment hosted on bugzilla and wasn't able to reproduce. So I think this only happens on pages loaded over 'file://'
(In reply to Ryan Hunt [:rhunt] from comment #1)
> Ah, I just attempted this on the attachment hosted on bugzilla and wasn't
> able to reproduce. So I think this only happens on pages loaded over
> 'file://'

Same here. Interesting that it does work (even with a file URI) in the old debugger UI, so it's likely not a debugger server issue. Jason, is this a known issue with the new debugger?
Flags: needinfo?(jlaster)
Summary: Page source isn't available in breakpoint triggered in refresh → Page source isn't available in breakpoint triggered in refresh with a file URI
Component: Developer Tools → Developer Tools: Debugger
Assignee: nobody → jlaster
Flags: needinfo?(jlaster)
Priority: -- → P1
Thanks :rhunt for filing. I've moved it over to github, https://github.com/devtools-html/debugger.html/issues/4209
Tested again with the new debugger on FF58 and the problem seems to be gone.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
Yep, it seemed to work well for me. We have done a bunch of work to guarantee showing files when we pause, so i'm not surprised it was a problem and that it was fixed.


STR:
1. download the root-breakpoint html file
2. open it at the file:// address for me it was file:///Users/jlaster/Desktop/root-breakpoint.html
3. add a breakpoint at alert
4. refresh

http://g.recordit.co/fWafGO9Ixe.gif
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: