From 1b01e4b449e22bf43420beffbe25fdbd4e2c008c Mon Sep 17 00:00:00 2001 From: "darin%meer.net" Date: Fri, 25 Mar 2005 01:31:29 +0000 Subject: [PATCH] landing xulrunner/app portion of bug 285799 "UserAgent string is malformed for XULRunner apps" r=bsmedberg [meant to check this in with the other part of the patch before] git-svn-id: svn://10.0.0.236/trunk@171185 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/xulrunner/app/Makefile.in | 5 +++++ mozilla/xulrunner/app/xulrunner.js | 2 ++ 2 files changed, 7 insertions(+) diff --git a/mozilla/xulrunner/app/Makefile.in b/mozilla/xulrunner/app/Makefile.in index d4315105f0b..eb964ec6976 100644 --- a/mozilla/xulrunner/app/Makefile.in +++ b/mozilla/xulrunner/app/Makefile.in @@ -50,6 +50,11 @@ DIRS = profile PREF_JS_EXPORTS = $(srcdir)/xulrunner.js +# hardcode en-US for the moment +AB_CD = en-US + +DEFINES += -DAB_CD=$(AB_CD) + ifeq ($(USE_SHORT_LIBNAME), 1) PROGRAM = xulrunner$(BIN_SUFFIX) else diff --git a/mozilla/xulrunner/app/xulrunner.js b/mozilla/xulrunner/app/xulrunner.js index c3f2b08d9e9..0d19fa42c86 100644 --- a/mozilla/xulrunner/app/xulrunner.js +++ b/mozilla/xulrunner/app/xulrunner.js @@ -34,6 +34,8 @@ * * ***** END LICENSE BLOCK ***** */ +#filter substitution + // We need to override the default values of these preferences since all.js // assumes these are in the navigator package, which for us is non-existant. // XXX(darin): perhaps all.js should not be seamonkey specific