Inline event handler scripts won't have a URL after bug 905700

NEW
Unassigned

Status

4 years ago
5 months ago

People

(Reporter: jlong, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
When better Debugger.Source support lands in the debugger server (bug 905700), event handlers specified as an inline string won't have a URL. Example:

<button onclick="foo()"></button>

This creates a separate eval-style source with the text "foo()". The debugger server will report a SourceActor with the url as `null` (the fact that eval'ed Debugger.Source's currently have a URL is a bug). The SourceActor also has an `introductionUrl` property, but here that will also be `null` because the HTML page is not a source.

I thought this would mean that looking at event handlers in the inspector wouldn't show a URL, however it does somehow still seem to report the HTML page correctly... Filing this bug to make sure we check up on this.

Updated

5 months ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.