Closed Bug 783494 Opened 12 years ago Closed 11 years ago

Debugger doesn't see data: URLs.

Categories

(DevTools :: Debugger, defect, P2)

15 Branch
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: espadrine, Assigned: past)

Details

Steps to reproduce: 1. Open a new tab. 2. Enter the following URL: data:text/html,<!doctype html><title></title><script>alert('hi'); o.c = 5</script> 3. Open the debugger. What fails: 4. The debugger does not show the script that is run, so we cannot debug it. What should happen: 4. The script is listed in the debugger, so that we can work on it.
Actually, it doesn't seem to be about data: URLs. The following page doesn't show the inline script as well: <http://jsbin.com/amanep/2>.
Additional note: the link in comment #1 does force the debugger to show the script if you check the “Pause on exceptions” box, and reload the page.
looks like these event listener scripts are being scavenged before the debugger is activated. Pause on Exceptions is no longer needed with the recent reload fixes which feels like an improvement.
Priority: -- → P2
QA Contact: past
Assignee: nobody → past
QA Contact: past
I think both cases now work as expected, after bug 783393. As Rob mentions, we can't display the source without a reload (regardless of the pause-on-exceptions toggle), because the scripts have been scavenged after execution and before the debugger is activated.
Resolving per comment 4.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → WORKSFORME
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.