Closed Bug 1327709 Opened 8 years ago Closed 5 years ago

Debugger doesn't prevents events in some cases

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1562186

People

(Reporter: arni2033, Unassigned)

References

Details

>>>
STR_1:
1. Open url:   data:text/html,<input onkeydown="arguments[0].preventDefault()"/>
2. Open debugger, open "events" tab, set breakpoint at line 1
3. Click on the page outside of input
4. Hold button "=" on keyboard
5. Click in the input
6. Stop holding button "=" on keyboard
7. Click "Resume" button in debugger

AR:  "=" appears in input
ER:  Nothing should appear in input
No longer blocks: 1277113
Component: Untriaged → Developer Tools: Canvas Debugger
Component: Developer Tools: Canvas Debugger → Developer Tools: Debugger
Product: Firefox → DevTools

At present the debugger shows no sources at this URL

hmm, data URLs should work. Brian, do you know what is up here?

Flags: needinfo?(bhackett1024)

The data URL in comment 0 doesn't have any <script> tags, so there aren't any sources (the text in the event handler is treated like an eval and not considered part of the data URL). If I add a <script> tag, I see the sources in the debugger as expected.

Flags: needinfo?(bhackett1024)
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.