Closed Bug 282057 Opened 20 years ago Closed 20 years ago

brand.dtd/brand.properties live in the wrong package!

Categories

(Toolkit :: Startup and Profile System, defect, P1)

defect

Tracking

()

RESOLVED FIXED
mozilla1.8beta2

People

(Reporter: benjamin, Assigned: benjamin)

Details

(Whiteboard: [xulrunner blocker])

brand.dtd and brand.properties live in chrome://global, which is terribly bad.
It means that xulrunner apps cannot insert their own brand.dtd/properties, which
means they can't use many of the advanced toolkit code like EM/update/whatever.
There should be a chrome://application package which each app is required to
register so that the toolkit can find the application name.

For backwards compatibility with existing extensions, I'm going to have DTD
references from chrome://global/locale/brand.dtd to
chrome://application/locale/brand.dtd
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → mozilla1.8beta2
Priority: P2 → P1
Whiteboard: [xulrunner blocker]
The plan has changed slightly, I am moving this files to a package named
chrome://branding/, which is the only chrome package affected by
--enable-official-branding (note that there are non-chrome things affected by
that flag as well).
Comitted on trunk, with a global
s|chrome://global/locale/brand\.properties|chrome://branding/locale/brand.properties|

I will do a global
s|chrome://global/locale/brand\.dtd|chrome://branding/locale/brand.dtd| shortly,
but because of the way DTD files are structured, I was able to add a
compatibility hack such that the old chrome://global/locale/brand.dtd location
will still work.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
There was a small error in this patch which means that thunderbird nightlies
from today (3/10) may start with XML parsing errors. This has been fixed, no
need to file another bug.
Hi Benjamin, I've got a debug thunderbird build from a few hours ago and all of
the branding in it says "Mail/News" instead of Thunderbird. Are we still missing
a change somewhere? 
In addition to the thunderbird errors mentioned above, I also get this error on
startup:

*** Failed to get string brandShortName in bundle: chrome://global/locale/brand.
properties
error setting title: [Exception... "Component returned failure code: 0x80004005
(NS_ERROR_FAILURE) [nsIStringBundle.GetStringFromName]"  nsresult: "0x80004005 (
NS_ERROR_FAILURE)"  location: "JS frame :: XStringBundle :: getString :: line 17
"  data: no]
--DOMWINDOW == 4


re-opening the bug to track these regressions. 
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Definitely something going wrong here...Firefox now calls itself "Gecko Browser":

See here: http://forums.mozillazine.org/viewtopic.php?t=232846
I built Firefox from a clean checkout at around 3 PM PST and I get the proper
branding.  is --enable-official-branding set for the affected builds?

This also changed the old brand.dtd values which still read "Firefox" and
"Thunderbird" into generic equivalents so building without the official flag
actually builds something generic.  For Thunderbird it is indeed Mail/News, see
http://lxr.mozilla.org/seamonkey/source/mail/locales/en-US/chrome/branding/
"Gecko browser" is a generic name for Firefox when you do not have
--enable-official-branding set. This begins to fix the trademark issue by moving
the Mozilla Foundation trademarks into the other-licenses directory. There are
still various "Firefox" strings hardcoded in various parts of browser/* which
will need to be looked at.

I am fixing the two remaining references to global/locale/brand.* imminently
(they were from the prefwindow landing, which happened after my global search
and replace).
Status: REOPENED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
I just did another clean build a few minutes ago and I'm still getting the same
exception errors I reported before when I re-opened this bug. Did you fix that
issue when you reclosed it?

*** Failed to get string brandShortName in bundle: chrome://global/locale/brand.
properties
************************************************************
* Call to xpconnect wrapped JSObject produced this error:  *
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [n
sIStringBundle.GetStringFromName]"  nsresult: "0x80004005 (NS_ERROR_FAILURE)"  l
ocation: "JS frame :: XStringBundle :: getString :: line 17"  data: no]
************************************************************

The weird thing is that I see brandShortName listed in brand.properties but the
string bundle fails to find it. 

Status: RESOLVED → REOPENED
Resolution: FIXED → ---
ooops I wasn't actually running the clean tree I just built. this issue does
look fixed.
Status: REOPENED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → FIXED
I think the changes to mozilla\toolkit\pinstripe\global.css caused a Thunderbird
OS X regression: Bug #286483
Flags: in-testsuite-
Component: XRE Startup → Startup and Profile System
QA Contact: nobody → startup
You need to log in before you can comment on or make changes to this bug.