Changes to inline settings broke existing Firefox Mobile add-ons

VERIFIED FIXED in Firefox 8

Status

()

Toolkit
Add-ons Manager
VERIFIED FIXED
6 years ago
6 years ago

People

(Reporter: mfinkle, Assigned: darktrojan)

Tracking

({addon-compat, verified-aurora, verified-beta})

Trunk
mozilla9
addon-compat, verified-aurora, verified-beta
Points:
---
Bug Flags:
in-testsuite +
in-litmus ?

Firefox Tracking Flags

(firefox8+ fixed, firefox9 fixed)

Details

(Whiteboard: [qa+])

Attachments

(1 attachment, 1 obsolete attachment)

bug 669390 changed <setting type="control"> to only allow <button> children and added <setting type="multi"> to handle <menulist> and <radiogroup> children.

This breaks many Firefox Mobile add-ons which use <setting type="control"> for <menulist> children.

We need a way to keep <setting type="control"> to keep working for add-on compatibility. Ideas?
(Reporter)

Updated

6 years ago
status-firefox8: --- → affected
status-firefox9: --- → affected
tracking-firefox8: --- → ?
tracking-firefox9: --- → ?
One simple idea is to allow <setting type="control"> to have <menulist> children. Keep <setting type="multi"> as is, allowing <menulist> too.

This would allow old code still use the old binding, but new code will use the new binding.
Yea, that's the easiest way (er, and the only way?). In one of the reviews, I think I explicitly asked for <setting type="control"> to stop including <menulist>, since it was something we didn't want to support forever. But if that's causing pain...
It is causing pain. We can work to get add-ons using the new binding, but we can't go cold turkey now.

This affects Fx8, which becomes "Beta" tomorrow/today.
Blair do you have time to put together a patch for this? We need to get it in nightlies a.s.a.p. so we can get the confidence to push it to the betas.
Assignee: nobody → bmcbride
I am trying a patch too
Created attachment 562650 [details] [diff] [review]
patch

This patch merely adds "menulist" back to the allowed children of <setting type="control">. This means the developer is responsible for handling the saving and loading of the preference to the control.

If the developer wants to let the binding handle the preference syncing, they should use <setting type="multi">

This patch does correct the problem in Firefox Mobile. We should consider this a compatibility fix only. Let's not try to make type="control" into something bigger than it already is.
Assignee: bmcbride → mark.finkle
Attachment #562650 - Flags: review?(bmcbride)
(Assignee)

Comment 7

6 years ago
Created attachment 562655 [details] [diff] [review]
patch

My patch is better! :-P

And also already on try. https://tbpl.mozilla.org/?tree=Try&rev=5c3a17a73d94
Attachment #562650 - Attachment is obsolete: true
Attachment #562650 - Flags: review?(bmcbride)
Attachment #562655 - Flags: review?(bmcbride)
Attachment #562655 - Flags: review?(bmcbride) → review+

Comment 8

6 years ago
https://hg.mozilla.org/integration/mozilla-inbound/rev/ac92a6d8297c
Assignee: mark.finkle → geoff
Status: NEW → ASSIGNED
OS: Linux → All
Hardware: x86 → All
Target Milestone: --- → mozilla9
Version: unspecified → Trunk

Updated

6 years ago
status-firefox9: affected → fixed
tracking-firefox9: ? → ---
https://hg.mozilla.org/mozilla-central/rev/ac92a6d8297c
Status: ASSIGNED → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
Thanks for the quick turn around guys!
Mark, do you have an example extension which was broken?
(In reply to Henrik Skupin (:whimboo) from comment #11)
> Mark, do you have an example extension which was broken?

Bigger Text, by Matt Brubeck is one I tested. There are a few others too. Basically any add-on for Fennec that supplied it's own options is likely to fail.
Comment on attachment 562655 [details] [diff] [review]
patch

This patch was landed on Fx9 before Aurora, so it's already on Aurora now. We do need it on Beta though.

Safe, easy patch - with tests!
Attachment #562655 - Flags: approval-mozilla-beta?

Updated

6 years ago
Attachment #562655 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Comment 14

6 years ago
http://hg.mozilla.org/releases/mozilla-beta/rev/7b8d7d4b1c90
status-firefox8: affected → fixed
tracking-firefox8: ? → +
QA should track this fix across branches. Ioana, can one of you please verify this fix on the target branches, once it has been landed? Thanks.
Whiteboard: [qa+]
Keywords: addon-compat

Comment 16

6 years ago
Add-ons are working fine, including Bigger Text add-on. 

Verified fixed on Aurora 9 and Firefox 8 Beta 3: 
Mozilla /5.0 (Android;Linux armv7l;rv:9.0a2) Gecko/20111012 Firefox/9.0a2 Fennec/9.0a2  and  
Mozilla /5.0 (Android;Linux armv7l;rv:8.0) Gecko/20111011 Firefox/8.0 Fennec/8.0
Status: RESOLVED → VERIFIED
Geoff, I assume there is no manual test necessary? Please update the flag accordingly.
Flags: in-testsuite+
Flags: in-litmus?
Keywords: verified-aurora, verified-beta
You need to log in before you can comment on or make changes to this bug.