Closed Bug 386880 Opened 17 years ago Closed 17 years ago

JS-implemented net-content-sniffer leads to an infinite recursive loop at startup.

Categories

(Core :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 386376

People

(Reporter: Yoric, Unassigned)

Details

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070602 Firefox/2.0.0.4 (Swiftfox) XPCOMViewer/0.9.5
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4) Gecko/20070602 Firefox/2.0.0.4 (Swiftfox) XPCOMViewer/0.9.5

I've implemented a nsIContentSniffer using JavaScript/XPConnect. When installing the extension, no problem, works like a charm. Restart Firefox and segfault for ever. Comment out the "net-content-sniffers" line from compreg.dat and it works.

Reproducible: Always

Steps to Reproduce:
1. Implement a nsIContentSniffer in JavaScript.
2. Add it to the category "net-content-sniffers" as persistent
3. Restart Firefox.

Actual Results:  
Segfault


I'll attach the stack trace.
Suggested workaround (for now): developers who wish to implement a content sniffer in JS shouldn't register it as persistent. Rather, they should make the component a nsIObserver, wait for app-startup and register at that moment.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Product: Firefox → Core
QA Contact: general → general
Version: unspecified → Trunk
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: