WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WONTFIX
106371
Web Inspector: Allow Page.navigate to open file:// urls
https://bugs.webkit.org/show_bug.cgi?id=106371
Summary
Web Inspector: Allow Page.navigate to open file:// urls
Ken Kania
Reported
2013-01-08 13:21:06 PST
We would like to be able to navigate to local files for automation/testing via Inspector. Currently, you'll get this error: Not allowed to load local resource: file://... We would need to change InspectorPageAgent::navigate to use FrameLoader::load instead of FrameLoader::changeLocation, which seems to make more sense anyways.
Attachments
Patch
(9.20 KB, patch)
2013-01-15 04:17 PST
,
Pavel Feldman
yurys
: review+
buildbot
: commit-queue-
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Pavel Feldman
Comment 1
2013-01-15 04:17:46 PST
Created
attachment 182736
[details]
Patch
WebKit Review Bot
Comment 2
2013-01-15 04:20:52 PST
Please wait for approval from
abarth@webkit.org
,
dglazkov@chromium.org
,
fishd@chromium.org
,
jamesr@chromium.org
or
tkent@chromium.org
before submitting, as this patch contains changes to the Chromium public API. See also
https://trac.webkit.org/wiki/ChromiumWebKitAPI
.
Yury Semikhatsky
Comment 3
2013-01-15 04:26:29 PST
Comment on
attachment 182736
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=182736&action=review
> Source/WebCore/ChangeLog:8 > + Provided a way for embedder to handle Page.navigate.
Please describe here why we cannot use changeLocation on the main frame loader and need this method.
> Source/WebKit/chromium/src/InspectorClientImpl.h:67 > + virtual bool canClearBrowserCookies() { return true; }
What's the purpose of moving this out of the .cpp file?
Yury Semikhatsky
Comment 4
2013-01-15 04:27:15 PST
Comment on
attachment 182736
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=182736&action=review
> Source/WebKit/chromium/src/InspectorClientImpl.h:69 > + virtual bool canNavigate() { return true; }
This should return false while chromium implementation is not ready.
Pavel Feldman
Comment 5
2013-01-15 04:29:01 PST
(In reply to
comment #3
)
> (From update of
attachment 182736
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=182736&action=review
> > > Source/WebCore/ChangeLog:8 > > + Provided a way for embedder to handle Page.navigate. > > Please describe here why we cannot use changeLocation on the main frame loader and need this method. >
Will do.
> > Source/WebKit/chromium/src/InspectorClientImpl.h:67 > > + virtual bool canClearBrowserCookies() { return true; } > > What's the purpose of moving this out of the .cpp file?
Aesthetic? (In reply to
comment #4
)
> (From update of
attachment 182736
[details]
) > View in context:
https://bugs.webkit.org/attachment.cgi?id=182736&action=review
> > > Source/WebKit/chromium/src/InspectorClientImpl.h:69 > > + virtual bool canNavigate() { return true; } > > This should return false while chromium implementation is not ready.
I'll land this one afterwards.
Build Bot
Comment 6
2013-01-15 04:31:16 PST
Comment on
attachment 182736
[details]
Patch
Attachment 182736
[details]
did not pass mac-ews (mac): Output:
http://queues.webkit.org/results/15869894
Tony Gentilcore
Comment 7
2013-03-21 10:33:11 PDT
Is this still on track to land? This would be useful for Telemetry too.
Ken Kania
Comment 8
2013-03-21 10:54:54 PDT
(In reply to
comment #7
)
> Is this still on track to land? This would be useful for Telemetry too.
I don't think so. You might be interested in
http://src.chromium.org/viewvc/chrome?view=rev&revision=189102
though.
Tony Gentilcore
Comment 9
2013-03-21 10:56:42 PDT
(In reply to
comment #8
)
> (In reply to
comment #7
) > > Is this still on track to land? This would be useful for Telemetry too. > > I don't think so. You might be interested in
http://src.chromium.org/viewvc/chrome?view=rev&revision=189102
though.
Thanks. Pavel just pointed that out to me too. I verified that file:// URLs work with page.Navigate at ToT chromium.
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