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)
Tracking
(firefox27 wontfix, firefox28 verified, firefox29 verified)
VERIFIED
FIXED
Firefox 28
People
(Reporter: ntim, Assigned: mbrubeck)
References
Details
(Whiteboard: [beta28] p=5)
Attachments
(1 file, 1 obsolete file)
|
5.42 KB,
patch
|
Unfocused
:
review+
lsblakk
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
Now that metro and desktop share the same profile, desktop addons also work on Metro mode. For example, my stylish userstyles st
Updated•12 years ago
|
Blocks: metrov1backlog
Whiteboard: [triage]
| Reporter | ||
Comment 1•12 years ago
|
||
End of the description :
my stylish userstyles used on desktop still work on metro mode.
Comment 2•12 years ago
|
||
Can you clarify, are you saying that desktop add-ons are loading in metrofx? If so which add-on?
Flags: needinfo?(ntim007)
| Reporter | ||
Comment 3•12 years ago
|
||
Well, basically all the ones that affect the page content : AdBlock Plus, Stylish, GreaseMonkey ...
Flags: needinfo?(ntim007)
| Reporter | ||
Comment 4•12 years ago
|
||
All of them actually load but the ones affecting page content have visible effect
Comment 5•12 years ago
|
||
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
| Reporter | ||
Comment 6•12 years ago
|
||
(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
Comment 7•12 years ago
|
||
(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.
Comment 8•12 years ago
|
||
Hey Juan, can you confirm Desktop addons are not loading?
Flags: needinfo?(jbecerra)
Comment 9•12 years ago
|
||
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)
Comment 10•12 years ago
|
||
blocking!
Summary: Defect - Desktop add-ons work on Metro mode → Defect - Desktop add-ons loading into Metro browser
Whiteboard: [triage] → [beta28]
Comment 11•12 years ago
|
||
<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
| Assignee | ||
Comment 12•12 years ago
|
||
Taking this for iteration 21, p=1.
Assignee: nobody → mbrubeck
Flags: needinfo?(mmucci)
Whiteboard: [beta28] → [beta28] p=1
Comment 13•12 years ago
|
||
Added to IT#21.
Status: NEW → ASSIGNED
Flags: needinfo?(mmucci)
Priority: -- → P2
QA Contact: jbecerra
| Assignee | ||
Comment 14•12 years ago
|
||
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
| Assignee | ||
Comment 15•12 years ago
|
||
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 16•12 years ago
|
||
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-
| Assignee | ||
Comment 17•12 years ago
|
||
Now with test!
Attachment #8345411 -
Attachment is obsolete: true
Attachment #8345975 -
Flags: review?(bmcbride)
| Assignee | ||
Comment 18•12 years ago
|
||
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 19•12 years ago
|
||
Comment on attachment 8345975 [details] [diff] [review]
patch v2
Review of attachment 8345975 [details] [diff] [review]:
-----------------------------------------------------------------
Ship it!
Attachment #8345975 -
Flags: review?(bmcbride) → review+
| Assignee | ||
Comment 20•12 years ago
|
||
| Assignee | ||
Comment 21•12 years ago
|
||
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.
| Assignee | ||
Comment 22•12 years ago
|
||
Pushed to Try with a fix for the test profile:
https://tbpl.mozilla.org/?tree=Try&rev=f6ac61675322
| Assignee | ||
Comment 23•12 years ago
|
||
Re-landed with test fix:
https://hg.mozilla.org/integration/fx-team/rev/690537e87173
Comment 24•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 29
| Assignee | ||
Updated•12 years ago
|
Blocks: metroprofilesharing
status-firefox27:
--- → wontfix
status-firefox28:
--- → affected
status-firefox29:
--- → fixed
tracking-firefox28:
--- → ?
| Assignee | ||
Comment 25•12 years ago
|
||
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?
Updated•12 years ago
|
Attachment #8345975 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
| Assignee | ||
Comment 26•12 years ago
|
||
tracking-firefox28:
? → ---
Updated•12 years ago
|
Target Milestone: Firefox 29 → Firefox 28
Comment 27•12 years ago
|
||
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)
| Assignee | ||
Comment 28•12 years ago
|
||
(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...
Comment 29•12 years ago
|
||
(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.
Comment 30•12 years ago
|
||
Verified as fixed on latest Firefox Aurora (build ID:20140115004003).
Updated•11 years ago
|
Flags: needinfo?(jbecerra)
You need to log in
before you can comment on or make changes to this bug.
Description
•