On the matter of Mozilla’s independence from Google (my employer), Asa Dotzler writes:

Google is the best right now so we chose them as the default. Yahoo is still a favorite of some people, and so it’s included in Firefox as an alternative. Some countries have other popular search services and we include those — even defaulting to them in some cases, when it makes sense for the users. [emphasis added]

This intrigued me, so I set out to find the default search engine for each locale. There doesn’t seem to be a definitive list, but as with all things Mozilla, the code is definitive. Thus…

According to the Mozilla localization wiki, the default search engine is stored in a region.properties file in the localization bundle. (If you’re running a XUL-based Mozilla browser, you can visit chrome://browser-region/locale/region.properties to see yours.) As I understand it, localization bundles are distributed like extensions, but they override strings instead of code. Here are the official bundles for 2.0.0.9, here are the ones for trunk.

Installing all of these and testing them would be a pain, but luckily there’s an easier way. XPI files are just ZIP archives, so you can decompress them with standard tools. Inside each is a JAR file, which is also a standard ZIP file. Unzipping everything down to bare files lets you use grep to search through all locales in one shot.

$ grep -R "browser.search.defaultenginename" 2.0.0.9/*

Hmm. All Google.

Ah, well, perhaps things are going to change in 3.0…

$ grep -R "browser.search.defaultenginename" 3.0-20071114/*

Nope. Still all Google.

Am I missing something? Perhaps I misunderstood the data structures and I’m looking in the wrong place? Perhaps there are other localization bundles lurking on some other site?

§

Sixteen comments here (latest comments)

  1. Also, grepping for “browser.search.order” gives almost all “.1=Google” and “.2=Yahoo”, and leaving out only these two gives exactly:

    cs: browser.search.order.2=Seznam
    ja: browser.search.order.2 = Yahoo! JAPAN
    ja: browser.search.order.3 = \u697d\u5929\u5e02\u5834
    ja: browser.search.order.4 = goo \u30a6\u30a7\u30d6
    ja: browser.search.order.5 = Yahoo!\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0
    ja: browser.search.order.6 = Yahoo!\u30aa\u30fc\u30af\u30b7\u30e7\u30f3
    ja: browser.search.order.7 = Amazon.co.jp
    ja: browser.search.order.8 = Creative Commons
    ru: browser.search.order.2 = Yandex
    sk: browser.search.order.2=Atlas

    So yeah, Google is #1 and Yahoo is #2, and there’s not much localisation beyond that. Unless they are somewhere else….

    — shreevatsa #

  2. In china and japan it’s yahoo:
    http://zh-cn.start.mozilla.com/
    http://ja.start.mozilla.com/

    not sure what others.

    — Robert Accettura #

  3. I remember some time ago, Yahoo was default search engine in Firefox for some Asian countries.
    http://www.google.com/search?q=firefox+yahoo+default+search+engine

    May be you can try it here,
    http://releases.mozilla.org/pub/mozilla.org/firefox/releases/partners/yahoo/

    But in the above site, I find only exe’s and no xpi’s.

    — Saravanan #

  4. Asa’s memory’s good, but it’s not always the freshest. What he was forgetting was bug 364297, where Gavin had to move heaven and earth to make it possible to change defaults for home page and default search engine (from Yahoo, to Google, in CJKT) for new profiles on the “stable” branch without blowing away existing profile choices, “[p]er contract requirements with” your employer.

    — Phil Ringnalda #

  5. Mark, you could have asked Gooogle and found out the story before calling me a liar.

    The first hit on a search for: firefox yahoo default search, and you’d have found several articles right up at the top talking about when we switched to Yahoo for CJK default search.

    And, yes, we did switch it back, after about a year. We switched back because our users in Asia told us over and over during that year that they searched more often with Google.

    We had thought, based on some market share data and input from some of our users that Yahoo would be a better default in Asia. We made the change trying to do the right thing for our users and when it turned out that it wasn’t the right thing, we returned the defaults to Google.

    - A

    — Asa Dotzler #

  6. And you could have asked Mozilla and found out the story before lying in public.

    — Mark #

  7. This is as interesting from a social perspective as a technical one, as the biggest difference the average Joe will see between the two search engines is the colour scheme. Is it just brand loyalty, or are less-knowledgeable users like myself missing something?

    — Jake #

  8. Firefox şi Google « Andrei Maxim | ro (pingback)
  9. Mark, we love you and all, but you need to get a grip on the Asperger’s or something. Treating a comment made at one moment in time (which might not be rightthissecond) as an intentional deception is over the top.

    — Tom Clancy #

  10. Tom Clancy: Seems like you’re easily led by Dotzler’s straw manning.

    — Frankie Robertson #

  11. If it “isn’t about money”, why are Mozilla taking it?

    — Marcus #

  12. All I see here is someone taking a statement and fact-checking it. And aside from his usual cynicism, I don’t see all that much abrasiveness in this post.

    Am I missing something? Perhaps I misunderstood the data structures and I’m looking in the wrong place? Perhaps there are other localization bundles lurking on some other site?

    That looks like an honest attempt at saying “Look I don’t see what you said, but it’s possible I may not understand exactly how this works.”

    Just because he’s right doesn’t mean he’s being a dick.

    And don’t get me wrong, I’ve also seen him be a dick… ; )

    — Ryan #

  13. Its foolish when you need to have to seach inputs on IE7, its default ang google toolbar.

    — Rokas #

  14. It is a little more acerbic than usual around here, if you ask me (and I know you didn’t). Mark, it is overreacting to accuse Asa of lying in public. As a matter of fact they DID default to other search engines in some cases, those being Yahoo in CJKT when it seemed like the right thing to do.

    If you’re trying to make a larger point, perhaps concerning the ‘contractual obligations’ referred to in bug 364297, it would be more effective to just make the point instead of badmouthing the principles.

    — rob #

  15. sorry, grammar police. its principals, not principles.

    — rob #

  16. Well, I started by just wanting to do a little research and write up my results, but Asa had to take it to the next level, and there’s something about the way he does that that consistently gets under my skin. So, I apologize for the overstatement, and I accept Phil’s educated guess that Asa was simply operating under old information.

    Getting back to the original Slashdot article that prompted this, it’s pretty clear that Mozilla is trying to assert their independence, and failing. “Methinks the lady doth protest too much” and all that. But at least they’re admitting that they’re getting the bulk of their revenue from a single vendor. (As an aside, I can’t imagine what it must feel like to be doing your thing and one day have a billion-dollar sugar daddy start sending you multi-million-dollar checks… each month.) I think Asa’s right that Mozilla could score a deal with someone else — Yahoo, or Ask, or even Microsoft — pretty quickly if Google cut them off. I can’t imagine why Google would do that, but my job description doesn’t go anywhere near “confidential contractual obligations,” so what do I know.

    — Mark #

Respond privately

I am no longer accepting public comments on this post, but you can use this form to contact me privately. (Your message will not be published.)



§

firehosecodeplanet

© 2001–8 Mark Pilgrim