uazo / cromite

Cromite a Bromite fork with ad blocking and privacy enhancements; take back your browser!
https://www.cromite.org/
GNU General Public License v3.0
3.48k stars 80 forks source link

Google News AMP pages do not work on mobile #1380

Closed YutMarma closed 2 months ago

YutMarma commented 2 months ago

Preliminary checklist

Can the bug be reproduced with corresponding Chromium version?

No

Are you sure?

Yes

Cromite version

127.0.6533.103

Device architecture

arm

Platform version

Android 14

Android Device model

Galaxy S20+

Is the device rooted?

No

Changed flags

no flags changed

Is this bug happening in an incognito tab?

Yes

Is this bug caused by the adblocker?

No

Is this bug a crash?

No.

Describe the bug

Trying to click links on news.google.com just reloads the news.google.com page itself. This isn't 100% of the links, but most of them. I suspect it's the ones that open in a "frame" (with the Google News toolbar at the top). The same links work fine in DuckDuckGo and other Android browsers I've tried.

I get the feeling I may have pocket-touched some popup question at some point, which would explain this behavior. I've tried disabling AdBlock and adjusting do not track, sec-gpc, custom tab intents, as well as clearing cache and cookies.

This happened mid-session for me, so I suspect this isn't so much a "bug" as it is some obscure setting that I butt-set that needs to be fixed. It's persisted through a device reboot.

Steps to reproduce the bug

  1. Go to news.google.com
  2. Click on pretty much any article. Articles from CNBC and CNN are verified to glitch.
  3. News.google.com reloads, article is not displayed.

Expected behavior

Link opens, often in a "frame" with the Google news widget garbage at the top.

Screenshots

No response

MicroBeast commented 2 months ago

Try to disable "Use Secure DNS" in Cromite if you use that.

I could reproduce the reload back issue when I still use that.

YutMarma commented 2 months ago

@MicroBeast I was excited to see that I had "Use Secure DNS" enabled.

However, disabling it... resulted in no change. 😢

I'm almost (almost!) positive it has something to do with the "container bar" that links on news.google.com open in for mobile browsers. Enabling "Desktop Site" results in no issues. It's as if something about trying to fetch data from domain "B" while maintaining domain "A"s presence is triggering a "nuh-uh-uh, that's a shady move, buster!" filter. I've tried disabling any Privacy/Security setting that seems like it would be relevant - disabling "Do No Track", "Sec-GPC", making sure "Allow Custom Tab Intents" is enabled (and trying it disabled for good measure), all three HTTP Referrer settings, and Adblock Plus off... all to no effect (though I haven't tried all 48 possible combinations of these settings).

For now I'm stuck using the DuckDuckGo browser, the best alternative I've found so far - though a so-called "privacy-focused" browser that doesn't even let you toggle JavaScript is extremely suspicious in my book, and I'd much rather be Cromiting 😄

Thanks again for the suggestion, though - if you have any other ideas please let me know!

MicroBeast commented 2 months ago

Sorry to hear that. That DNS is the only thing I changed so far. That because I was playing with it.

I did tried to disable Ads blocker too. I didn't mentioned it because that's seem give no effect, like you found.

uazo commented 2 months ago

the javascript error on the page is:

"Failed to retrieve dependencies of service HyhIue: No valid model for a4N6Ae requested by context:HyhIue"
"CustomError: No valid model for a4N6Ae requested by context:HyhIue"

I really wouldn't know what to check.

Th0masL commented 2 months ago

I can confirm I have the same problem on my phone.

Phone: Pixel 8 Android version: 14 Cromite: 128.0.6613.40

uazo commented 2 months ago

The bug is related to the amp pages, which are deactivated by default. For news.google reconstructs the non-amp link in a way I am not familiar with (and which no longer works). Unfortunately, I will have to delete the relevant code until something can be found to replace the amp link for news.google