Closed Bug 391820 Opened 18 years ago Closed 18 years ago

Addons manager breaks without MOZ_PLUGINS

Categories

(Toolkit :: Add-ons Manager, defect)

defect
Not set
major

Tracking

()

RESOLVED FIXED
mozilla1.9alpha8

People

(Reporter: toscha, Assigned: benjamin)

References

Details

(Keywords: regression)

Attachments

(3 files, 1 obsolete file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a8pre) Gecko/2007081005 Minefield/3.0a8pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a8pre) Gecko/2007080807 Thunderbird/3.0a1pre ID:2007081004 After opening 'Tools - Add ons' the extension manager does not show any installed extensions, themes or plugins in the several tabs. Error Console shows: Error: uncaught exception: [Exception... "Component returned failure code: 0x80570018 (NS_ERROR_XPC_BAD_IID) [nsIJSCID.getService]" nsresult: "0x80570018 (NS_ERROR_XPC_BAD_IID)" location: "JS frame :: chrome://mozapps/content/extensions/extensions.js :: initPluginsDS :: line 482" data: no] -------------------------------------------------------------------------------- Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIObserverService.removeObserver]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://mozapps/content/extensions/extensions.js :: Shutdown :: line 669" data: no] Reproducible: Always Steps to Reproduce: 1. Just open extension manager with at least one extension installed. 2. 3. Actual Results: EM does not display the extension.
Version: unspecified → Trunk
Confirming .[version 3.0a1pre (2007081104) (Linux version )]
In Linux version problem is worse . On start it shows empty add-on window , with extension , themes, language , plugins , update tabs . If 'skip' button is clicked or 'X' button is clicked only then Thunderbird window is available.
Thomas, I think you should change "OS" to "All"
OS: Windows XP → All
Confirming regression range: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a8pre) Gecko/2007080912 Thunderbird/3.0a1pre ID:2007080912 Works fine. Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9a8pre) Gecko/2007081004 Thunderbird/3.0a1pre ID:2007081004 Shows empty add-ons window. Looks like bug 339056 for sure
Status: UNCONFIRMED → NEW
Component: Preferences → Extension/Theme Manager
Depends on: 339056
Ever confirmed: true
Keywords: regression
Product: Thunderbird → Firefox
QA Contact: preferences → extension.manager
Hardware: PC → All
Target Milestone: --- → Firefox 3 M8
Summary: Redesigned extension manager does not show any installed extensions → Addons manager breaks without MOZ_PLUGINS
If this only happens when plugins are disabled, can we just WONTFIX this bug (or add an appropriate configure check so that Firefox can't be built with that option)?
(In reply to comment #7) > If this only happens when plugins are disabled, I'm sorry but this happens with every extension, independent whether they're disabled or enabled. With 5 extensions installed, 4 of them enabled, EM in Thunderbird doesn't show any of them. For plugins I don't know, I don't have any installed in Thunderbird.
I am talking about the --disable-plugins configure flag. Are you testing with official nightly builds or self-builds? If self-builds, are you using any configure (mozconfig ac_add_options) flags?
Oh, I see. I'm using official nightly builds, received through automatic update channel.
The bug has nothing to do with the fact that plugins a dosabled. I have been using plugins in trunk builds of TB for years. As a matter of fact, I hoped for more flexibility when I saw the new plugins tab.
Additionally: The official trunk builds have had plugins enabled forever. Let's not talk about throughing away another wanted feature as a matter of convenience.
Attached patch patch - adds a try catch (obsolete) — Splinter Review
I should have caught this in the review. :(
Assignee: nobody → robert.bugzilla
Status: NEW → ASSIGNED
Attachment #276303 - Flags: review?(benjamin)
(In reply to comment #13) > Created an attachment (id=276303) [details] > patch - adds a try catch > > I should have caught this in the review. :( > Can we just preprocess this out entirely? It turns out that thunderbird doesn't have plugins.xpt in packages-static, which I suspect prevents the plugin listing code from working properly.
I considered that but then it wouldn't handle XULRunner app's where we don't know whether it is or isn't available.
Actually we could... Benjamin, do you have a preference?
(In reply to comment #14) > (In reply to comment #13) > > Created an attachment (id=276303) [details] [details] > > patch - adds a try catch > > > > I should have caught this in the review. :( > > > Can we just preprocess this out entirely? It turns out that thunderbird doesn't > have plugins.xpt in packages-static, which I suspect prevents the plugin > listing code from working properly. > I guess you are not listening. Thunderbird trunk does package plugins.xpt
Joe... right, and by preprocessing the code using an #ifdef MOZ_PLUGINS as Michael suggested the code in the EM that requires Thunderbird to support plugins won't be called.
(In reply to comment #17) > I guess you are not listening. > Thunderbird trunk does package plugins.xpt > Oh? Where is it? I don't see it in thunderbird/components.
(In reply to comment #14) > (In reply to comment #13) > > Created an attachment (id=276303) [details] [details] > > patch - adds a try catch > > > > I should have caught this in the review. :( > > > Can we just preprocess this out entirely? It turns out that thunderbird doesn't > have plugins.xpt in packages-static, which I suspect prevents the plugin > listing code from working properly. > I guess you are not listening. Thunderbird trunk does package plugins.xpt
Ok I'll just make this one more comment and stop spamming this bug. I'm using a trunk build that has plugins.xpt built into it. The changes that brought about this bug caused a blank EM window. I don't see how pre-processing with an ifdef will solve that. Maybe for a build that does not have plugins.xpt Why not fix it for TB builds that do have the xpt and those builds are the current trunk builds.
(In reply to comment #21) > Ok I'll just make this one more comment and stop spamming this bug. > I'm using a trunk build that has plugins.xpt built into it. If you really were using a build with plugins.xpt, you wouldn't have this problem. Neither windows or linux nightly thunderbird builds have plugins.xpt - which is a Thunderbird problem. It has MOZ_PLUGINS turned on without packaging plugins.xpt. There is also another issue of this code needing to work when plugins are not compiled in, which is what preprocessing lines out would fix.
Comment on attachment 276303 [details] [diff] [review] patch - adds a try catch Hey Michael, neither of us got the memo about plugin support being enabled on trunk for Thunderbird... I believe the problem is that when they added it they didn't add plugin.xpt to packages-static
Attachment #276303 - Flags: review?(benjamin)
Filed bug 391886 for the Thunderbird specific issue
Reassigning - Michael has a patch just about done using #ifdef MOZ_PLUGINS.
Assignee: robert.bugzilla → michael.wu
Status: ASSIGNED → NEW
So I'm still confused about this bug. Is it thunderbird-only because we're not packaging plugins.xpt, or Firefox with --disable-plugins, or something else? I would prefer to not support the MOZ_PLUGINS (--disable-plugins) flag for toolkit... it's only meant for small-device embedders who aren't going to be using the EM anyway.
(In reply to comment #26) > So I'm still confused about this bug. Is it thunderbird-only because we're not > packaging plugins.xpt, or Firefox with --disable-plugins, or something else? > > I would prefer to not support the MOZ_PLUGINS (--disable-plugins) flag for > toolkit... it's only meant for small-device embedders who aren't going to be > using the EM anyway. > If you view bug activity, you will see that the bug was basically hi-jacked. Poor bug etiquette IMO Mscott seems to be unavailable at the moment for TB input.
The bug was moved to Firefox because that is where the extension manager component resides at the moment. This is not hijacking it but moving it to the component where those interested will see it.
Right, and if the result fixed the original bug in TB, that would be fine. But right now nothing connects the original problem reported for TB to the suggested fix in the spinoff bug except an sr request in that bug (which shows the solution but not the original problem.) Blocking and depends on flags would have preserved that connection.
Attachment #276303 - Attachment is obsolete: true
Attachment #276383 - Flags: review?(robert.bugzilla)
Benjamin, what is the use case where using the MOZ_PLUGINS flag is going to cause problem if it is used in toolkit? We can always try catch it but I'd like to know why it is an issue.
Flags: blocking-firefox3?
http://benjamin.smedbergs.us/blog/2005-07-29/the-testing-matrix/ I don't want to support (or pretend to support) arbitrary build flags that are only meant for small-device embedders. That calendar is disabling plugins (and Thunderbird is not packaging plugins.xpt) are bugs. So if bug 391886 is FIXED, I think we should just patch configure and sunbird to disable the flag. Patch forthcoming.
Attachment #276470 - Flags: review?(robert.bugzilla)
Comment on attachment 276470 [details] [diff] [review] Don't support that flag, rev. 1 Would you file a bug to cleanup the remainder of MOZ_PLUGINS in the tree?
Attachment #276470 - Flags: review?(robert.bugzilla) → review+
Attachment #276383 - Flags: review?(robert.bugzilla)
To be clear, this does not remove the MOZ_PLUGINS setting: when building in --enable-embedding-profile=minimal plugins are still disabled. But since this mode also disables XUL and doesn't use the EM, we don't have to worry about it for this bug.
Assignee: michael.wu → benjamin
I've landed the calendar/confvars.sh change. I didn't land the configure change because I've been rethinking it a little more and want to keep the flag and add an error message in some cases. But this bug as a calendar (and tbird) bug is FIXED.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Flags: blocking-firefox3? → blocking-firefox3+
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: