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

Issue 2494633004: Remove about:srcdoc url conversion. (Closed)

Created:
4 years, 1 month ago by arthursonzogni
Modified:
4 years ago
CC:
agrieve+watch_chromium.org, alexmos, anandc+watch-blimp_chromium.org, bgoldman+watch-blimp_chromium.org, cbentzel+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, clamy, creis+watch_chromium.org, darin-cc_chromium.org, dbeam+watch-options_chromium.org, dbeam+watch-settings_chromium.org, David Black, dhollowa+watch_chromium.org, donnd+watch_chromium.org, dougw+watch_chromium.org, dtrainor+watch-blimp_chromium.org, extensions-reviews_chromium.org, gavinp+prer_chromium.org, gcasto+watch-blimp_chromium.org, jam, Jered, jfweitz+watch_chromium.org, khushalsagar+watch-blimp_chromium.org, kmadhusu+watch_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, mdjones+watch_chromium.org, melevin+watch_chromium.org, michaelpg+watch-options_chromium.org, michaelpg+watch-md-settings_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, ncarter (slow), nyquist+watch-blimp_chromium.org, perumaal+watch-blimp_chromium.org, samarth+watch_chromium.org, scf+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, skanuj+watch_chromium.org, sriramsr+watch-blimp_chromium.org, steimel+watch-blimp_chromium.org, stevenjb+watch-md-settings_chromium.org, tburkard+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove about:srcdoc url conversion. Before this CL, there was an asymmetry between the renderer and the browser. Iframe that has navigated to its srcdoc attribute got the about:srcdoc URL in the renderer and the about:blank in the browser. The about::srcdoc URLs were converted to about::blank in the RendererFrameHost. A boolean |is_srcdoc| was created and transmitted across classes in the browser to keep track of the "real" URL, such as it could be converted back (browser->renderer). This led to a lot unnecessary works to keep track of this boolean and not to forget to convert the URL back. This CL removes the conversion and the boolean from the browser. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation BUG=660061 Committed: https://crrev.com/041956a261766b15f09b7b7a37026bda1ef809f3 Cr-Commit-Position: refs/heads/master@{#435256}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Rebase. #

Patch Set 3 : Addressed comments. #

Total comments: 12

Patch Set 4 : Rebase. #

Patch Set 5 : Addressed comments (@nasko). #

Total comments: 5

Patch Set 6 : Addressed comments (@creis) #

Total comments: 1

Patch Set 7 : Fix tests with about::blank #

Total comments: 9

Patch Set 8 : Rebase #

Patch Set 9 : Addressed comments (@creis) #

Total comments: 8

Patch Set 10 : Nit + add some test. #

Patch Set 11 : CanCommitURL | about:srcdoc -> true. #

Patch Set 12 : Rebase and update new test: IframeSrcdocAfterCrossSiteNavigation #

Patch Set 13 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -240 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelContent.java View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/dom_distiller/ReaderModeManager.java View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/TabWebContentsObserver.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/frame_navigation_state.h View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/frame_navigation_state.cc View 1 2 3 3 chunks +1 line, -7 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/frame_navigation_state_unittest.cc View 10 chunks +15 lines, -28 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_api.cc View 1 2 3 3 chunks +3 lines, -10 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_api_helpers.cc View 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/history/history_utils.cc View 1 2 3 4 5 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_tab_helper.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_tab_helper.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/tracing/navigation_tracing.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/tracing/navigation_tracing.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/search/search_tab_helper_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extensions_ui.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/options_ui.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/options_ui.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/settings/md_settings_ui.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/settings/md_settings_ui.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/executescript/frame_id/test.js View 2 chunks +2 lines, -6 lines 0 comments Download
M components/dom_distiller/content/browser/distillability_driver.h View 1 chunk +1 line, -2 lines 0 comments Download
M components/dom_distiller/content/browser/distillability_driver.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/android/web_contents_observer_proxy.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/android/web_contents_observer_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/child_process_security_policy_impl.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +9 lines, -4 lines 0 comments Download
M content/browser/child_process_security_policy_unittest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +13 lines, -6 lines 0 comments Download
M content/browser/frame_host/frame_tree_browsertest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/frame_host/interstitial_page_navigator_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/frame_host/navigation_controller_impl_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +5 lines, -7 lines 0 comments Download
M content/browser/frame_host/navigation_entry_impl.cc View 1 2 3 4 1 chunk +2 lines, -16 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.h View 1 2 3 4 5 6 7 4 chunks +0 lines, -4 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +1 line, -8 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl_browsertest.cc View 1 2 3 4 6 chunks +4 lines, -8 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/frame_host/navigator_delegate.h View 1 chunk +3 lines, -5 lines 0 comments Download
M content/browser/frame_host/navigator_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +1 line, -5 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +4 lines, -6 lines 0 comments Download
M content/browser/web_contents/web_contents_impl_browsertest.cc View 1 chunk +3 lines, -5 lines 0 comments Download
M content/common/frame_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -3 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsObserverProxy.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/android/java/src/org/chromium/content_public/browser/WebContentsObserver.java View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -2 lines 0 comments Download
M content/public/browser/navigation_handle.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -3 lines 0 comments Download
M content/public/browser/navigation_handle.cc View 1 chunk +0 lines, -1 line 0 comments Download
M content/public/browser/web_contents_observer.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -5 lines 0 comments Download
M content/public/test/test_frame_navigation_observer.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M content/public/test/test_frame_navigation_observer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -2 lines 0 comments Download
M content/public/test/test_navigation_observer.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/public/test/test_navigation_observer.cc View 2 chunks +3 lines, -5 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -2 lines 0 comments Download
M content/test/web_contents_observer_sanity_checker.h View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M content/test/web_contents_observer_sanity_checker.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M extensions/browser/guest_view/mime_handler_view/mime_handler_stream_manager.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M testing/buildbot/filters/browser-side-navigation.linux.content_browsertests.filter View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 110 (84 generated)
arthursonzogni
Hi Nasko and Charly, This is the CL that follows ours discussion on: https://codereview.chromium.org/2482873002/ Before ...
4 years, 1 month ago (2016-11-10 17:41:18 UTC) #6
nasko
Thanks a lot for putting this together! It makes code a lot nicer! The CL ...
4 years, 1 month ago (2016-11-10 18:14:14 UTC) #7
Charlie Reis
This is great! I agree about updating FilterURL itself, and otherwise I'm very excited for ...
4 years, 1 month ago (2016-11-11 22:53:25 UTC) #10
arthursonzogni
Thanks for your suggestions. Some answers/questions below: https://codereview.chromium.org/2494633004/diff/1/content/browser/frame_host/navigation_entry_impl.cc File content/browser/frame_host/navigation_entry_impl.cc (right): https://codereview.chromium.org/2494633004/diff/1/content/browser/frame_host/navigation_entry_impl.cc#newcode878 content/browser/frame_host/navigation_entry_impl.cc:878: bool is_about_blank ...
4 years, 1 month ago (2016-11-15 16:37:09 UTC) #41
arthursonzogni
I didn't enter the full email address of clamy and alexmos the first time, only ...
4 years, 1 month ago (2016-11-15 16:43:51 UTC) #42
nasko
LGTM once the comments are fixed. https://codereview.chromium.org/2494633004/diff/260001/content/browser/frame_host/navigation_handle_impl_browsertest.cc File content/browser/frame_host/navigation_handle_impl_browsertest.cc (left): https://codereview.chromium.org/2494633004/diff/260001/content/browser/frame_host/navigation_handle_impl_browsertest.cc#oldcode518 content/browser/frame_host/navigation_handle_impl_browsertest.cc:518: EXPECT_TRUE(observer.is_srcdoc()); Can we ...
4 years, 1 month ago (2016-11-15 17:15:23 UTC) #43
Charlie Reis
Thanks! LGTM with nits if we move the check from FilterURL to ChildPolicySecurityPolicyImpl::CanRequestURL, given Nick's ...
4 years, 1 month ago (2016-11-16 18:20:22 UTC) #54
arthursonzogni
Thanks nasko@ and creis@! Yes it will be better to land this after a branch ...
4 years, 1 month ago (2016-11-17 17:04:59 UTC) #59
Charlie Reis
Apologies for the long delay! The end of last week got a bit crazy on ...
4 years ago (2016-11-22 01:01:20 UTC) #64
arthursonzogni
Thanks for your review Charlie! * I removed the modification in IsSameWebSite. * I made ...
4 years ago (2016-11-22 16:43:27 UTC) #67
Charlie Reis
Thanks for the analysis! LGTM with a few sanity check questions below. https://codereview.chromium.org/2494633004/diff/360001/content/browser/child_process_security_policy_unittest.cc File content/browser/child_process_security_policy_unittest.cc ...
4 years ago (2016-11-23 08:25:21 UTC) #71
arthursonzogni
https://codereview.chromium.org/2494633004/diff/400001/content/browser/child_process_security_policy_impl.cc File content/browser/child_process_security_policy_impl.cc (right): https://codereview.chromium.org/2494633004/diff/400001/content/browser/child_process_security_policy_impl.cc#newcode629 content/browser/child_process_security_policy_impl.cc:629: // Every child process can request <about:blank> and <about:srcdoc> ...
4 years ago (2016-11-23 14:39:27 UTC) #72
Charlie Reis
https://codereview.chromium.org/2494633004/diff/400001/content/browser/child_process_security_policy_impl.cc File content/browser/child_process_security_policy_impl.cc (right): https://codereview.chromium.org/2494633004/diff/400001/content/browser/child_process_security_policy_impl.cc#newcode667 content/browser/child_process_security_policy_impl.cc:667: // Of all the pseudo schemes, only about:blank is ...
4 years ago (2016-11-23 18:03:37 UTC) #73
Charlie Reis
https://codereview.chromium.org/2494633004/diff/400001/content/browser/child_process_security_policy_impl.cc File content/browser/child_process_security_policy_impl.cc (right): https://codereview.chromium.org/2494633004/diff/400001/content/browser/child_process_security_policy_impl.cc#newcode667 content/browser/child_process_security_policy_impl.cc:667: // Of all the pseudo schemes, only about:blank is ...
4 years ago (2016-11-24 00:17:00 UTC) #74
arthursonzogni
On 2016/11/24 00:17:00, Charlie Reis (slow) wrote: > https://codereview.chromium.org/2494633004/diff/400001/content/browser/child_process_security_policy_impl.cc > File content/browser/child_process_security_policy_impl.cc (right): > > ...
4 years ago (2016-11-24 14:42:04 UTC) #85
arthursonzogni
Hi @jochen, @paulmeyer and @dbeam, I need a review for a bunch of files. The ...
4 years ago (2016-11-24 17:32:35 UTC) #89
jochen (gone - plz use gerrit)
lgtm
4 years ago (2016-11-25 06:43:58 UTC) #90
Charlie Reis
paulmeyer@ is OOO. lfg@, can you review extensions/? dbeam@: Friendly ping for chrome/browser/ui/.
4 years ago (2016-11-29 17:37:58 UTC) #92
lfg
guest_view lgtm
4 years ago (2016-11-29 19:06:17 UTC) #93
Dan Beam
lgtm
4 years ago (2016-11-29 19:34:13 UTC) #94
Charlie Reis
Thanks! Arthur, I've started a CQ dry run in case you think it's ready to ...
4 years ago (2016-11-29 19:45:25 UTC) #97
arthursonzogni
On 2016/11/29 19:45:25, Charlie Reis (slow) wrote: > Thanks! Arthur, I've started a CQ dry ...
4 years ago (2016-11-30 13:01:02 UTC) #101
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2494633004/560001
4 years ago (2016-11-30 13:01:48 UTC) #104
commit-bot: I haz the power
Committed patchset #13 (id:560001)
4 years ago (2016-11-30 14:36:06 UTC) #107
commit-bot: I haz the power
Patchset 13 (id:??) landed as https://crrev.com/041956a261766b15f09b7b7a37026bda1ef809f3 Cr-Commit-Position: refs/heads/master@{#435256}
4 years ago (2016-11-30 14:37:57 UTC) #109
battre
4 years ago (2016-11-30 15:37:47 UTC) #110
Message was sent while issue was closed.
A revert of this CL (patchset #13 id:560001) has been created in
https://codereview.chromium.org/2541063002/ by battre@chromium.org.

The reason for reverting is: Speculative revert for http://crbug.com/660061#c2.

Powered by Google App Engine
This is Rietveld 408576698