Closed Bug 454300 Opened 17 years ago Closed 16 years ago

Remove locale-specific subdomains from client-generated URLs

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Firefox 3.7a1
Tracking Status
status1.9.2 --- final-fixed
status1.9.1 --- wanted

People

(Reporter: stephend, Assigned: reed)

References

Details

Attachments

(1 file, 2 obsolete files)

Per bug 398938 (this bug would likely have to be fixed first before the functionality is removed), we should remove the locale-specific subdomains Firefox client-generated URLs.
No longer blocks: 398938
Assignee: nobody → reed
Attached patch patch - v1 (obsolete) — Splinter Review
Remove %LOCALE% or ${AB_CD} from most URLs used by Firefox. Places where locale-based subdomains are still used and cannot be removed at present time: * browser/app/profile/firefox.js -- browser.safebrowsing.provider.0.report*URL * other-licenses/branding/firefox/locales/browserconfig.properties -- browser.startup.homepage and browser.startup.homepage_reset * other-licenses/branding/firefox/locales/old-homepage-default.properties -- browser.startup.homepage
Attachment #337549 - Flags: review?(gavin.sharp)
Status: NEW → ASSIGNED
Flags: wanted1.9.0.x?
Flags: wanted1.8.1.x?
Flags: wanted-firefox3.1?
Flags: blocking-firefox3.1?
Attached patch patch - v1.1 (obsolete) — Splinter Review
unbitrotten version of v1
Attachment #337549 - Attachment is obsolete: true
Attachment #347475 - Flags: review?(gavin.sharp)
Attachment #337549 - Flags: review?(gavin.sharp)
Not blocking unless webdev tells us we need to, but yes, I'd be happy to simplify this.
Flags: wanted-firefox3.1?
Flags: wanted-firefox3.1+
Flags: blocking-firefox3.1?
Flags: blocking-firefox3.1-
Flags: wanted1.9.0.x?
Flags: wanted1.9.0.x-
Flags: wanted1.8.1.x?
Flags: wanted1.8.1.x-
13:17 <gavin> are you sure all of the services at those urls are being changed? 13:17 <gavin> (have they already been?) 13:18 <gavin> did you look through each change, or just grep/replace? Can you provide a list of test urls that cover each service being changed, to show that they work without the locale code?
pref("extensions.getAddons.browseAddons", "https://addons.mozilla.org/%LOCALE%/%APP%"); * https://addons.mozilla.org/en-US/firefox pref("extensions.getAddons.recommended.browseURL", "https://addons.mozilla.org/%LOCALE%/%APP%/recommended"); * https://addons.mozilla.org/en-US/firefox/recommended pref("extensions.getAddons.search.browseURL", "https://addons.mozilla.org/%LOCALE%/%APP%/search?q=%TERMS%"); * https://addons.mozilla.org/en-US/firefox/search?q=foobar pref("extensions.blocklist.detailsURL", "http://www.mozilla.com/%LOCALE%/blocklist/"); * http://www.mozilla.com/en-US/blocklist/ pref("browser.dictionaries.download.url", "https://addons.mozilla.org/%LOCALE%/%APP%/%VERSION%/dictionaries/"); * https://addons.mozilla.org/en-US/firefox/3.0.5/dictionaries/ pref("extensions.getMoreExtensionsURL", "https://addons.mozilla.org/%LOCALE%/%APP%/%VERSION%/extensions/"); * https://addons.mozilla.org/en-US/firefox/3.0.5/extensions/ pref("extensions.getMoreThemesURL", "https://addons.mozilla.org/%LOCALE%/%APP%/%VERSION%/themes/"); * https://addons.mozilla.org/en-US/firefox/3.0.5/themes/ pref("extensions.getMorePluginsURL", "https://addons.mozilla.org/%LOCALE%/%APP%/%VERSION%/plugins/"); * https://addons.mozilla.org/en-US/firefox/3.0.5/plugins/ pref("browser.search.searchEnginesURL", "https://addons.mozilla.org/%LOCALE%/%APP%/%VERSION%/search-engines/"); * https://addons.mozilla.org/en-US/firefox/3.0.5/search-engines/ pref("browser.safebrowsing.warning.infoURL", "http://www.mozilla.com/%LOCALE%/%APP%/phishing-protection/"); * http://www.mozilla.com/en-US/firefox/phishing-protection/ !define URLInfoAbout "http://www.mozilla.com/${AB_CD}/" * http://www.mozilla.com/en-US/ !define URLUpdateInfo "http://www.mozilla.com/${AB_CD}/firefox/" * http://www.mozilla.com/en-US/firefox/ pref("startup.homepage_override_url","http://www.mozilla.com/%LOCALE%/%APP%/%VERSION%/whatsnew/"); * http://www.mozilla.com/en-US/firefox/3.0.5/whatsnew/ pref("startup.homepage_welcome_url","http://www.mozilla.com/%LOCALE%/%APP%/%VERSION%/firstrun/"); * http://www.mozilla.com/en-US/firefox/3.0.5/firstrun/ pref("app.update.url.manual", "http://www.mozilla.com/%LOCALE%/%APP%/"); * http://www.mozilla.com/en-US/firefox/ pref("app.update.url.details", "http://www.mozilla.com/%LOCALE%/%APP%/releases/"); * http://www.mozilla.com/en-US/firefox/releases/ pref("app.releaseNotesURL", "http://www.mozilla.com/%LOCALE%/%APP%/%VERSION%/releasenotes/"); * http://www.mozilla.com/en-US/firefox/3.0.5/releasenotes/
Depends on: 471834
Note to myself: along with the patch above, we may have to embed ja locale specific URLs into ja/ja-JP-mac builds. https://ja.add-ons.mozilla.com/ja/ redirects to http://addons.mozilla.jp/ while https://addons.mozilla.org/ja/ does (should) not. See Bug 427323 for the background info.
Depends on: 505077
(In reply to comment #6) > Note to myself: along with the patch above, we may have to embed ja locale > specific URLs into ja/ja-JP-mac builds. > > https://ja.add-ons.mozilla.com/ja/ redirects to http://addons.mozilla.jp/ while > https://addons.mozilla.org/ja/ does (should) not. We are discussing this in Bug 505077.
Attached patch patch - v2Splinter Review
Attachment #347475 - Attachment is obsolete: true
Attachment #413168 - Flags: review?(gavin.sharp)
Attachment #347475 - Flags: review?(gavin.sharp)
pref("extensions.getAddons.browseAddons", "https://addons.mozilla.org/en-US/firefox"); pref("extensions.getAddons.recommended.browseURL", "https://addons.mozilla.org/en-US/firefox/recommended"); pref("extensions.getAddons.search.browseURL", "https://addons.mozilla.org/en-US/firefox/search?q=%TERMS%"); pref("browser.dictionaries.download.url", "https://addons.mozilla.org/en-US/firefox/dictionaries/"); pref("browser.search.searchEnginesURL", "https://addons.mozilla.org/en-US/firefox/search-engines/"); pref("browser.safebrowsing.warning.infoURL", "http://www.mozilla.com/en-US/firefox/phishing-protection/"); pref("browser.geolocation.warning.infoURL", "http://www.mozilla.com/en-US/firefox/geolocation/"); * echo formatURL("https://addons.mozilla.org/en-US/firefox/3.5.4/"); !define URLInfoAbout "http://www.mozilla.com/en-US/" !define URLUpdateInfo "http://www.mozilla.com/en-US/firefox/" pref("startup.homepage_override_url","http://www.mozilla.com/en-US/firefox/3.5.4/whatsnew/"); pref("startup.homepage_welcome_url","http://www.mozilla.com/en-US/firefox/3.5.4/firstrun/"); pref("app.update.url.manual", "http://www.mozilla.com/en-US/firefox/"); pref("app.update.url.details", "http://www.mozilla.com/en-US/firefox/releases/"); pref("app.releaseNotesURL", "http://www.mozilla.com/en-US/firefox/3.5.4/releasenotes/");
Attachment #413168 - Flags: review?(gavin.sharp) → review+
Status: ASSIGNED → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 3.7a1
Whiteboard: [baking on trunk since 2009-12-03]
Comment on attachment 413168 [details] [diff] [review] patch - v2 Requesting approval1.9.2 to this simple patch to remove locale-based subdomains from the various URLs. This allows us to start deprecating these URLs in the future and acts as a tiny perf improvement by not requiring users to go through a redirect.
Attachment #413168 - Flags: approval1.9.2?
Blocks: 532644
Comment on attachment 413168 [details] [diff] [review] patch - v2 a192=beltzner, post-hoc, reed has been scolded and he's begged for the appropriate forgiveness. We'll let him live, for now. ;)
Attachment #413168 - Flags: approval1.9.2? → approval1.9.2+
No longer blocks: 532644
Raymond: please ensure your script covers this too; thanks!
Flags: in-testsuite?
Whiteboard: [baking on trunk since 2009-12-03]
Raymond: do you have this updated in your script, yet? If so, please send me a new revision so I can land it, and then please mark this as in-testsuite+. Thanks!
blocking1.9.1: --- → ?
status1.9.1: --- → ?
blocking1.9.1: ? → ---
Blocks: 597985
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: