WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED CONFIGURATION CHANGED
122763
Objective-C API doesn't provide a means to specify source URL in evaluateScript:
https://bugs.webkit.org/show_bug.cgi?id=122763
Summary
Objective-C API doesn't provide a means to specify source URL in evaluateScript:
Donald Hays
Reported
2013-10-14 10:40:10 PDT
As far as I can tell, JSContext only provides evaluateScript:, and provides nothing if you want to specify a source URL or starting line number for a script. Since JSContext exposes the underlying JSContextRef, I'm able to dip down into the C layer to get that functionality while still otherwise using the Objective-C API, but it would be nice to have an Objective-C method in the JSC API that does it.
Attachments
Add attachment
proposed patch, testcase, etc.
Oliver Hunt
Comment 1
2013-10-14 16:47:54 PDT
Seems like any such api should piggy back on the jsscript type
Radar WebKit Bug Importer
Comment 2
2013-10-14 16:48:12 PDT
<
rdar://problem/15226423
>
Joseph Pecoraro
Comment 3
2017-04-11 14:30:30 PDT
We added -[JSContext evaluateScript:withSourceURL:] a while ago. That should satisfy this request. Please reopen if you think this missed your use case.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug