-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[De-AMP] If link tag is not within first chunk, AMP page does not get De-AMPed #22917
Comments
Verified
|
Brave | 1.44.79 Chromium: 105.0.5195.102 (Official Build) beta (x86_64) |
---|---|
Revision | 4c16f5ffcc2da70ee2600d5db77bed423ac03a5a-refs/branch-heads/5195_55@{#4} |
OS | macOS Version 13.0 (Build 22A5331f) |
Steps:
- installed
1.44.79
- launched Brave
- opened
brave://settings/shields
- confirmed
Auto-redirect AMP pages
was toggled toOn
/Enabled
- loaded the URLs mentioned in the original test plan
Sites:
https://www.nytimes.com/wirecutter/blog/burner-browser-to-hide-internet-searches/
https://lifehacker-com.cdn.ampproject.org/c/s/lifehacker.com/do-this-android-app-privacy-audit-i-beg-you-1849151056/amp
https://www-technologyreview-com.cdn.ampproject.org/c/s/www.technologyreview.com/2020/07/01/1004725/redesign-internet-apps-no-one-controls-data-privacy-innovation-cloud/amp/
step 4 | site 1 | site 2 | site 3 |
---|---|---|---|
Confirmed all sites loaded full-desktop views.
Verification
|
Brave | 1.44.88 Chromium: 105.0.5195.136 (Official Build) beta (64-bit) |
---|---|
Revision | 872774b783d0e674186a3adcd2f92e7aa22a219c-refs/branch-heads/5195_124@{#4} |
OS | Linux |
Steps:
- Installed
1.44.88
- launched Brave
- opened
brave://settings/shields
- confirmed
Auto-redirect AMP pages
setting isEnabled/ON
- verified below URLs loaded as expected
URL 1:
- https://www-nytimes-com.cdn.ampproject.org/c/s/www.nytimes.com/wirecutter/blog/burner-browser-to-hide-internet-searches/amp/ redirected to https://www.nytimes.com/wirecutter/blog/burner-browser-to-hide-internet-searches/
URL 2:
- https://lifehacker-com.cdn.ampproject.org/c/s/lifehacker.com/do-this-android-app-privacy-audit-i-beg-you-1849151056/amp
redirected to https://lifehacker.com/do-this-android-app-privacy-audit-i-beg-you-1849151056
URL 3:
- https://www-technologyreview-com.cdn.ampproject.org/c/s/www.technologyreview.com/2020/07/01/1004725/redesign-internet-apps-no-one-controls-data-privacy-innovation-cloud/amp/ redirected to https://www.technologyreview.com/2020/07/01/1004725/redesign-internet-apps-no-one-controls-data-privacy-innovation-cloud/
URL 4:
- test-very-big-amp-outside-max-chunk.html should not de-amp - page loaded with lot of
a
s
URL 5:
- test-very-big-amp-inside-max-chunk.html should de-amp - redirected to brave.com
step 4 | URL1 | URL 2 | URL 3 | URL 4 | URL 5 |
---|---|---|---|---|---|
Verification PASSED on
STR/Cases:
Ensured that the following URL are correctly being redirected:
Verification PASSED on
STR/Cases:
Ensured that the following URL are correctly being redirected:
|
Description
By design, for performance and ease of implementation, we only check the first raw chunk of HTML for the AMP html tag and link canonical tag. If that is not the case, we don't De-AMP an AMP page.
We have two options:
Note that with the second option we would still only be looking for the canonical link, and only if it's an AMP page.
Steps to Reproduce
Actual result:
Expected result:
Go to https://www.nytimes.com/wirecutter/blog/burner-browser-to-hide-internet-searches/
Other example URLs
Reproduces how often:
Always
Version/Channel/Platform
This happens for both Android and Desktop, Stable (1.38+)
The text was updated successfully, but these errors were encountered: