Closed Bug 394990 Opened 17 years ago Closed 17 years ago

Running xpcshell tests: Components.classes['@mozilla.org/xre/app-info;1'] has no properties

Categories

(Toolkit Graveyard :: XULRunner, defect)

x86
Linux
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.9beta2

People

(Reporter: WeirdAl, Assigned: mossop)

References

Details

(Keywords: assertion, regression, testcase)

Attachments

(2 files)

Attached file error log
Somehow, I'm getting a conflict between nsBrowserContentHandler.js and xpcshell tests for extension manager.  I'm also seeing our old friend:

###!!! ASSERTION: XPConnect is being called on a scope without a 'Components' property!

Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a8pre) Gecko/2007090420 Minefield/3.0a8pre
Flags: blocking1.9?
Attachment #279696 - Attachment mime type: text/x-log → text/plain
What does this have to do with bug 378216?
I don't recall off the top of my head.  I think it was just looking at cvs blame, where the code came from.
xpcshell bugs usually don't block
Flags: blocking1.9? → blocking1.9-
This isnt to do with any testcases. Simply running a debug build xpcshell on trunk currently produces the following:

************************************************************
* Call to xpconnect wrapped JSObject produced this error:  *
[Exception... "'[JavaScript Error: "Components.classes['@mozilla.org/xre/app-info;1'] has no properties" {file: "file:///Users/dave/mozilla/build/minefield-debug/dist/bin/components/nsBrowserContentHandler.js" line: 750}]' when calling method: [nsIModule::registerSelf]"  nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"  location: "<unknown>"  data: yes]
************************************************************
js> quit()

WARNING: nsExceptionService ignoring thread destruction after shutdown: file /Users/dave/mozilla/source/HEAD/mozilla/xpcom/base/nsExceptionService.cpp, line 191
nsStringStats
 => mAllocCount:            936
 => mReallocCount:            0
 => mFreeCount:             936
 => mShareCount:             44
 => mAdoptCount:              7
 => mAdoptFreeCount:          7
No longer blocks: 378216
Attached patch patch rev 1Splinter Review
This simply plows on in the event there is no app-info.
Assignee: nobody → dtownsend
Status: NEW → ASSIGNED
Attachment #285011 - Flags: review?(gavin.sharp)
Attachment #285011 - Flags: review?(gavin.sharp) → review+
Attachment #285011 - Flags: approval1.9?
Whiteboard: [has patch][has reviews]
Whiteboard: [has patch][has reviews] → [has patch][has reviews][needs approval]
Attachment #285011 - Flags: approval1.9? → approval1.9+
Keywords: checkin-needed
Whiteboard: [has patch][has reviews][needs approval] → [has patch][has reviews]
Checking in browser/components/nsBrowserContentHandler.js;
/cvsroot/mozilla/browser/components/nsBrowserContentHandler.js,v  <--  nsBrowserContentHandler.js
new revision: 1.46; previous revision: 1.45
done
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9 M10
Whiteboard: [has patch][has reviews]
Product: Toolkit → Toolkit Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: