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

Issue 125202: Revert 18373 - Consider a redirect following user gesture as userinitiated in... (Closed)

Created:
11 years, 6 months ago by laforge
Modified:
9 years, 7 months ago
Reviewers:
Yuzo
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Revert 18373 - Consider a redirect following user gesture as userinitiated in maintaining navigation entries. Also, ignore redirect or machineinitiated new subframe navigations. The current code treats all redirects as machineinitiated in processing navigation to a new page (to fix Bugs 9663 and 10531). This is not always appropriate, because some sites, e.g., www.google.com/ig, use redirect to implement userinitiated navigation (Bug 11896). This change assumes that a machineinitiated redirect happens within 300ms since the last document load was completed, while a userinitiated one happens later. This assumption is not always correct, e.g., a user may cause transition within 300ms. But I cannot think of any better ways to tell if a redirect is machine initiated or userinitiated. I believe this change works good enough, at least better than the status quo. Review URL: http://codereview.chromium.org/115919 TEST=Open http://www.hp.com and observe it redirects to http://www.hp.com/#Product . Hit Back button and observe the former URL is not visited. Open http://www.google.com/ig and click tabs inside the page, and try hitting Back and Forward to see if the navigation is right. Open http://www.google.com/codesearch, search for something, click on a result item, and try hitting Back. BUG=11896, 12820 TBR=yuzo@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=18512

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -317 lines) Patch
M chrome/browser/renderer_host/render_view_host.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 2 chunks +0 lines, -6 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host_delegate.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/tab_contents/navigation_controller.h View 4 chunks +0 lines, -20 lines 0 comments Download
M chrome/browser/tab_contents/navigation_controller.cc View 6 chunks +5 lines, -50 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/test/data/History/history_length_test_page_1.html View 2 chunks +4 lines, -6 lines 0 comments Download
D chrome/test/data/History/history_length_test_page_11.html View 1 chunk +0 lines, -35 lines 0 comments Download
D chrome/test/data/History/history_length_test_page_12.html View 1 chunk +0 lines, -31 lines 0 comments Download
M chrome/test/data/History/history_length_test_page_2.html View 1 chunk +3 lines, -4 lines 0 comments Download
D chrome/test/data/History/history_length_test_page_21.html View 1 chunk +0 lines, -33 lines 0 comments Download
D chrome/test/data/History/history_length_test_page_22.html View 1 chunk +0 lines, -31 lines 0 comments Download
M chrome/test/data/History/history_length_test_page_3.html View 2 chunks +11 lines, -14 lines 0 comments Download
M chrome/test/data/History/history_length_test_page_4.html View 3 chunks +8 lines, -10 lines 0 comments Download
M chrome/test/ui/history_uitest.cc View 4 chunks +2 lines, -61 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
laforge
11 years, 6 months ago (2009-06-16 19:04:37 UTC) #1
Yuzo
Hi, Now that we know 18373 hasn't broken: TabRestoreUITest.RestoreToDifferentWindow , should 18512 be reverted? Yuzo
11 years, 6 months ago (2009-06-17 02:33:31 UTC) #2
Yuzo
11 years, 6 months ago (2009-06-17 04:03:31 UTC) #3
Ah, sorry, you have reverted it already. Thanks!

Yuzo

On 2009/06/17 02:33:31, yuzo wrote:
> Hi,
> 
> Now that we know 18373 hasn't broken:
>   TabRestoreUITest.RestoreToDifferentWindow
> , should 18512 be reverted?
> 
> Yuzo

Powered by Google App Engine
This is Rietveld 408576698