Bug 172587

Summary: [GTK] Source URL reported as "undefined" from user run script
Product: WebKit Reporter: David Keijser <keijser>
Component: WebKitGTKAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: aperez, bugs-noreply, cgarcia, mcatanzaro, ysuzuki
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

David Keijser
Reported 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"
Attachments
Adrian Perez
Comment 1 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.
Note You need to log in before you can comment on or make changes to this bug.