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

Issue 2355543003: Invalidate the page state when restoring WebUIs (Closed)

Created:
4 years, 3 months ago by calamity
Modified:
3 years, 9 months ago
Reviewers:
Charlie Reis, sky, Dan Beam
CC:
chromium-reviews, jam, darin-cc_chromium.org, chrome-apps-syd-reviews_chromium.org, Dan Beam, tsergeant
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Invalidate the page state when restoring WebUIs This CL invalidates the serialized page state any chrome:// URLs, causing the page to get reloaded rather than restored. This will prevent the upgrade to MD History from breaking things since it lives at a different physical URL than classic history. BUG=614758 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/815b4051771d29afb0f6af14724cad9a620fe720 Cr-Commit-Position: refs/heads/master@{#420600}

Patch Set 1 : #

Patch Set 2 : add test #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : address comments #

Patch Set 5 : rebase #

Total comments: 6

Patch Set 6 : rebase, fix comment #

Total comments: 6

Patch Set 7 : address comments #

Total comments: 1

Patch Set 8 : fix nit #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -3 lines) Patch
M chrome/browser/sessions/better_session_restore_browsertest.cc View 1 2 3 4 5 6 3 chunks +45 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/md_history_ui.h View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/md_history_ui.cc View 1 2 3 4 5 6 4 chunks +9 lines, -3 lines 0 comments Download
M components/sessions/content/content_serialized_navigation_driver.cc View 1 2 3 4 5 6 7 2 chunks +15 lines, -0 lines 0 comments Download
M content/public/common/url_constants.h View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 1 comment Download
M content/public/common/url_constants.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download

Depends on Patchset:

Dependent Patchsets:

Messages

Total messages: 42 (26 generated)
calamity
PTAL, thanks!
4 years, 3 months ago (2016-09-21 05:06:52 UTC) #4
Dan Beam
lgtm https://codereview.chromium.org/2355543003/diff/40001/chrome/browser/ui/webui/md_history_ui.cc File chrome/browser/ui/webui/md_history_ui.cc (right): https://codereview.chromium.org/2355543003/diff/40001/chrome/browser/ui/webui/md_history_ui.cc#newcode198 chrome/browser/ui/webui/md_history_ui.cc:198: bool MdHistoryUI::use_test_title = false; should this technically be ...
4 years, 3 months ago (2016-09-21 06:19:17 UTC) #6
groby-ooo-7-16
On 2016/09/21 05:06:52, calamity wrote: > PTAL, thanks! Thanks for digging into this! You might ...
4 years, 3 months ago (2016-09-21 14:36:12 UTC) #21
sky
https://codereview.chromium.org/2355543003/diff/120001/chrome/browser/sessions/better_session_restore_browsertest.cc File chrome/browser/sessions/better_session_restore_browsertest.cc (right): https://codereview.chromium.org/2355543003/diff/120001/chrome/browser/sessions/better_session_restore_browsertest.cc#newcode489 chrome/browser/sessions/better_session_restore_browsertest.cc:489: IN_PROC_BROWSER_TEST_F(ContinueWhereILeftOffTest, MDHistoryUpgrade) { Do you really need a browser ...
4 years, 3 months ago (2016-09-21 16:11:17 UTC) #22
calamity
+creis for the Wonders of Page State. Does this seem kosher to you? https://codereview.chromium.org/2355543003/diff/120001/chrome/browser/sessions/better_session_restore_browsertest.cc File ...
4 years, 3 months ago (2016-09-22 01:43:25 UTC) #26
sky
https://codereview.chromium.org/2355543003/diff/120001/chrome/browser/sessions/better_session_restore_browsertest.cc File chrome/browser/sessions/better_session_restore_browsertest.cc (right): https://codereview.chromium.org/2355543003/diff/120001/chrome/browser/sessions/better_session_restore_browsertest.cc#newcode489 chrome/browser/sessions/better_session_restore_browsertest.cc:489: IN_PROC_BROWSER_TEST_F(ContinueWhereILeftOffTest, MDHistoryUpgrade) { On 2016/09/22 01:43:25, calamity wrote: > ...
4 years, 3 months ago (2016-09-22 13:21:37 UTC) #29
Dan Beam
https://codereview.chromium.org/2355543003/diff/120001/chrome/browser/sessions/better_session_restore_browsertest.cc File chrome/browser/sessions/better_session_restore_browsertest.cc (right): https://codereview.chromium.org/2355543003/diff/120001/chrome/browser/sessions/better_session_restore_browsertest.cc#newcode489 chrome/browser/sessions/better_session_restore_browsertest.cc:489: IN_PROC_BROWSER_TEST_F(ContinueWhereILeftOffTest, MDHistoryUpgrade) { On 2016/09/22 13:21:37, sky wrote: > ...
4 years, 2 months ago (2016-09-22 18:09:20 UTC) #30
Charlie Reis
I'm concerned this will degrade all history navigations to all WebUI pages. Maybe we can ...
4 years, 2 months ago (2016-09-22 18:59:52 UTC) #31
Dan Beam
https://codereview.chromium.org/2355543003/diff/140001/components/sessions/content/content_serialized_navigation_driver.cc File components/sessions/content/content_serialized_navigation_driver.cc (right): https://codereview.chromium.org/2355543003/diff/140001/components/sessions/content/content_serialized_navigation_driver.cc#newcode110 components/sessions/content/content_serialized_navigation_driver.cc:110: navigation->original_request_url_.SchemeIs(content::kChromeUIScheme)) { On 2016/09/22 18:59:51, Charlie Reis (slow) wrote: ...
4 years, 2 months ago (2016-09-22 19:37:34 UTC) #32
sky
Ok, LGTM
4 years, 2 months ago (2016-09-22 20:33:19 UTC) #33
calamity
https://codereview.chromium.org/2355543003/diff/140001/chrome/browser/sessions/better_session_restore_browsertest.cc File chrome/browser/sessions/better_session_restore_browsertest.cc (right): https://codereview.chromium.org/2355543003/diff/140001/chrome/browser/sessions/better_session_restore_browsertest.cc#newcode507 chrome/browser/sessions/better_session_restore_browsertest.cc:507: } On 2016/09/22 18:59:51, Charlie Reis (slow) wrote: > ...
4 years, 2 months ago (2016-09-23 05:06:34 UTC) #34
Charlie Reis
LGTM if you're ok with being stuck unable to restore PageState on those URLs going ...
4 years, 2 months ago (2016-09-23 06:33:53 UTC) #35
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/2355543003/180001
4 years, 2 months ago (2016-09-23 07:04:01 UTC) #38
commit-bot: I haz the power
Committed patchset #8 (id:180001)
4 years, 2 months ago (2016-09-23 11:37:48 UTC) #39
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/815b4051771d29afb0f6af14724cad9a620fe720 Cr-Commit-Position: refs/heads/master@{#420600}
4 years, 2 months ago (2016-09-23 11:40:48 UTC) #41
Dan Beam
3 years, 9 months ago (2017-03-14 05:43:48 UTC) #42
Message was sent while issue was closed.
https://codereview.chromium.org/2355543003/diff/180001/content/public/common/...
File content/public/common/url_constants.h (right):

https://codereview.chromium.org/2355543003/diff/180001/content/public/common/...
content/public/common/url_constants.h:36: CONTENT_EXPORT extern const char
kChromeUIHistoryHost[];
why do we need this in both chrome/common/url_constants.h AND
content/public/common/url_constants.h?

Powered by Google App Engine
This is Rietveld 408576698