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

Issue 10871090: history.replaceState(..., location.href) clearing page-action icons. (Closed)

Created:
8 years, 3 months ago by Tom Sepez
Modified:
8 years, 3 months ago
Reviewers:
Charlie Reis, brettw
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, Avi (use Gerrit)
Visibility:
Public.

Description

history.replaceState(..., location.href) clearing page-action icons. history.replaceState() can confuse the browser into thinking that a reload is happening when there is, in fact, an in-page navigation. After checking that we're not crossing an origin boundary, we can let the otherwise untrusted renderer resolve the ambiguity. BUG=144640 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154287

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 10

Patch Set 4 : #

Total comments: 5

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Total comments: 1

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -16 lines) Patch
M content/browser/web_contents/navigation_controller_impl.h View 1 2 3 4 5 6 7 1 chunk +15 lines, -6 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl.cc View 1 2 3 4 5 6 7 4 chunks +14 lines, -8 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl_unittest.cc View 1 2 3 4 5 6 7 3 chunks +24 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Tom Sepez
Hi Ben, please review or suggest suitable reviewer. In particular, I'm not sure of all ...
8 years, 3 months ago (2012-08-27 19:58:29 UTC) #1
Tom Sepez
Adding Charlie since it said "navigation".
8 years, 3 months ago (2012-08-28 17:00:07 UTC) #2
Charlie Reis
This needs a test in navigation_controller_impl_unittest.cc. I'm also finding it tricky to follow the logic ...
8 years, 3 months ago (2012-08-28 20:06:16 UTC) #3
Tom Sepez
Ok. Glad to add a test. http://codereview.chromium.org/10871090/diff/11001/content/browser/web_contents/navigation_controller_impl.cc File content/browser/web_contents/navigation_controller_impl.cc (right): http://codereview.chromium.org/10871090/diff/11001/content/browser/web_contents/navigation_controller_impl.cc#newcode118 content/browser/web_contents/navigation_controller_impl.cc:118: // scenarios can ...
8 years, 3 months ago (2012-08-28 20:17:41 UTC) #4
Ben Goodger (Google)
I'm not a good reviewer for this stuff.
8 years, 3 months ago (2012-08-28 21:21:55 UTC) #5
Tom Sepez
Hey Brett, do you have insight here? thanks.
8 years, 3 months ago (2012-08-28 21:23:15 UTC) #6
Charlie Reis
Thanks for the test! It shows that I must be missing something. :) http://codereview.chromium.org/10871090/diff/11001/content/browser/web_contents/navigation_controller_impl.cc File ...
8 years, 3 months ago (2012-08-28 21:48:21 UTC) #7
Tom Sepez
thanks. new comments. http://codereview.chromium.org/10871090/diff/14002/content/browser/web_contents/navigation_controller_impl_unittest.cc File content/browser/web_contents/navigation_controller_impl_unittest.cc (right): http://codereview.chromium.org/10871090/diff/14002/content/browser/web_contents/navigation_controller_impl_unittest.cc#newcode1438 content/browser/web_contents/navigation_controller_impl_unittest.cc:1438: // Distinguish reload vs. history.replaceState() of ...
8 years, 3 months ago (2012-08-28 21:57:59 UTC) #8
Charlie Reis
Thanks. Please also see my question about the remaining bug: http://codereview.chromium.org/10871090/diff/11001/content/browser/web_contents/navigation_controller_impl.cc#newcode118 http://codereview.chromium.org/10871090/diff/14002/content/browser/web_contents/navigation_controller_impl_unittest.cc File content/browser/web_contents/navigation_controller_impl_unittest.cc (right): ...
8 years, 3 months ago (2012-08-28 22:17:23 UTC) #9
Tom Sepez
One other thing I just noticed is that the use of the page_id is inconsistent ...
8 years, 3 months ago (2012-08-28 22:46:57 UTC) #10
Tom Sepez
New comments about sub-frames vs main page. The subtle page id issue.
8 years, 3 months ago (2012-08-28 22:57:08 UTC) #11
Tom Sepez
Sub-frame comment was innacurate. It's just a matter of page ids.
8 years, 3 months ago (2012-08-28 23:26:39 UTC) #12
Charlie Reis
I'd like to resolve the strangeness in this CL if possible. However, since I'll soon ...
8 years, 3 months ago (2012-08-29 23:16:20 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tsepez@chromium.org/10871090/24001
8 years, 3 months ago (2012-08-30 18:11:20 UTC) #14
commit-bot: I haz the power
8 years, 3 months ago (2012-08-30 22:31:15 UTC) #15
Change committed as 154287

Powered by Google App Engine
This is Rietveld 408576698