Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(97)

Issue 10544175: Add an ability to call WebKit's WebFrame::loadData via NavigationController. (Closed)

Created:
8 years, 6 months ago by mnaganov (inactive)
Modified:
8 years, 5 months ago
Reviewers:
Charlie Reis, jam, gone
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jochen+watch-content_chromium.org
Visibility:
Public.

Description

Add an ability to call WebKit's WebFrame::loadData via NavigationController. WebFrame::loadData accepts HTML that is wrapped into a 'data:' scheme URL and two URLs: the base URL is used for resolving relative URLs in the HTML, the history URL is put into the navigation history. WebKit has all the required support for this method. What is required is to pass base and history URLs from RVH to WebKit's WebFrame. Also, as Chromium contains additional security checks when loading page resources, we need to add the base URL into the list of request URLs for the security policy. BUG=none TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=148090

Patch Set 1 #

Total comments: 2

Patch Set 2 : Updated comments #

Total comments: 10

Patch Set 3 : Comments addressed #

Total comments: 2

Patch Set 4 : Comments addressed #

Patch Set 5 : Renamings for clarity #

Total comments: 8

Patch Set 6 : Separated the new method into an Android-specific API #

Patch Set 7 : Actually removed method decl from NavigationController interface #

Total comments: 6

Patch Set 8 : Comments addressed #

Patch Set 9 : More comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -1 line) Patch
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl.h View 1 2 3 4 5 6 7 3 chunks +11 lines, -1 line 0 comments Download
M content/browser/web_contents/navigation_controller_impl.cc View 1 2 3 4 5 6 7 2 chunks +30 lines, -0 lines 0 comments Download
M content/browser/web_contents/navigation_entry_impl.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M content/browser/web_contents/navigation_entry_impl.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download
A content/public/browser/android/navigation_controller_webview.h View 1 2 3 4 5 6 7 1 chunk +34 lines, -0 lines 0 comments Download
M content/public/browser/navigation_entry.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
mnaganov (inactive)
Hi Charlie and John, This CL should be considered together with Dan's https://chromiumcodereview.appspot.com/10450002. We need ...
8 years, 6 months ago (2012-06-15 14:08:20 UTC) #1
jam
Just so I understand, does the shape of how 10450002 evolves affect this change? or ...
8 years, 6 months ago (2012-06-15 16:17:05 UTC) #2
mnaganov (inactive)
This is not related to 10450002. But we also need to extend NavigationController in it. ...
8 years, 6 months ago (2012-06-15 16:24:33 UTC) #3
gone
Yeah, it seems like both of our CLs are adding functions to the NavigationController to ...
8 years, 6 months ago (2012-06-15 17:09:10 UTC) #4
Charlie Reis
https://chromiumcodereview.appspot.com/10544175/diff/1/content/browser/web_contents/navigation_controller_impl.h File content/browser/web_contents/navigation_controller_impl.h (right): https://chromiumcodereview.appspot.com/10544175/diff/1/content/browser/web_contents/navigation_controller_impl.h#newcode66 content/browser/web_contents/navigation_controller_impl.h:66: virtual void LoadDataWithBaseURL(const GURL& data_url, This seems to conflict ...
8 years, 6 months ago (2012-06-15 23:10:02 UTC) #5
mnaganov (inactive)
https://chromiumcodereview.appspot.com/10544175/diff/1/content/browser/web_contents/navigation_controller_impl.h File content/browser/web_contents/navigation_controller_impl.h (right): https://chromiumcodereview.appspot.com/10544175/diff/1/content/browser/web_contents/navigation_controller_impl.h#newcode66 content/browser/web_contents/navigation_controller_impl.h:66: virtual void LoadDataWithBaseURL(const GURL& data_url, On 2012/06/15 23:10:02, creis ...
8 years, 6 months ago (2012-06-18 10:39:08 UTC) #6
Charlie Reis
Seems reasonable, though I'd like to better distinguish these extra fields as being specific to ...
8 years, 6 months ago (2012-06-18 18:34:29 UTC) #7
mnaganov (inactive)
Thanks for your comments, Charlie! https://chromiumcodereview.appspot.com/10544175/diff/5001/content/common/view_messages.h File content/common/view_messages.h (right): https://chromiumcodereview.appspot.com/10544175/diff/5001/content/common/view_messages.h#newcode620 content/common/view_messages.h:620: // Base URL for ...
8 years, 6 months ago (2012-06-19 12:52:32 UTC) #8
Charlie Reis
Thanks for the updates and explanation. https://chromiumcodereview.appspot.com/10544175/diff/5001/content/public/browser/navigation_controller.h File content/public/browser/navigation_controller.h (right): https://chromiumcodereview.appspot.com/10544175/diff/5001/content/public/browser/navigation_controller.h#newcode170 content/public/browser/navigation_controller.h:170: // Loads a ...
8 years, 6 months ago (2012-06-19 17:17:24 UTC) #9
mnaganov (inactive)
https://chromiumcodereview.appspot.com/10544175/diff/14002/content/public/browser/navigation_controller.h File content/public/browser/navigation_controller.h (right): https://chromiumcodereview.appspot.com/10544175/diff/14002/content/public/browser/navigation_controller.h#newcode171 content/public/browser/navigation_controller.h:171: // This can only be used for browser-initiated navigations. ...
8 years, 5 months ago (2012-07-03 08:07:51 UTC) #10
Charlie Reis
Thanks for the updates. Still have a question about how to limit what can be ...
8 years, 5 months ago (2012-07-03 17:54:36 UTC) #11
mnaganov (inactive)
Thank you very much for your comments, Charlie! As for the history URL -- we ...
8 years, 5 months ago (2012-07-04 15:25:57 UTC) #12
Charlie Reis
Sorry for the delay-- just got back from vacation. On 2012/07/04 15:25:57, Mikhail Naganov (Chromium) ...
8 years, 5 months ago (2012-07-10 20:54:19 UTC) #13
mnaganov (inactive)
I was on vacation as well, just have returned. Charlie, thank you very much for ...
8 years, 5 months ago (2012-07-23 14:02:29 UTC) #14
Charlie Reis
Thanks Mikhail! LGTM.
8 years, 5 months ago (2012-07-23 21:05:21 UTC) #15
jam
8 years, 5 months ago (2012-07-23 22:52:44 UTC) #16
lgtm

Powered by Google App Engine
This is Rietveld 408576698