CNN.com advertises Google Play app to Ubuntu users
Bug #1329799 reported by
Matthew Paul Thomas
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
webbrowser-app (Ubuntu) |
Fix Released
|
Undecided
|
Olivier Tilloy |
Bug Description
1. Go to <http://
2. Click the app "View" button.
What you see:
1. An iOS-imitating app banner advertising an app on Google Play.
2. An error message.
What you should see: No such banner.
Either CNN needs to be evangelized to show the banner only on Android, or the browser app's UA string needs to be changed.
(One way of reducing this problem would be a UA style sheet hiding all {display:block} elements pointing to market:// URLs. That wouldn't hide any that went through URL redirectors, though. I can't tell whether the CNN one goes through a redirector.)
Related branches
lp://qastaging/~osomon/webbrowser-app/smartbanners
- PS Jenkins bot: Approve (continuous-integration)
- Adnane Belmadiaf (community): Approve (community)
- Ubuntu Phablet Team: Pending requested
-
Diff: 51 lines (+36/-0)2 files modifiedsrc/Ubuntu/Web/UbuntuWebContext.qml (+6/-0)
src/Ubuntu/Web/smartbanners.js (+30/-0)
To post a comment you must log in.
While the idea of a custom style sheet that hides all blocks that point to market:// URLs sounds good, unfortunately in this specific instance it wouldn’t work as the banner is dynamically generated, and the link doesn’t have a href attribute, instead a very obfuscated onclick handler is installed on the link, meaning it would be very complex to detect the final target of the link.
There are two options here:
1) Evangelize CNN to teach them to recognize our default UA
2) Devise a custom UA override for cnn.com that won’t get us the banner