New issue
Advanced search Search tips

Issue 597947 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Mar 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 1
Type: Bug

Blocking:
issue 574865



Sign in to add a comment

When the session asks to ignore fragment mismatches, prerender throttling should ignore fragment-only differences too

Project Member Reported by lizeb@chromium.org, Mar 25 2016

Issue description

When a client session sets that the URL fragment should be ignored for a navigation, the throttling and accounting in Custom Tabs should be consistent, and consider a URL launch with a different fragment as a success.

Without that, a client consistently prerendering a URL and then launching it with a different fragment would be banned from prerendering.

 

Comment 1 by pasko@chromium.org, Mar 25 2016

Summary: When the session asks to ignore fragment mismatches, prerender throttling should ignore fragment-only differences too (was: Make prerendering throttling accounting consistent when the URL fragment is ignored.)
Project Member

Comment 2 by bugdroid1@chromium.org, Mar 29 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/12f9b4ab77e708a5d8ad3a69161cab30cd484902

commit 12f9b4ab77e708a5d8ad3a69161cab30cd484902
Author: lizeb <lizeb@chromium.org>
Date: Tue Mar 29 13:20:41 2016

customtabs: Don't always record non-matching fragments are prediction failures.

When fragments are set to be ignored for URL matching for a given
session, update the statistics (and the throttling) the same way.

BUG= 597947 

Review URL: https://codereview.chromium.org/1832063002

Cr-Commit-Position: refs/heads/master@{#383710}

[modify] https://crrev.com/12f9b4ab77e708a5d8ad3a69161cab30cd484902/chrome/android/java/src/org/chromium/chrome/browser/customtabs/ClientManager.java
[modify] https://crrev.com/12f9b4ab77e708a5d8ad3a69161cab30cd484902/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/ClientManagerTest.java

Comment 3 by lizeb@chromium.org, Mar 29 2016

Status: Fixed (was: Started)

Comment 4 by lizeb@chromium.org, Mar 29 2016

Blocking: 574865

Comment 5 by lizeb@chromium.org, Mar 30 2016

Labels: Merge-Request-50
Requesting a merge to M50.

Reason: this is needed to avoid blacklisting clients prerendering w/ a different fragment (see https://bugs.chromium.org/p/chromium/issues/detail?id=574865 ).

Comment 6 by tin...@google.com, Mar 30 2016

Labels: -Merge-Request-50 Merge-Approved-50 Hotlist-Merge-Approved
Your change meets the bar and is auto-approved for M50 (branch: 2661)
Project Member

Comment 7 by bugdroid1@chromium.org, Mar 30 2016

Labels: -merge-approved-50 merge-merged-2661
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/bf4ffca5e31c5752d4468a99e4c843eed99d8b43

commit bf4ffca5e31c5752d4468a99e4c843eed99d8b43
Author: Benoit L <lizeb@chromium.org>
Date: Wed Mar 30 12:34:08 2016

customtabs: Don't always record non-matching fragments are prediction failures.

When fragments are set to be ignored for URL matching for a given
session, update the statistics (and the throttling) the same way.

BUG= 597947 

Review URL: https://codereview.chromium.org/1832063002

Cr-Commit-Position: refs/heads/master@{#383710}
(cherry picked from commit 12f9b4ab77e708a5d8ad3a69161cab30cd484902)

Review URL: https://codereview.chromium.org/1839403002 .

Cr-Commit-Position: refs/branch-heads/2661@{#430}
Cr-Branched-From: ef6f6ae5e4c96622286b563658d5cd62a6cf1197-refs/heads/master@{#378081}

[modify] https://crrev.com/bf4ffca5e31c5752d4468a99e4c843eed99d8b43/chrome/android/java/src/org/chromium/chrome/browser/customtabs/ClientManager.java
[modify] https://crrev.com/bf4ffca5e31c5752d4468a99e4c843eed99d8b43/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/ClientManagerTest.java

Project Member

Comment 8 by bugdroid1@chromium.org, Mar 30 2016

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/bf4ffca5e31c5752d4468a99e4c843eed99d8b43

commit bf4ffca5e31c5752d4468a99e4c843eed99d8b43
Author: Benoit L <lizeb@chromium.org>
Date: Wed Mar 30 12:34:08 2016

customtabs: Don't always record non-matching fragments are prediction failures.

When fragments are set to be ignored for URL matching for a given
session, update the statistics (and the throttling) the same way.

BUG= 597947 

Review URL: https://codereview.chromium.org/1832063002

Cr-Commit-Position: refs/heads/master@{#383710}
(cherry picked from commit 12f9b4ab77e708a5d8ad3a69161cab30cd484902)

Review URL: https://codereview.chromium.org/1839403002 .

Cr-Commit-Position: refs/branch-heads/2661@{#430}
Cr-Branched-From: ef6f6ae5e4c96622286b563658d5cd62a6cf1197-refs/heads/master@{#378081}

[modify] https://crrev.com/bf4ffca5e31c5752d4468a99e4c843eed99d8b43/chrome/android/java/src/org/chromium/chrome/browser/customtabs/ClientManager.java
[modify] https://crrev.com/bf4ffca5e31c5752d4468a99e4c843eed99d8b43/chrome/android/javatests/src/org/chromium/chrome/browser/customtabs/ClientManagerTest.java

Sign in to add a comment