Closed Bug 264106 Opened 20 years ago Closed 20 years ago

Crash on launch: chrome://browser/content/hiddenWindow.xul can't be resolved

Categories

(Calendar :: Sunbird Only, defect)

PowerPC
macOS
defect
Not set
critical

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mattwillis, Assigned: mattwillis)

Details

(Keywords: crash)

Attachments

(1 file, 14 obsolete files)

68.95 KB, patch
mostafah
: first-review+
Details | Diff | Splinter Review
User-Agent:       Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; rv:1.7.3) Gecko/20040913 Firefox/0.10.1
Build Identifier: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; rv:1.7.3) Gecko/20040913 Firefox/0.10.1

Attempting to launch Sunbird (20041012) fails. The chrome URL
chrome://browser/content/hiddenWindow.xul cannot be resolved. hiddenWindow.xul
currently is found at chrome://global/content/hiddenWindow.xul

Reproducible: Always
Steps to Reproduce:
1. Build Sunbird on OSX with debug on
2. Launch Sunbird ($ open Sunbird.app/Contents/MacOS/sunbird-bin)
3. Watch it fail and note the debug output




This is from a single launch and failure of Sunbird:

ec000761:~ mwillis$
/Volumes/data/cvs/sunbird/mozilla/dist/Sunbird.app/Contents/MacOS/sunbird-bin; exit
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file nsINIParser.cpp, line 51
Type Manifest File: /Users/mwillis/Library/Application
Support/Sunbird/Profiles/iwox2u9t.default/xpti.dat
nsNativeComponentLoader: autoregistering begins.
*** Registering application components (all right -- a generic module!)
*** Registering nsAutoConfigModule components (all right -- a generic module!)
*** Registering nsSecurityManagerModule components (all right -- a generic module!)
*** Registering nsChromeModule components (all right -- a generic module!)
*** Registering docshell_provider components (all right -- a generic module!)
*** Registering nsEditorModule components (all right -- a generic module!)
*** Registering embedcomponents components (all right -- a generic module!)
*** Registering nsGfxMacModule components (all right -- a generic module!)
*** Registering nsLayoutModule components (all right -- a generic module!)
*** Registering nsPluginModule components (all right -- a generic module!)
*** Registering nsParserModule components (all right -- a generic module!)
*** Registering nsI18nModule components (all right -- a generic module!)
*** Registering nsIconDecoderModule components (all right -- a generic module!)
*** Registering nsImageLib2Module components (all right -- a generic module!)
*** Registering nsJarModule components (all right -- a generic module!)
*** Registering nsMorkModule components (all right -- a generic module!)
*** Registering nsFindComponent components (all right -- a generic module!)
*** Registering necko_core_and_primary_protocols components (all right -- a
generic module!)
*** Registering appshell components (all right -- a generic module!)
*** Registering BOOT components (all right -- a generic module!)
*** Registering NSS components (all right -- a generic module!)
*** Registering PKI components (all right -- a generic module!)
*** Registering nsPrefModule components (all right -- a generic module!)
*** Registering nsRDFModule components (all right -- a generic module!)
*** Registering nsTransactionManagerModule components (all right -- a generic
module!)
*** Registering nsUConvModule components (all right -- a generic module!)
*** Registering Browser_Embedding_Module components (all right -- a generic module!)
*** Registering nsWidgetMacModule components (all right -- a generic module!)
*** Registering xpcomObsoleteModule components (all right -- a generic module!)
*** Registering xpconnect components (all right -- a generic module!)
*** Registering oeICalModule components (all right -- a generic module!)
*** Registering nsSoftwareUpdate components (all right -- a generic module!)
nsNativeComponentLoader: autoregistering succeeded
nsNativeComponentLoader: registering deferred (0)
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file nsINIParser.cpp, line 51
nsNativeComponentLoader: autoregistering begins.
nsNativeComponentLoader: autoregistering succeeded
nsNativeComponentLoader: registering deferred (0)
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file nsINIParser.cpp, line 51
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file nsINIParser.cpp, line 51
WARNING: Creation of "{47049e42-1d87-482a-984d-56ae185e367a}" in progress
(Reentrant GS - see bug 194568), file nsComponentManager.cpp, line 1806
++WEBSHELL == 1
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file nsChromeRegistry.cpp,
line 613
WARNING: chrome: failed to get base url for
chrome://browser/content/hiddenWindow.xul -- using wacky default, file
nsChromeRegistry.cpp, line 548
Couldn't convert chrome URL: chrome://browser/content/hiddenWindow.xul
++DOMWINDOW == 1
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file nsWebShellWindow.cpp,
line 327
###!!! ASSERTION: HiddenWindow not created: 'NS_SUCCEEDED(rv)', file
nsAppShellService.cpp, line 480
Break: at file nsAppShellService.cpp, line 480
WARNING: NS_ENSURE_TRUE(NS_SUCCEEDED(rv)) failed, file nsAppRunner.cpp, line 1939
WARNING: nsExceptionService ignoring thread destruction after shutdown, file
nsExceptionService.cpp, line 191
nsMenuX 0
nsMenuItemX 0
nsStringStats
 => mAllocCount:           5142
 => mReallocCount:           81
 => mFreeCount:            5141  --  LEAKED 1 !!!
 => mShareCount:           3765
 => mAdoptCount:           1414
 => mAdoptFreeCount:       1413  --  LEAKED 1 !!!
This patch changes the path to hiddenWindow.xul to the correct location of
chrome://mozapps/content/hiddenWindow.xul

It also removes a couple stray tabs in the file.

(Note the error in my initial description: hiddenWindow.xul's chrome URL should
be mozapps, not global)
Attachment #161916 - Flags: first-review?(mostafah)
This patch requires the following other files:
? content/hiddenWindow.js
? content/hiddenWindow.xul
? content/menuOverlay.js
Assignee: mostafah → mattwillis
Attachment #161916 - Attachment is obsolete: true
Status: UNCONFIRMED → ASSIGNED
Summary: Crash on launch: chrome://browser/content/hiddenWindow.xul can't be resolved → Crash on launch: chrome://browser/content/hiddenWindow.xul can't be resolved
Attachment #161916 - Flags: first-review?(mostafah)
All other rev1 files are still relevant
Attachment #161983 - Attachment is obsolete: true
Keywords: crash
This patch has been revised to use the "include" style that Firefox uses. It's
much cleaner, and I feel more confident in the quality of rev3 than I do of
rev2 or rev1. 

This not only fixes the crashing problem, but on the Mac it also creates the
drop down menus (File, Edit, etc.) when you've closed the main calendar window.


The contents of this .tgz should be added to
mozilla/calendar/sunbird/base/content/
Attachment #161985 - Attachment is obsolete: true
Attachment #161986 - Attachment is obsolete: true
Attachment #161987 - Attachment is obsolete: true
Attachment #161993 - Attachment is obsolete: true
Attachment #162307 - Flags: first-review?(mostafah)
Attachment #162309 - Flags: first-review?(mostafah)
One more note: this patch means
mozilla/calendar/sunbird/base/content/menuOverlay.xul is no longer used and can
be removed.

- Is now ONE patch file! (go cvsutils and mvl!)
- adds MPL tri-license to all files
- adds "Window" menu for Mac OS X
- fixes some key bindings, abstracting them out to .dtds
  (THIS REQUIRES ATTACHMENT 162497 [details] [diff] TO BE CHECKED IN TO WORK)
  https://bugzilla.mozilla.org/attachment.cgi?id=162497&action=view
Attachment #162307 - Attachment is obsolete: true
Attachment #162309 - Attachment is obsolete: true
Attachment #162498 - Flags: first-review?(mostafah)
Attachment #162307 - Flags: first-review?(mostafah)
Attachment #162309 - Flags: first-review?(mostafah)
Attachment #162498 - Flags: first-review?(mostafah)
Yeah... I know what I said about the last patch. I forgot to add a key to
"Print" so accel+P works.

This one REALLY is the one.
Attachment #162498 - Attachment is obsolete: true
Attachment #162499 - Flags: first-review?(mostafah)
Attachment #162499 - Flags: first-review?(mostafah)
Attached patch rev7 - trunk - with print fix (obsolete) β€” β€” Splinter Review
Attachment #162499 - Attachment is obsolete: true
Attachment #162516 - Flags: first-review?(mostafah)
Attachment #162516 - Flags: first-review?(mostafah)
Attachment #162546 - Flags: first-review?(mostafah)
Attachment #162546 - Attachment is obsolete: true
Attachment #162546 - Flags: first-review?(mostafah)
This is getting downright comical. 
This should be good enough to check in for now.
Attachment #162599 - Flags: first-review?(mostafah)
Attachment #162599 - Attachment is obsolete: true
Attachment #162599 - Flags: first-review?(mostafah)
Attachment #162601 - Attachment is obsolete: true
Attachment #162601 - Attachment is obsolete: false
Attachment #162601 - Flags: first-review?(mostafah)
Comment on attachment 162601 [details] [diff] [review]
rev10 - trunk - fixed my own problem with diff

To begin with, license	blocks in .inc files should be commented with # in
order to be removed by the xul preprocessor otherwise they will show up in the
final compiled .xul  file
Attachment #162601 - Flags: first-review?(mostafah)
Comment on attachment 163724 [details] [diff] [review]
rev12 - trunk - fixed comments on .inc files, included "Window" menu code from FF

Patch checked in with some tweaks.
Attachment #163724 - Flags: first-review+
Fixed in CVS.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
The bugspam monkeys have been set free and are feeding on Calendar :: Sunbird Only. Be afraid for your sanity!
QA Contact: gurganbl → sunbird
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: