Skip to content
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

gs.statcounter.com broken because of Shields' HTTPS upgrade #5124

Closed
fmarier opened this issue Jul 4, 2019 · 4 comments
Closed

gs.statcounter.com broken because of Shields' HTTPS upgrade #5124

fmarier opened this issue Jul 4, 2019 · 4 comments

Comments

@fmarier
Copy link
Member

@fmarier fmarier commented Jul 4, 2019

The graphs on https://gs.statcounter.com don't show up unless the HTTPS upgrade part of Shields is disabled.

Screenshot from 2019-07-03 20-29-15

The following shows up in the devtools console:

Failed to load resource: net::ERR_TOO_MANY_REDIRECTS
gs_movePlatformList-inline.jquery.js:1 Failed to load resource: net::ERR_TOO_MANY_REDIRECTS
fusioncharts.maps-bc24f1d161.js:7 Uncaught ReferenceError: FusionCharts is not defined
    at fusioncharts.maps-bc24f1d161.js:7
gsNewsletterSubscribePanel-inline.js:1 Failed to load resource: net::ERR_TOO_MANY_REDIRECTS
gs.statcounter.com/:1 Access to XMLHttpRequest at 'https://gs.statcounter.com/chart.php?device=Desktop%20%26%20Mobile%20%26%20Tablet%20%26%20Console&device_hidden=desktop%2Bmobile%2Btablet%2Bconsole&multi-device=true&statType_hidden=browser&region_hidden=ww&granularity=monthly&statType=Browser&region=Worldwide&fromInt=201806&toInt=201906&fromMonthYear=2018-06&toMonthYear=2019-06&hideCaption=true&bottomLegend=true&siteStyling=true&siteChartMargins=true&setChartTitle=Browser%20Market%20Share%20Worldwide' (redirected from 'http://gs.statcounter.com/chart.php?device=Desktop%20%26%20Mobile%20%26%20Tablet%20%26%20Console&device_hidden=desktop%2Bmobile%2Btablet%2Bconsole&multi-device=true&statType_hidden=browser&region_hidden=ww&granularity=monthly&statType=Browser&region=Worldwide&fromInt=201806&toInt=201906&fromMonthYear=2018-06&toMonthYear=2019-06&hideCaption=true&bottomLegend=true&siteStyling=true&siteChartMargins=true&setChartTitle=Browser%20Market%20Share%20Worldwide') from origin 'http://gs.statcounter.com' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request.

Brave version (brave://version info)

Brave	0.66.99 Chromium: 75.0.3770.100 (Official Build) (64-bit)
Revision	cd0b15c8b6a4e70c44e27f35c37a4029bad3e3b0-refs/branch-heads/3770@{#1033}
OS	Linux

Other Additional Information:

It works fine in Firefox with HTTPS Everywhere and that makes sense since there's an exclusion for gs.statcounter.com upstream. While that exclusion in our list too, it doesn't look like we honor the exclusion.

@fmarier fmarier added this to Untriaged / Incoming in Shields via automation Jul 4, 2019
@rebron rebron added the webcompat label Jul 5, 2019
@rebron rebron added this to To do in Web Compatibility via automation Jul 5, 2019
@rebron rebron added the priority/P3 label Jul 5, 2019
@rebron rebron moved this from To do to P3 backlog in Web Compatibility Jul 9, 2019
@fmarier
Copy link
Member Author

@fmarier fmarier commented Aug 15, 2019

The first thing to do here would be to confirm that:

  • this is still broken, and that
  • the exception from the ruleset does make it to the leveldb database generated by brave/https-everywhere-builder.

If that's ignored, then it means that the bug lies in the Shields code which applies the HTTPS Everywhere rulesets.

@pipboy96
Copy link

@pipboy96 pipboy96 commented Aug 15, 2019

@fmarier thanks, will look into that.

@pipboy96
Copy link

@pipboy96 pipboy96 commented Aug 15, 2019

Navigating to https://gs.statcounter.com/ didn't trigger the issue on current stable Brave version.

@fmarier
Copy link
Member Author

@fmarier fmarier commented Aug 20, 2019

You're right, it does work. Maybe there was something else wrong with the rulesets after all. I upgraded the ruleset to the latest after merging your signature-checking PR.

@fmarier fmarier closed this Aug 20, 2019
Shields automation moved this from Untriaged / Incoming to Completed Aug 20, 2019
Web Compatibility automation moved this from P3 backlog to Done Aug 20, 2019
@rebron rebron removed this from Done in Web Compatibility Aug 22, 2019
@rebron rebron removed this from Completed in Shields Aug 22, 2019
@rebron rebron added this to To do in Web Compatibility via automation Aug 22, 2019
@rebron rebron moved this from To do to Done in Web Compatibility Aug 22, 2019
@rebron rebron removed this from Done in Web Compatibility Aug 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.