Closed Bug 1263049 Opened 8 years ago Closed 4 years ago

about:debugging should provide a view source link to the worker script

Categories

(DevTools :: about:debugging, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1459945

People

(Reporter: bkelly, Unassigned)

References

(Blocks 1 open bug)

Details

I understand that the long term goal is to provide a method to open the debugger to the worker script, but it would be nice to provide a view-source link in the short term.  Right now I rarely use about:debugging because I normally want to see the contents of the script.
(In reply to Ben Kelly [:bkelly] from comment #0)
> I understand that the long term goal is to provide a method to open the
> debugger to the worker script, but it would be nice to provide a view-source
> link in the short term.

I'm not sure why you call this a "long term goal", because it's already possible today:

    about:debugging > Service Workers > "Debug" button (possibly "Start" button first if not running)

This opens the service worker script in the Debugger of a new Toolbox window (which also has a Console in the worker's context).

Does this address your issue? Do you still want a separate View Source feature, and if so, why?
Flags: needinfo?(bkelly)
See Also: → 1260568
See Also: 1260568
I guess I didn't think we had shipped debugging yet for some reason.

Overall, though, I often just want to view the contents of the script.  It seems overkill to actually run it in that case.  What if it has some kind of error that causes it to terminate before I can attach the debugger?
Flags: needinfo?(bkelly)
Priority: -- → P3
Mentor: janx
So, one argument in favor of not using a view-source link...  view-source will make a network request which could get a different version of the script than what the particular service worker is using.
Mentor: janx
Product: Firefox → DevTools

The application panel provides that now.

Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.