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

Issue 2760023002: Fix tab restore for view-source Chrome extension pages (Merge to M58). (Closed)

Created:
3 years, 9 months ago by alexmos
Modified:
3 years, 9 months ago
Reviewers:
CC:
chromium-reviews
Target Ref:
refs/branch-heads/3029
Project:
chromium
Visibility:
Public.

Description

Fix tab restore for view-source Chrome extension pages (Merge to M58). Previously, for non-web-accessible pages, this was blocked by the check in ShouldAllowOpenURL, and generated a DumpWithoutCrashing report because the source SiteInstance ("about:") was not HTTP/HTTPS/extension and the target URL was not a WAR. The source SiteInstance was wrong because content::HandleViewSource disallowed view-source navigations to the chrome-extension scheme and overwrote the destination URL to about:blank. See full analysis in issue 699428. The fix adds chrome-extension to the list of schemes allowed for view-source. It also fixes an issue where the restored view-source tab's visible URL ended up at chrome://bookmarks, rather than view-source:chrome-extension://<bookmark_extension_id>/. BUG=699428, 698709, 696034, 700610 Review-Url: https://codereview.chromium.org/2740013008 Cr-Commit-Position: refs/heads/master@{#457582} (cherry picked from commit 94875b3b4d4a1fc047b99214f30078f3780259f0) Review-Url: https://codereview.chromium.org/2760023002 . Cr-Commit-Position: refs/branch-heads/3029@{#301} Cr-Branched-From: 939b32ee5ba05c396eef3fd992822fcca9a2e262-refs/heads/master@{#454471} Committed: https://chromium.googlesource.com/chromium/src/+/7495c6fd9e5f9823396b508f4145450589853391

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+101 lines, -7 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/view_source_browsertest.cc View 3 chunks +73 lines, -0 lines 0 comments Download
M content/browser/browser_url_handler_impl.cc View 2 chunks +6 lines, -5 lines 0 comments Download
M content/public/browser/content_browser_client.h View 1 chunk +6 lines, -2 lines 0 comments Download
M content/public/browser/content_browser_client.cc View 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (1 generated)
alexmos
3 years, 9 months ago (2017-03-20 17:11:38 UTC) #2
Message was sent while issue was closed.
Committed patchset #1 (id:1) manually as
7495c6fd9e5f9823396b508f4145450589853391.

Powered by Google App Engine
This is Rietveld 408576698