Closed Bug 221597 Opened 21 years ago Closed 21 years ago

Firebird: remove the references to files packaged as chrome://communicator/* and chrome://navigator/*

Categories

(Firefox Build System :: General, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Firebird0.8

People

(Reporter: p_ch, Assigned: p_ch)

References

Details

Attachments

(1 file, 1 obsolete file)

> grep -slr "chrome://communicator" mozilla/browser/
mozilla/browser/mozilla/browser/app/profile/all.js
mozilla/browser/base/content/browser-menubar.inc
mozilla/browser/base/content/contentAreaUtils.js
mozilla/browser/base/content/openLocation.xul
mozilla/browser/base/content/printPreviewBindings.xml
mozilla/browser/components/bookmarks/content/bookmarksManager.xul
mozilla/browser/components/bookmarks/content/bookmarksPanel.xul
mozilla/browser/components/downloads/content/helperApps.js
mozilla/browser/components/history/content/history-panel.xul
mozilla/browser/components/prefwindow/content/overrideHandler.js
mozilla/browser/components/prefwindow/content/pref-calibrate-screen.xul
mozilla/browser/components/prefwindow/content/pref-charset.xul
mozilla/browser/components/prefwindow/content/pref-fonts.xul
mozilla/browser/components/prefwindow/content/pref-images.xul

> grep -slr "chrome://navigator" mozilla/browser/
mozilla/browser/app/profile/all.js
mozilla/browser/base/content/browser.js
mozilla/browser/base/content/openLocation.xul
mozilla/browser/base/skin/browser.css
mozilla/browser/components/downloads/skin/downloadmanager.css
mozilla/browser/components/prefwindow/content/pref-calibrate-screen.xul
mozilla/browser/components/prefwindow/content/pref-themes.xul
Priority: -- → P1
Target Milestone: --- → Firebird0.8
Blocks: 221602
Pierre, this is essentially what bug 200142 is all about. Shall I mark this bug
a duplicate of bug 200142 or the other way around?
Status:
> grep -slr "chrome://communicator" mozilla/browser/
mozilla/browser/app/profile/all.js
mozilla/browser/base/content/browser-menubar.inc
mozilla/browser/base/content/contentAreaUtils.js
mozilla/browser/base/content/printPreviewBindings.xml
mozilla/browser/components/downloads/content/helperApps.js
mozilla/browser/components/history/content/history-panel.xul
mozilla/browser/components/prefwindow/content/overrideHandler.js
mozilla/browser/components/prefwindow/content/pref-charset.xul
mozilla/browser/components/prefwindow/content/pref-images.xul
mozilla/browser/components/sidebar/src/nsSidebar.js

> grep -slr "chrome://navigator" mozilla/browser/
mozilla/browser/app/profile/all.js
mozilla/browser/base/content/browser.js
simon: well, this bug is not about removing the files we don't use, but about
not using the files we shouldn't.
Summary: Phoenix: remove the references to files packaged in comm.jar → Phoenix: remove the references to files packaged as chrome://communicator/* and chrome://navigator/*
Summary: Phoenix: remove the references to files packaged as chrome://communicator/* and chrome://navigator/* → Firebird: remove the references to files packaged as chrome://communicator/* and chrome://navigator/*
will fixing this bug fix 210553?  sounds related, but i don't know the mozilla code.
Current state:
> grep -slr "chrome://communicator"
mozilla/browser/mozilla/browser/app/profile/all.js
mozilla/browser/base/content/contentAreaUtils.js
mozilla/browser/components/downloads/content/helperApps.js
mozilla/browser/components/history/content/history-panel.xul
mozilla/browser/components/prefwindow/content/overrideHandler.js
mozilla/browser/components/prefwindow/content/pref-images.xul
mozilla/browser/components/sidebar/src/nsSidebar.js

> grep -slr "chrome://navigator"
mozilla/browser/mozilla/browser/app/profile/all.js
all.js things

chrome://navigator/locale/navigator.properties
chrome://navigator-region/locale/region.properties
chrome://communicator-region/locale/region.properties
missed one.  
chrome://navigator-platform/locale/navigator.properties
Pierre, these files are not part of the build:
mozilla/browser/components/prefwindow/content/pref-images.xul
mozilla/browser/components/prefwindow/locale/pref-images.dtd
mozilla/browser/components/prefwindow/content/overrideHandler.js
mozilla/browser/components/downloads/content/helperApps.js
mozilla/browser/components/sidebar/src/nsSidebar.js

We use other files, e.g. pref-features-images.xul, .js and .dtd.
And if you want to clean up some more, you can also cvs remove these files:
mozilla/browser/components/prefwindow/content/pref-downloads.js
mozilla/browser/components/prefwindow/content/pref-downloads.xul
mozilla/browser/components/prefwindow/content/unknownContentType.xul
mozilla/browser/components/prefwindow/locale/pref-downloads.dtd

They're now in mozilla/toolkit/mozapps/downloads.
There was a bunch of unused files (24 to be precise) nsSidebar.js is used
though. And we have now to decide what to do with all these *-region files, as
alanjstr pointed.

We're getting closer...!
Current state:
> grep -slr "chrome://communicator"
mozilla/browser/mozilla/browser/app/profile/all.js
mozilla/browser/components/sidebar/src/nsSidebar.js

> grep -slr "chrome://navigator"
mozilla/browser/mozilla/browser/app/profile/all.js

Thanks so much for cleaning up. I see that we need nsSidebar.js for e.g. adding
search engines. I was confused because it's not packed into browser.jar.

As for the *-region files, we should change the references
from chrome://navigator-region/locale/region.properties
and from chrome://communicator-region/locale/region.properties
to chrome://browser-region/locale/region.properties,

as well as from chrome://navigator/locale/navigator.properties
to chrome://browser/locale/browser.properties.

Make the necessary changes/additions to
mozilla/browser/base/locale/region.properties and browser.properties, and drop
the prefs we don't need.
Attached patch patch (obsolete) — Splinter Review
This is an implementation of my plan in comment 11.
It was easier than I thought.

Navigator version: startup.homepage_override_url=http://www.mozilla.org/start/
Browser version:
startup.homepage_override_url=http://www.mozilla.org/projects/firebird/
My suggestion:
startup.homepage_override_url=http://www.mozilla.org/products/firebird/
This setting is commented out by the way.

I added this pref. Don't know if we need it: general.useragent.contentlocale=US


Navigator version: browser.startup.homepage=http://www.mozilla.org/start/
Browser version:
browser.startup.homepage=http://www.mozilla.org/products/firebird/

fix typo that was already fixed in navigator:
intl.menuitems.alwaysappendaccesskeys=

There are two lines left in all.js, I need some help here:
pref("intl.collationOption",		   
"chrome://navigator-platform/locale/navigator.properties");
pref("intl.charset.default",		   
"chrome://navigator-platform/locale/navigator.properties");

The other settings are identical in navigator and browser.
Note that these files are not stored in comm.jar. But why not do it while we're
at it.
Comment on attachment 135522 [details] [diff] [review]
patch

Concerning that typo: The pref is only used in one place:
http://lxr.mozilla.org/mozilla/source/layout/xul/base/src/nsTextBoxFrame.cpp#20
9
It's "access", not "acces". So it's a good thing to correct that.
Comment on attachment 135522 [details] [diff] [review]
patch

Pierre was faster.
Attachment #135522 - Attachment is obsolete: true
This is my first patch minus the issues Pierre already fixed.
It changes navigator-region and communicator-region to browser-region.
thanks for help, Steffen.
Marking fixed !!!
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Component: Build Config → General
Product: Firefox → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: