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

Issue 12541018: Allow showing pending URL for new tab navigations, but only if safe. (Closed)

Created:
7 years, 9 months ago by Charlie Reis
Modified:
7 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Allow showing pending URL for new tab navigations, but only if safe. We revert to showing the opener's URL if it modifies the content of the initial blank page before the pending URL commits, to prevent URL spoofs. Implications: - All renderer-initiated navigations now have pending NavigationEntries. - GetURL and GetTitle use the visible entry, not active entry. - The renderer notifies the browser if DOM mutations occur before first load. BUG=9682 TEST=Open a slow link in a new tab. Destination URL should be visible and reloadable. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=191277

Patch Set 1 : Initial patch #

Patch Set 2 : Handle reload, fix failing tests. #

Patch Set 3 : Fix interactive_ui_tests #

Patch Set 4 : Merge with trunk. #

Patch Set 5 : robertshield's ChromeFrame Fix. #

Patch Set 6 : Rebase to pick up Chrome Frame fix. #

Patch Set 7 : Fix Android test. #

Total comments: 2

Patch Set 8 : Add comment. #

Patch Set 9 : Fix title in new and cloned tabs. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+409 lines, -45 lines) Patch
M chrome/browser/external_extension_browsertest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/managed_mode/managed_mode_browsertest.cc View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_navigator_browsertest.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/constrained_window_views_browsertest.cc View 1 2 2 chunks +11 lines, -1 line 0 comments Download
M content/browser/android/content_view_core_impl.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_view_host_delegate.h View 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.h View 1 2 3 3 chunks +14 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 4 chunks +12 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_view_host_manager_browsertest.cc View 1 chunk +86 lines, -0 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl.cc View 1 2 3 4 5 7 chunks +59 lines, -20 lines 0 comments Download
M content/browser/web_contents/navigation_controller_impl_unittest.cc View 1 2 3 4 5 6 7 8 8 chunks +114 lines, -20 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 5 6 7 8 5 chunks +31 lines, -2 lines 0 comments Download
M content/common/view_messages.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 1 chunk +7 lines, -0 lines 0 comments Download
A content/test/data/click-nocontent-link.html View 1 chunk +46 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Charlie Reis
Hey Darin-- This CL to fix 9682 should be passing all tests except for FormPostBackForward_0 ...
7 years, 9 months ago (2013-03-07 17:28:20 UTC) #1
Charlie Reis
FYI: I've split out the IsInitialNavigation change into https://codereview.chromium.org/12637002/.
7 years, 9 months ago (2013-03-07 20:36:42 UTC) #2
darin (slow to review)
LGTM
7 years, 9 months ago (2013-03-10 05:11:06 UTC) #3
grt (UTC plus 2)
The change appears to do what Robert explained to me, but I don't have the ...
7 years, 9 months ago (2013-03-11 18:31:14 UTC) #4
ananta
lgtm
7 years, 9 months ago (2013-03-13 18:01:11 UTC) #5
Charlie Reis
Tom, can you review view_messages.h? Just one new zero-arg IPC.
7 years, 9 months ago (2013-03-21 01:05:57 UTC) #6
Tom Sepez
On 2013/03/21 01:05:57, creis wrote: > Tom, can you review view_messages.h? Just one new zero-arg ...
7 years, 9 months ago (2013-03-21 17:12:41 UTC) #7
joth
lgtm https://codereview.chromium.org/12541018/diff/50001/content/browser/android/content_view_core_impl.cc File content/browser/android/content_view_core_impl.cc (right): https://codereview.chromium.org/12541018/diff/50001/content/browser/android/content_view_core_impl.cc#newcode751 content/browser/android/content_view_core_impl.cc:751: content::NavigationEntry* entry = I think this should comment ...
7 years, 9 months ago (2013-03-22 17:12:52 UTC) #8
Charlie Reis
Darin, can you take a look at the delta between patch sets 8 and 9? ...
7 years, 9 months ago (2013-03-28 19:23:19 UTC) #9
darin (slow to review)
OK, LGTM
7 years, 8 months ago (2013-03-28 21:45:33 UTC) #10
darin (slow to review)
OK, LGTM
7 years, 8 months ago (2013-03-28 21:45:34 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/creis@chromium.org/12541018/70001
7 years, 8 months ago (2013-03-29 00:28:13 UTC) #12
commit-bot: I haz the power
7 years, 8 months ago (2013-03-29 03:29:05 UTC) #13
Message was sent while issue was closed.
Change committed as 191277

Powered by Google App Engine
This is Rietveld 408576698