Closed Bug 946296 Opened 12 years ago Closed 12 years ago

Defect - Desktop add-ons loading into Metro browser

Categories

(Firefox for Metro Graveyard :: Browser, defect, P2)

x86_64
Windows 8.1
defect

Tracking

(firefox27 wontfix, firefox28 verified, firefox29 verified)

VERIFIED FIXED
Firefox 28
Tracking Status
firefox27 --- wontfix
firefox28 --- verified
firefox29 --- verified

People

(Reporter: ntim, Assigned: mbrubeck)

References

Details

(Whiteboard: [beta28] p=5)

Attachments

(1 file, 1 obsolete file)

Now that metro and desktop share the same profile, desktop addons also work on Metro mode. For example, my stylish userstyles st
Whiteboard: [triage]
End of the description : my stylish userstyles used on desktop still work on metro mode.
Can you clarify, are you saying that desktop add-ons are loading in metrofx? If so which add-on?
Flags: needinfo?(ntim007)
Well, basically all the ones that affect the page content : AdBlock Plus, Stylish, GreaseMonkey ...
Flags: needinfo?(ntim007)
All of them actually load but the ones affecting page content have visible effect
Confirmed with Stylish and the "youtube black 2013" theme. Not sure if this is good or bad, user styles are pretty harmless. Some might consider this a neat feature. I didn't see adblock plus loading though, I think we're just getting user styles here. We should confirm that though.
Status: UNCONFIRMED → NEW
Ever confirmed: true
(In reply to Jim Mathies [:jimm] from comment #5) > Confirmed with Stylish and the "youtube black 2013" theme. Not sure if this > is good or bad, user styles are pretty harmless. Some might consider this a > neat feature. I didn't see adblock plus loading though, I think we're just > getting user styles here. We should confirm that though Maybe metro firefox could have extra code for desktop add-ons to run and then add a new platform setting for metro ffx on AMO's website
(In reply to Tim Nguyen [:ntim] from comment #6) > Maybe metro firefox could have extra code for desktop add-ons to run and > then add a new platform setting for metro ffx on AMO's website We do plan to support addons, and yes there will be a new amo category for them. We won't be able to support desktop addons out of the box due to user interface differences. Developers will be able to update their desktop addons to make them compatible with metrofx if they choose to.
Hey Juan, can you confirm Desktop addons are not loading?
Flags: needinfo?(jbecerra)
Tested on 2013-12-09 with latest nightly and AdBlock Plus. First I installed the latest nightly and I installed Adblock Plus from their site. I tested that Adblock was working by visiting a few sites with lots of ads. Then I went to the drop-down menu on the top right and selected "Windows 8 Touch" to go into Metro mode. It looks like the ads on those pages were blocked in Metro mode as well. I also tested using NoScript, and searching for flights on hipmunk.com (which didn't work because NoScript prevented it from loading). When I loaded that site in Metro, it also did not work. Disabling NoScript in desktop mode then made it work in Metro, again, too.
Flags: needinfo?(jbecerra)
blocking!
Summary: Defect - Desktop add-ons work on Metro mode → Defect - Desktop add-ons loading into Metro browser
Whiteboard: [triage] → [beta28]
<bbondy> gotcha [11:36:00] <mbrubeck> http://mxr.mozilla.org/mozilla-central/source/browser/metro/profile/metro.js#203 [11:37:01] <bbondy> what do we want to do about that btw? because we want to be able to use things like dom inspector. I think I heard an idea of just allow it on nightly and block everywhere else? [11:37:41] <mbrubeck> bbondy: We could set the pref to 0 by default, and developers could switch it to 1 [11:37:51] <mbrubeck> documentation of the values, for reference: http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/extensions/AddonManager.jsm#2336 [11:38:14] <bbondy> there's already some manual setup needed so that sounds easiest/best to me [11:38:19] <bbondy> and just update the wiki
Taking this for iteration 21, p=1.
Assignee: nobody → mbrubeck
Flags: needinfo?(mmucci)
Whiteboard: [beta28] → [beta28] p=1
Added to IT#21.
Blocks: metrov1it21
No longer blocks: metrov1backlog
Status: NEW → ASSIGNED
Flags: needinfo?(mmucci)
Priority: -- → P2
QA Contact: jbecerra
Revising my point estimate based on new information. From conversation in IRC: <mbrubeck> I hoped we could use extensions.enableScopes to disable the profile scope, but we can't (currently): http://mxr.mozilla.org/mozilla-central/source/toolkit/mozapps/extensions/XPIProvider.jsm#2003 <Mossop> I mainly force-enabled the profile folder because all sorts of things wouldn't work right in the add-ons manager if the profile scope wasn't there. I can't guarantee sanity. The better solution is just to not load the add-ons manager at all in metro tbh <Mossop> So generally the patch should make sure that any use of KEY_APP_PROFILE in the add-ons manager does something sane when it doesn't exist. There are a few cases where right now a bad exception would be thrown, including at startup I think
Whiteboard: [beta28] p=1 → [beta28] p=5
Attached patch patch (obsolete) — Splinter Review
This is based on an alternate, simpler idea from Mossop. It completely disables the default XPIProvider and LightweightThemeManager while Firefox is running in Metro mode.
Attachment #8345411 - Flags: review?(bmcbride)
Comment on attachment 8345411 [details] [diff] [review] patch Review of attachment 8345411 [details] [diff] [review]: ----------------------------------------------------------------- Looks good, but needs a test. Should be enough to just check AddonManager.isInstallEnabled("application/x-xpinstall")==false
Attachment #8345411 - Flags: review?(bmcbride) → review-
Attached patch patch v2Splinter Review
Now with test!
Attachment #8345411 - Attachment is obsolete: true
Attachment #8345975 - Flags: review?(bmcbride)
Comment on attachment 8345975 [details] [diff] [review] patch v2 Review of attachment 8345975 [details] [diff] [review]: ----------------------------------------------------------------- ::: toolkit/mozapps/extensions/test/xpcshell/test_default_providers_pref.js @@ +1,5 @@ > +/* Any copyright is dedicated to the Public Domain. > + http://creativecommons.org/publicdomain/zero/1.0/ */ > + > +// Tests the preference-related properties of AddonManager > +// eg: AddonManager.checkCompatibility, AddonManager.updateEnabled, etc Oops, copy-paste error. I've updated this locally with a description of the actual test.
Comment on attachment 8345975 [details] [diff] [review] patch v2 Review of attachment 8345975 [details] [diff] [review]: ----------------------------------------------------------------- Ship it!
Attachment #8345975 - Flags: review?(bmcbride) → review+
Backed out because it broke mochitest-metro-chrome: https://hg.mozilla.org/integration/fx-team/rev/5fba9c37392d I think we need to set the pref to true in the test profile in order for the test harness to load.
Pushed to Try with a fix for the test profile: https://tbpl.mozilla.org/?tree=Try&rev=f6ac61675322
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
Comment on attachment 8345975 [details] [diff] [review] patch v2 [Approval Request Comment] Bug caused by (feature/regressing bug #): Shared profiles (bug 924860) User impact if declined: Certain add-ons load in Metro even though the Metro app does not yet support add-on installation or management. Testing completed (on m-c, etc.): Landed on m-c 12/12; includes an automated test. Risk to taking this patch (and alternatives if risky): Low-risk patch; all changes are behind a hidden pref that is enabled only for Metro. String or IDL/UUID changes made by this patch: None.
Attachment #8345975 - Flags: approval-mozilla-aurora?
Attachment #8345975 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Target Milestone: Firefox 29 → Firefox 28
Depends on: 951715
This change here totally broke our Mozmill test framework. See bug 951715. Thankfully there is a pref we can make use of to re-enable Mozmill for Metro. It would be very helpful for us to let us know about major changes in Metro which could affect testruns. Juan, can you please make that happen? Thanks.
Flags: needinfo?(jbecerra)
(In reply to Henrik Skupin (:whimboo) from comment #27) > This change here totally broke our Mozmill test framework. See bug 951715. Oops, sorry! I didn't even know we had Mozmill tests that ran the Metro browser. We'll have to add that to our development toolbox...
(In reply to Matt Brubeck (:mbrubeck) from comment #28) > Oops, sorry! I didn't even know we had Mozmill tests that ran the Metro > browser. We'll have to add that to our development toolbox... Those tests are not running in our CI yet, but we are working heavily on getting this accomplished soon. The last remaining blocker for us is mainly bug 911257. That means I expect to have our tests running in CI by end of January at latest. Would you mind to give me some more information about your dev toolbox? What is it? To not spam this bug I would also appreciate an email. Thanks.
Verified as fixed on latest Firefox Aurora (build ID:20140115004003).
Status: RESOLVED → VERIFIED
Depends on: 976849
Flags: needinfo?(jbecerra)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: