Bug 171906 - [GTK] Better handle Amazon's country-specific pages?
Summary: [GTK] Better handle Amazon's country-specific pages?
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: WebKit Nightly Build
Hardware: PC Linux
: P3 Enhancement
Assignee: Nobody
URL:
Keywords: Gtk
Depends on:
Blocks:
 
Reported: 2017-05-09 19:37 PDT by Jeremy Bicha
Modified: 2017-05-09 21:02 PDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Bicha 2017-05-09 19:37:41 PDT
I think this is really Amazon's fault but I'm filing a bug in case it's something that you're interested in working around.

I am told that if you visit Amazon.com in the United Kingdom, Amazon.com displays a banner suggesting you visit Amazon.co.uk instead. (Many non-Amazon sites automatically redirect you to their country-specific site unless you explicitly opt out.)

This is a bit of a problem if someone wanted to distribute a webapp, say using Epiphany's webapp mode, where it would be bad to routinely show the user the wrong page. And it's also bad for other reasons to have several different webapps for each supported country and let the user pick the "right" one.

Ubuntu worked around this with their Unity implementation (which did not use webkitgtk at all) with a bit of JavaScript in front of their browser that would attempt to load the correct country web page.

You can get a list of the country versions by visiting an Amazon webpage and clicking the country link(s) at the bottom.
Comment 1 Michael Catanzaro 2017-05-09 21:02:28 PDT
Yeah, I don't think this really has anything to do with WebKit....

It's not an issue for Epiphany either, because web apps by design rely on you knowing the right domain at the time the web app is created. amazon.co.uk and amazon.com are just completely unrelated domains. You're going to need a custom desktop file that launches a wrapper script that picks the right URI to use when launching Epiphany in web app mode.