Closed Bug 339176 Opened 18 years ago Closed 18 years ago

Disabling about:config breaks about:plugins

Categories

(Other Applications :: CCK, defect)

x86
Windows XP
defect
Not set
minor

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: robert, Assigned: mkaply)

References

Details

Attachments

(1 file)

When the CCK is used to disable about:config, about:plugins is disabled as well.

Expected results:
about:plugins functions normally

Actual results:
"about:config has been disabled" is displayed
This was experienced on Firefox 1.5.0.3 using a .xpi generated by CCK 1.0.1
that's very strange.

I'm explicitly only overriding about:config

http://lxr.mozilla.org/seamonkey/source/extensions/cck/browser/resources/content/cckwizard/srcfiles/disableAboutConfig.js.in

const ABOUT_CONFIG_CONTRACTID = "@mozilla.org/network/protocol/about;1?what=config";
const NS_ABOUT_REDIRECTOR_MODULE_CID      = Components.ID('{f0acde16-1dd1-11b2-9e35-f5786fff5a66}');

darin, any ideas?
ok, so basically I was looking for  way to just override one particular contract ID, but I am overriding the entire component because of the CID.

Not sure how to work around this.
You're using the same CID as the default about module? That sounds wrong, you should be making up your own unique CID.
I tried using my own CID, and I get this:

* Call to xpconnect wrapped JSObject produced this error:  *
[Exception... "'Component does not have requested interface' when calling method
: [nsIModule::getClassObject]"  nsresult: "0x80004002 (NS_NOINTERFACE)"  locatio
n: "JS frame :: chrome://browser/content/browser.js :: loadURI :: line 1569"  da
ta: no]
Attached patch Fix for problemSplinter Review
I shouldn't have been using the system CID for about:
fix checked in. 

1.02 will be out soon.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: