Bug 172587 - [GTK] Source URL reported as "undefined" from user run script
Summary: [GTK] Source URL reported as "undefined" from user run script
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-25 03:58 PDT by David Keijser
Modified: 2018-08-13 00:43 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Keijser 2017-05-25 03:58:13 PDT
Scripts run in the web view with `webkit_web_view_run_javascript` has the source file reported as the literal string "undefined"
Comment 1 Adrian Perez 2018-08-11 03:40:13 PDT
I think this is to be expected, because the name of the source file
is never set when using “webkit_web_view_run_javascript()”. That being
said, maybe it makes sense that the name is set to something sensible
like “<no file>” instead of leaving it as undefined.

I added Carlos García in CC, who has been recently doing improvements
in our JS support (including the new JSC GLib API) so it would be
interesting to know his opinion on this.