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

Issue 2534393003: (Reland) Remove about:srcdoc url conversion. (Closed)

Created:
4 years ago by arthursonzogni
Modified:
4 years ago
CC:
agrieve+watch_chromium.org, browser-components-watch_chromium.org, cbentzel+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, dbeam+watch-settings_chromium.org, dbeam+watch-options_chromium.org, David Black, donnd+watch_chromium.org, extensions-reviews_chromium.org, gavinp+prer_chromium.org, jam, Jered, jfweitz+watch_chromium.org, kmadhusu+watch_chromium.org, mdjones+watch_chromium.org, melevin+watch_chromium.org, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-options_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, samarth+watch_chromium.org, site-isolation-reviews_chromium.org, skanuj+watch_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. This is a reland of https://codereview.chromium.org/2494633004/ Before this CL, there was an asymetry 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 url 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 TBR=dbeam,nasko Committed: https://crrev.com/ee7f43bbfe2425d9a34c4fe29bdec6609c6d8d00 Cr-Commit-Position: refs/heads/master@{#436567}

Patch Set 1 : https://codereview.chromium.org/2494633004/ #

Total comments: 3

Patch Set 2 : Restore NavigationEntry::GetSubFrameUniqueNames. #

Patch Set 3 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -229 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/OverlayPanelContent.java View 1 2 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 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 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 chunks +3 lines, -10 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_api_helpers.cc View 1 2 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/history/history_utils.cc View 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_contents.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_tab_helper.h View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/prerender/prerender_tab_helper.cc View 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 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/extensions/extensions_ui.cc View 1 2 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 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 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 chunk +1 line, -2 lines 0 comments Download
M content/browser/android/web_contents_observer_proxy.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/child_process_security_policy_impl.cc View 3 chunks +9 lines, -4 lines 0 comments Download
M content/browser/child_process_security_policy_unittest.cc View 1 chunk +13 lines, -6 lines 0 comments Download
M content/browser/frame_host/frame_tree_browsertest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/frame_host/interstitial_page_navigator_impl.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/frame_host/navigation_controller_impl_browsertest.cc View 1 2 5 chunks +5 lines, -7 lines 0 comments Download
M content/browser/frame_host/navigation_entry_impl.cc View 1 2 1 chunk +4 lines, -4 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.h View 1 2 4 chunks +0 lines, -4 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl.cc View 1 2 4 chunks +1 line, -8 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl_browsertest.cc View 6 chunks +4 lines, -8 lines 0 comments Download
M content/browser/frame_host/navigation_handle_impl_unittest.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/frame_host/navigation_request.cc View 1 2 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 4 chunks +2 lines, -6 lines 0 comments Download
M content/browser/frame_host/render_frame_host_impl.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M content/browser/frame_host/render_frame_host_manager.cc View 1 chunk +6 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/site_per_process_browsertest.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 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 1 chunk +0 lines, -3 lines 0 comments Download
M content/public/android/java/src/org/chromium/content/browser/webcontents/WebContentsObserverProxy.java View 1 chunk +2 lines, -2 lines 0 comments Download
M content/public/android/java/src/org/chromium/content_public/browser/WebContentsObserver.java View 1 chunk +1 line, -2 lines 0 comments Download
M content/public/browser/navigation_handle.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M content/public/browser/navigation_handle.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/public/browser/web_contents_observer.h View 1 2 2 chunks +3 lines, -5 lines 0 comments Download
M content/public/test/test_frame_navigation_observer.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/public/test/test_frame_navigation_observer.cc View 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 1 chunk +0 lines, -2 lines 0 comments Download
M content/test/web_contents_observer_sanity_checker.h View 1 chunk +1 line, -2 lines 0 comments Download
M content/test/web_contents_observer_sanity_checker.cc View 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 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 34 (21 generated)
arthursonzogni
Hi Nasko and Charlie, Unfortunately my last patch got reverted. I understood why (see comment ...
4 years ago (2016-12-01 09:39:51 UTC) #13
Charlie Reis
https://codereview.chromium.org/2534393003/diff/1/content/browser/frame_host/navigation_entry_impl.cc File content/browser/frame_host/navigation_entry_impl.cc (right): https://codereview.chromium.org/2534393003/diff/1/content/browser/frame_host/navigation_entry_impl.cc#newcode879 content/browser/frame_host/navigation_entry_impl.cc:879: child->frame_entry->url() == url::kAboutBlankURL; On 2016/12/01 09:39:51, arthursonzogni wrote: > ...
4 years ago (2016-12-02 00:20:33 UTC) #14
Charlie Reis
https://codereview.chromium.org/2534393003/diff/1/content/browser/frame_host/navigation_entry_impl.cc File content/browser/frame_host/navigation_entry_impl.cc (right): https://codereview.chromium.org/2534393003/diff/1/content/browser/frame_host/navigation_entry_impl.cc#newcode879 content/browser/frame_host/navigation_entry_impl.cc:879: child->frame_entry->url() == url::kAboutBlankURL; On 2016/12/02 00:20:32, Charlie Reis (slow) ...
4 years ago (2016-12-02 05:12:51 UTC) #15
arthursonzogni
Thanks Charlie! --- Hi @dbeam, @lfg, @jochen. Please, could you take a look at this? ...
4 years ago (2016-12-05 08:51:21 UTC) #17
jochen (gone - plz use gerrit)
lgtm
4 years ago (2016-12-05 15:25:47 UTC) #18
lfg
guest_view lgtm PS: feel free to TBR changes like this.
4 years ago (2016-12-05 17:47:04 UTC) #19
Charlie Reis
On 2016/12/05 17:47:04, lfg wrote: > guest_view lgtm > > PS: feel free to TBR ...
4 years ago (2016-12-05 18:19:02 UTC) #21
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/2534393003/80001
4 years ago (2016-12-05 18:19:51 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/117077) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years ago (2016-12-05 18:22:31 UTC) #25
Charlie Reis
On 2016/12/05 18:22:31, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years ago (2016-12-05 18:36:58 UTC) #26
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/2534393003/100001
4 years ago (2016-12-06 09:27:15 UTC) #29
commit-bot: I haz the power
Committed patchset #3 (id:100001)
4 years ago (2016-12-06 10:53:00 UTC) #32
commit-bot: I haz the power
4 years ago (2016-12-06 10:54:35 UTC) #34
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/ee7f43bbfe2425d9a34c4fe29bdec6609c6d8d00
Cr-Commit-Position: refs/heads/master@{#436567}

Powered by Google App Engine
This is Rietveld 408576698