Bug 115561
| Summary: | Web Inspector: WK1 implementation of InspectorFrontendHost.save() triggers script error | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Brian Burg <burg> |
| Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | graouts, joepeck, timothy, webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | 528+ (Nightly build) | ||
| Hardware: | Mac | ||
| OS: | OS X 10.8 | ||
Brian Burg
Running from Mac MiniBrowser's inspector console:
InspectorFrontendHost.save("file:///~/Desktop/foo.txt", "test", true)
will cause the following error:
TypeError: 'undefined' is not a function (evaluating 'InspectorFrontendAPI.savedURL("file://localhost/Users/burg/Desktop/foo.txt ")')
This is called from WebInspectorFrontendClient::save (in WebCoreSupport/WebInspectorClient.mm). It was introduced in https://bugs.webkit.org/show_bug.cgi?id=105547.
It seems like the InspectorFrontendAPI.savedURL function is not being exposed to script, or the savedURL callback is being executed in the wrong script context.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Timothy Hatcher
Looks like we need to implement InspectorFrontendAPI.savedURL this on the Safari front end.
I'll add InspectorFrontendAPI.savedURL and InspectorFrontendAPI.appendedToURL as stubs.
Timothy Hatcher
(I assume you were using Safari's Web Inspector?)
Brian Burg
Yes, it was using the Safari web inspector, from about a day ago.
Timothy Hatcher
I'll push a fix in the nightly soon.
Radar WebKit Bug Importer
<rdar://problem/13806055>
Timothy Hatcher
This is fixed. It should be in the nightly now or the next build.