Closed
Bug 693901
Opened 13 years ago
Closed 13 years ago
Add preference to globally (re)enable strict compatibility checks
Categories
(Toolkit :: Add-ons Manager, defect)
Toolkit
Add-ons Manager
Tracking
()
VERIFIED
FIXED
mozilla10
People
(Reporter: Unfocused, Assigned: Unfocused)
References
Details
(Keywords: dev-doc-complete)
Attachments
(1 file, 2 obsolete files)
177.97 KB,
patch
|
Details | Diff | Splinter Review |
Bug 693897 will allow individual addons to opt-in to strict compatibility checking, but there are cases where strict compatibility checking should be able to be enabled globally (ie, fall back to old not-compatibile-by-default behaviour): * Other toolkit apps may want to have strict compatibility checking * Mission critical situations. If you're sending Firefox to the aliens on Europa as a peace offering, you don't want it breaking because of an incompatible addon. They might not take kindly to that. * Will act as a kill-switch for this functionality if something breaks (saves a backout of the feature). Suggested name: extensions.strictCompatibilityChecking
Assignee | ||
Comment 1•13 years ago
|
||
My patch for this breaks a third of all Addon Manager xpcshell tests. This may take awhile...
Assignee | ||
Comment 2•13 years ago
|
||
My strategy for fixing the (OMG SO MANY) tests was: * If it tests something that determines compatibility, make a copy - one for compatible-by-default, one for strict compatibility. This was much easier than testing both in one test. * Otherwise, the test just wants an incompatible addon and doesn't care why it's incompatible - so enable strict compatibility for that test. I also made the updater tests run with strict compatiblity, as some of them expect certain addons to be incompatible. Same with one of the browser tests. The tests I made copies of already test everything to do with actually determining whats compatible and what's not, and how that affects appDisabled (etc). That just left testing the pref changes.
Attachment #567683 -
Flags: review?(dtownsend)
Comment 3•13 years ago
|
||
Comment on attachment 567683 [details] [diff] [review] Patch v1 Review of attachment 567683 [details] [diff] [review]: ----------------------------------------------------------------- I'm surprised to see no changes to AddonUpdateChecker.jsm here, or will those come elsewhere? ::: toolkit/mozapps/extensions/AddonManager.jsm @@ +378,5 @@ > > + try { > + gStrictCompatibility = Services.prefs.getBoolPref(PREF_EM_STRICT_COMPATIBILITY); > + } catch (e) {} > + Services.prefs.addObserver(PREF_EM_STRICT_COMPATIBILITY, this, false); I think the default should be true so apps have to explicitly opt into this behaviour ::: toolkit/mozapps/extensions/XPIProvider.jsm @@ +6857,5 @@ > + // Only extensions can be compatible by default; themes always use strict > + // compatibility checking. > + if (this.type == "extension" && !AddonManager.strictCompatibility) > + return true; > + I'm not sure we remembered to add it to the spec but we still want to test against the minVersion, i.e. an extension for Firefox 21 shouldn't install in Firefox 10.
Attachment #567683 -
Flags: review?(dtownsend) → review-
Assignee | ||
Comment 4•13 years ago
|
||
(In reply to Dave Townsend (:Mossop) from comment #3) > I'm surprised to see no changes to AddonUpdateChecker.jsm here, or will > those come elsewhere? Was going to do that in bug 527141. > I think the default should be true so apps have to explicitly opt into this > behaviour Hm, yea, makes sense. > I'm not sure we remembered to add it to the spec but we still want to test > against the minVersion, i.e. an extension for Firefox 21 shouldn't install > in Firefox 10. Almost forgot about that (it wasn't in the spec). Filed bug 695977 and amended the spec.
Assignee | ||
Comment 5•13 years ago
|
||
Attachment #567683 -
Attachment is obsolete: true
Attachment #568299 -
Flags: review?(dtownsend)
Comment 6•13 years ago
|
||
Comment on attachment 568299 [details] [diff] [review] Patch v2 Would it be worth grabbing one of hte project branches for this work? Looks like larch might be free
Attachment #568299 -
Flags: review?(dtownsend) → review+
Assignee | ||
Comment 7•13 years ago
|
||
(In reply to Dave Townsend (:Mossop) from comment #6) > Would it be worth grabbing one of hte project branches for this work? Looks > like larch might be free Instead of that, where I'd still need to deal with bitrot, what do you say to having this land with the pref toggled? (ie, land with the entire feature disabled)
Assignee | ||
Comment 8•13 years ago
|
||
Just some minor test fixes.
Attachment #568299 -
Attachment is obsolete: true
Comment 9•13 years ago
|
||
(In reply to Blair McBride (:Unfocused) from comment #7) > (In reply to Dave Townsend (:Mossop) from comment #6) > > Would it be worth grabbing one of hte project branches for this work? Looks > > like larch might be free > > Instead of that, where I'd still need to deal with bitrot, what do you say > to having this land with the pref toggled? (ie, land with the entire feature > disabled) I am in full support of this plan
Assignee | ||
Comment 10•13 years ago
|
||
(In reply to Dave Townsend (:Mossop) from comment #9) > > Instead of that, where I'd still need to deal with bitrot, what do you say > > to having this land with the pref toggled? (ie, land with the entire feature > > disabled) > > I am in full support of this plan Filed bug 698653 to flip the pref when we're ready.
Assignee | ||
Comment 11•13 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/41c52a9e1337
Flags: in-testsuite+
Flags: in-litmus-
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → mozilla10
Comment 12•13 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/1fb831781a15
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Updated•13 years ago
|
Keywords: dev-doc-needed
Comment 13•13 years ago
|
||
Does this not affect compatibility checking for themes?
Comment 14•13 years ago
|
||
(In reply to sdrocking from comment #13) > Does this not affect compatibility checking for themes? Correct. Themes created for a particular Firefox version are almost certainly broken in the subsequent release.
Comment 15•13 years ago
|
||
Setting this to verified. The pref is present and functional in about:config. Currently enabled on Nightly and disabled on Aurora. Two dependencies remaining for this.
Status: RESOLVED → VERIFIED
Comment 16•13 years ago
|
||
Documented: https://developer.mozilla.org/en/Install_Manifests#strictCompatibility And mentioned on Firefox 10 for developers.
Keywords: dev-doc-needed → dev-doc-complete
You need to log in
before you can comment on or make changes to this bug.
Description
•