Closed
Bug 857458
Opened 12 years ago
Closed 6 years ago
Remove support for update.rdf
Categories
(Toolkit :: Add-ons Manager, defect, P1)
Toolkit
Add-ons Manager
Tracking
()
RESOLVED
FIXED
mozilla67
Tracking | Status | |
---|---|---|
firefox67 | --- | fixed |
People
(Reporter: Unfocused, Assigned: aswan)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
(deleted),
text/x-phabricator-request
|
Details |
Currently, the Add-ons Manager uses nsIRDFService to read update manifests (update.rdf) - we'd like to kill that with fire. However, we can't just drop support for update.rdf. Instead, I'd like to move to using the RDF reader JSM that bug 857454 will implement.
Reporter | ||
Updated•12 years ago
|
Updated•8 years ago
|
Summary: Use RDF reader module for reading update.rdf manifests → Use RDF reader module for reading update.rdf manifests, or convert them to JSON
Comment 1•7 years ago
|
||
:mak, it seems like we can close this now that we only support web extensions. Is that correct?
Flags: needinfo?(mak77)
Assignee | ||
Comment 2•7 years ago
|
||
I'm pretty sure AMO still serves update manifests as rdf, even for webextensions.
Flags: needinfo?(mak77)
Assignee | ||
Comment 3•7 years ago
|
||
This one is tricky. We support both rdf and json for updates. There's an immediate dependency on AMO to get it to serve updates as json. But we also document the rdf update format for extension developers so we need to give them some notice if we're going to take it away.
I think we talked about this earlier but I can't find the bug. In any case, Jorge, can we make it deprecated an announce an intent to remove it in some specific release (say 60 just to pull something out of thin air?)
Flags: needinfo?(jorge)
Comment 4•7 years ago
|
||
(In reply to Eric Rahm [:erahm] (please no mozreview requests) from comment #1)
> :mak, it seems like we can close this now that we only support web
> extensions. Is that correct?
Regardless, once AMO is fixed, we should also remove the add-ons code that uses nsIRDFService and some tests could have to rewritten or removed.
Comment 5•7 years ago
|
||
(In reply to Andrew Swan [:aswan] from comment #3)
> This one is tricky. We support both rdf and json for updates. There's an
> immediate dependency on AMO to get it to serve updates as json. But we also
> document the rdf update format for extension developers so we need to give
> them some notice if we're going to take it away.
> I think we talked about this earlier but I can't find the bug. In any case,
> Jorge, can we make it deprecated an announce an intent to remove it in some
> specific release (say 60 just to pull something out of thin air?)
59 might make more sense so that it corresponds with the next ESR.
Comment 6•7 years ago
|
||
Moving AMO to use the JSON update format is not a priority at the moment, and Firefox 59 is too soon. I'll try to get this in for H1 2018, but unless there's some urgency to get this done sooner I can't make any promises.
Flags: needinfo?(jorge)
Comment 7•7 years ago
|
||
One thing we could do earlier is show a warning in the console when an RDF update happens (except for AMO). That will reach developers more effectively than any comms we put out, since these are all unlisted add-ons we're talking about.
Comment 8•7 years ago
|
||
That log will show to the end users of the add-ons not the developers (unless they test their add-on updates). Since at least all the add-ons come through AMO we could try hitting the end point specified in the add-on as it gets signed and seeing what format it is.
Assignee | ||
Comment 9•7 years ago
|
||
(In reply to Jorge Villalobos [:jorgev] from comment #6)
> Moving AMO to use the JSON update format is not a priority at the moment,
> and Firefox 59 is too soon. I'll try to get this in for H1 2018, but unless
> there's some urgency to get this done sooner I can't make any promises.
Eric might feel differently but this is about a chunk of obsolete bloat that we would like to remove from the browser. That's never really going to something we can realistically call "urgent" but its an ongoing tax. If I do the addons-server patches can we do this soon or is there another bottleneck like QA or something?
Flags: needinfo?(jorge)
Comment 10•7 years ago
|
||
> That log will show to the end users of the add-ons not the developers (unless they test their add-on updates)
We encourage devs to always test their add-ons with the console open. But I suppose it's a stretch to expect them to test their updates in the same way.
> If I do the addons-server patches can we do this soon or is there another bottleneck like QA or something?
It's not just a matter of changing to the new format. We'll probably need to support both formats for some time, to support older clients, and that means we'll need to add client detection and figure out what its performance impact will be. And sure, this needs lots of QA since add-on updates are a critical feature.
Flags: needinfo?(jorge)
Assignee | ||
Comment 11•7 years ago
|
||
(In reply to Jorge Villalobos [:jorgev] from comment #10)
> > If I do the addons-server patches can we do this soon or is there another bottleneck like QA or something?
>
> It's not just a matter of changing to the new format. We'll probably need to
> support both formats for some time, to support older clients, and that means
> we'll need to add client detection and figure out what its performance
> impact will be. And sure, this needs lots of QA since add-on updates are a
> critical feature.
The JSON format has been supported since Firefox 45 (see bug 1214058), given that webextensions were pretty primitive back then and AMO no longer accepts updates to legacy extensions, I think we can just make a clean switch. So sorry to keep nagging on this but in light of the above, if I write the addons-server patches, can we make time in the QA schedule to push this out soon-ish?
Flags: needinfo?(jorge)
Comment 12•7 years ago
|
||
> I think we can just make a clean switch
Sorry, but this is not a decision that we're going to make lightly. I understand the value of getting rid of RDF, and agree it should happen sooner rather than later, but I'm not going rush this through.
Flags: needinfo?(jorge)
Comment 13•7 years ago
|
||
I filed an issue to investigate the clean switch option: https://github.com/mozilla/addons-server/issues/6612
Updated•7 years ago
|
Summary: Use RDF reader module for reading update.rdf manifests, or convert them to JSON → stop supporting update.rdf
Comment 14•7 years ago
|
||
This is becoming increasingly problematic to maintain. We need to remove support for non-restartless add-ons before we can start working on things like supporting async startup and shutdown of bootstrap operations. At the moment, that requires majorly reworking a bunch of tests that currently need to support both RDF and JSON update formats.
Assignee: nobody → kmaglione+bmo
Priority: -- → P1
Summary: stop supporting update.rdf → Remove support for update.rdf
Blocks: post-57-api-changes
Comment 15•6 years ago
|
||
Is this a duplicate of fixed bug 857456?
Comment 16•6 years ago
|
||
No.
Assignee | ||
Updated•6 years ago
|
Assignee: kmaglione+bmo → aswan
Assignee | ||
Comment 17•6 years ago
|
||
Assignee | ||
Comment 18•6 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/55736daf0dc59cb10ce4ade6709312c9f317f549
Bug 857458 Remove addon manager update.rdf support r=kmag
Comment 19•6 years ago
|
||
Backed out changeset 55736daf0dc5 (bug 857458) for test_ext_contentscript_triggeringPrincipal.js failures
push that caused the backout: https://treeherder.mozilla.org/#/jobs?repo=mozilla-inbound&resultStatus=testfailed%2Cbusted%2Cexception&classifiedState=unclassified&selectedJob=226674378&revision=55736daf0dc59cb10ce4ade6709312c9f317f549
backout: https://hg.mozilla.org/integration/mozilla-inbound/rev/a8efc55933edf1c59a8be081de857129728ca76e
Flags: needinfo?(aswan)
Assignee | ||
Comment 20•6 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/5cdb6156ddaf34013e6d5425390499446f4d8d28
Bug 857458 Remove addon manager update.rdf support r=kmag
Comment 21•6 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 6 years ago
status-firefox67:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
Assignee | ||
Updated•6 years ago
|
Flags: needinfo?(aswan)
You need to log in
before you can comment on or make changes to this bug.
Description
•