Page MenuHomePhabricator

Replace bits URL in Firefox app, if possible
Closed, ResolvedPublic

Description

The Firefox app has a direct reference to bits.wm.o encoded in its install.html here: https://github.com/wikimedia/apps-firefox-wikipedia/blob/master/install.html#L20

That, in turn, causes it to load the rest of the app from the same host/directory (bunch of js/image files, etc). We'd like to get that off of the bits hostname by uploading a new version of the app at some time, as the bits.wm.o hostname is slowly being deprecated now (but for this app and a host of other reasons, we'll probably have it available for backcompat long into the foreseeable future).

I'm not even sure what the replacement hostname or URL base path would look like, yet, and we'd still need to do some work to make it available at that future path. @ori may have some insight on that side of things.

Notable when researching this originally: The app store has version 3.2.9 as the latest. Our git repo has a handful of changes beyond that and a version bump to 3.3.0 dating back to mid-last-year, which was never pushed to the app store. Unsure if we'd want to include those changes, or just do a minimal update based on the 3.2.9 update to keep the risk down...

Assigning to @ori for now to look at where this should end up hostname/path -wise, can pass hot potato to @brion after :)

Event Timeline

BBlack assigned this task to ori.
BBlack raised the priority of this task from to Medium.
BBlack updated the task description. (Show Details)
BBlack added projects: acl*sre-team, Traffic, Mobile.
BBlack added subscribers: BBlack, brooke, ori.

Ok found some documentation on changing URLs: https://developer.mozilla.org/en-US/Marketplace/Publishing/Updating_apps#Updating_hosted_apps

Sounds like as long as we have a redirect in place for the original hosted directory (and thus also the manifest file) it shouldn't explode too badly.

We would make the updates on the listing here: https://marketplace.firefox.com/developers/app/wikipedia/edit -- looks like me, Tomasz, and Adam have access on that right now.

Change 227156 had a related patch set uploaded (by Ori.livneh):
Move WikipediaMobileFirefoxOS from bits to wikimedia.org docroot

https://gerrit.wikimedia.org/r/227156

Change 227156 merged by jenkins-bot:
Move WikipediaMobileFirefoxOS from bits to wikimedia.org docroot

https://gerrit.wikimedia.org/r/227156

Change 227158 had a related patch set uploaded (by Ori.livneh):
Update URL references from bits.* to meta.*.

https://gerrit.wikimedia.org/r/227158

Change 227158 merged by Ori.livneh:
Update URL references from bits.* to meta.*.

https://gerrit.wikimedia.org/r/227158

Change 227159 had a related patch set uploaded (by Ori.livneh):
Update WikipediaMobileFirefoxOS submodule for URL changes

https://gerrit.wikimedia.org/r/227159

Change 227159 merged by jenkins-bot:
Update WikipediaMobileFirefoxOS submodule for URL changes

https://gerrit.wikimedia.org/r/227159

I moved the submodule from docroot/bits to docroot/wikimedia.org, leaving a symlink behind to ensure existing references don't break. The manifest is now accessible at https://meta.wikimedia.org/WikipediaMobileFirefoxOS/manifest.webapp. The only thing left to do is update the listing in the Firefox Marketplace, which I will leave to @brion.

In T98373#1483672, @ori wrote:

I moved the submodule from docroot/bits to docroot/wikimedia.org, leaving a symlink behind to ensure existing references don't break. The manifest is now accessible at https://meta.wikimedia.org/WikipediaMobileFirefoxOS/manifest.webapp. The only thing left to do is update the listing in the Firefox Marketplace, which I will leave to @brion.

...aaaaand done.