Closed Bug 1097866 Opened 8 years ago Closed 3 years ago

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

Categories

(DevTools :: Debugger, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jlong, Unassigned)

References

(Blocks 1 open bug)

Details

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.
Product: Firefox → DevTools

Brian, is this still relevant?

Flags: needinfo?(bhackett1024)
Blocks: dbg-server
Type: defect → task

This seems to still work fine, the inspector shows both the URL and text for the event handler.

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