Closed Bug 307566 Opened 20 years ago Closed 20 years ago

Talkback is being disabled with FF15b1 builds (when using an old profile)

Categories

(Toolkit :: Add-ons Manager, defect)

1.8.0 Branch
x86
Linux
defect
Not set
blocker

Tracking

()

VERIFIED FIXED

People

(Reporter: jay, Assigned: robert.strong.bugs)

References

Details

(Keywords: verified1.8)

Attachments

(4 files, 2 obsolete files)

With a profile I created a while back with a Deer Park trunk build from July, I am seeing some weird behavior during the extensions compatibility check with the Beta 1 candidate from today 20050908. The Talkback extension is being reported to not be compatible and since there is no way to get an update for that (it's part of the install and only available as an extension as part of the app)...it is disabled with Beta 1. Not sure why umo/amo is detecting it as a regular extension and disabling it, but that is not a good thing.
Nominating as a blocker, since many Linux users will likely run into this problem...due to the fact that we have not supported Software Update on that platform until recently. It also seems as if my profile was created around 7/7 using a Deer Park build (which I believe was off the Trunk)
Flags: blocking1.8b5?
Flags: blocking1.8b4?
Summary: Talkback is being disabled with FF15b1 builds (when using a profile from 1.0.x) → Talkback is being disabled with FF15b1 builds (when using an old profile)
Do you run into this with an upgrade from 1.0.6 to 1.5b1's rc? - A
I do not see this with a clean profile created with 1.0.5 or 1.0.6. With those profiles, FF15b1 starts normally (after working around a focus issue I just logged in bug 307567)...and Talkback is left alone. We need to figure out what in my profile is causing the update mechanism to treat it the way it does... because although most of our users will have 1.0.5 or 1.0.6, I bet they created their profiles sometime before then or maybe even a new one with a Trunk nightly after those releases. If anyone needs to take a look at files on my computer or if you have any ideas on places to look to see if Talkback is being written to files it shouldn't be...let me know.
It sounds like you have an old version of talkback and software update didn't update it... it wasn't disabled by AMO - it was disabled based on the old compatibility data from the original install of talkback as an extension.
What I'm saying is that there should be no "old compatibility data"...because I DID install the latest version of Talkback when I installed the FF15b1 build. Talkback is installed during the install as an "extension"...but I don't think it's the same "type" of extension as others, and therefore don't expect any Software Update functionality to mess with it.
There can be old compatibility info in the extensions datasource which is located in the profile. App compatibility applies to app installed extensions the same as it does for regular extensions but they of course should be updated with the app. They are different in that extensions installed into the app extensions dir with appManaged="true" in their install.rdf are not checked for updates. This may be the same issue as bug 307559 or a variation of it.
Flags: blocking1.8b5? → blocking1.8b5+
Flags: blocking1.8b4?
So according to the terminal messages, it looks like the server is checking for updates to Talkback. I've tried digging in the extensions directory and the extensions.* files, but have not been able to notice any differences between my old profile and recent ones created with 1.0.6 and 1.5b1...if anyone can gather more info from the attached screenshot about where to look, let me know and I can investigate further. Also, if it would help, I can just tar up my profile directories and attach them here (or email them to you if you want to take a look yourself).
Jay - Darin initially prevented checking for updates to talkback when it was first made into an extension by adding an updateURL of about:blank... updates were checked against about:blank which returned nothing. Now it uses the appManaged property to prevent updates. Can you verify that you have talkback installed in the application's extensions directory of the system that printed those console messages? If you do could you attach the install.rdf for it to this bug?
The file looks fine to me...and seems to work using other profiles created with 1.0.5, 1.0.6 and 1.5b1. Something is fishy with my profile...I don't think anything in the 1.5b1 app directory is causing this problem.
Thanks, the file when compared to the console output provided much needed info... the console output was not for that install.rdf so the update check is happening since your profile's extensions.rdf which is where that data is read from doesn't have the appManaged property. This is also happening before the upgrade of talkback since it is using this old install.rdf info per the console output which also shows it is looking at about:blank... talkback is then disabled. After that it should have found the updated install.rdf in the app's extensions/talkback@mozilla.org directory and re-enabled talkback. Now I have something to go on.
I'll try to finish up a patch for this by this evening.
Assignee: nobody → rob_strong
Version: 1.0 Branch → 1.5 Branch
Jay - if you could send me the extensions.rdf, extensions.cache, and extensions.ini from the profile that experiences this to my bugzilla email it may help with my testing of the patch this evening. Thanks.
Attached patch patch in progress (obsolete) — Splinter Review
Extracts the contents.rdf files for extensions during install so when they are read to create the chrome.manifest they aren't in the jar file which prevents the zip reader cache. This is needed since during an upgrade we may have multiple installs for a single item (e.g. upgrade from 1.0.x to 1.5, extension is installed but is not compatible, upgrade for an extension is then found, and the item is then upgraded). I did this for themes already a while ago.
Component: Software Update → Extension/Theme Manager
Attached patch patch (obsolete) — Splinter Review
Since the zip reader cache keeps coming back to haunt me I went ahead and extracted the contents.rdf files for creating the chrome.manifest files instead of reading them from inside the jar files. I had already done this for themes and Ben did this a while ago for the install.rdf files so this is the last of them. This allows us to have more than one install during a single startup and should also reduce startup time during an upgrade though that isn't all that important since upgrades don't happen all that often. This allowed me to finish the installs prior to getting to the compatibility update so the metadata for updated extensions supplied by the app can be updated beforehand. I added a helper function for getting a zip reader... this way if it fails we can be assured that it gets closed before returning which has caused problems in the past. I also added a check for whether the location can be written to in getItemLocation which fixes bug 308501.
Attachment #196953 - Attachment is obsolete: true
Attachment #197014 - Flags: review?(mconnor)
Comment on attachment 197014 [details] [diff] [review] patch holding off on review until I can test this more thoroughly... probably by this evening.
Attachment #197014 - Flags: review?(mconnor)
Attached patch patchSplinter Review
Attachment #197014 - Attachment is obsolete: true
Attachment #197112 - Flags: review?(mconnor)
Attachment #197112 - Flags: review?(mconnor) → review+
Fixed on trunk Checking in mozilla/toolkit/mozapps/extensions/src/nsExtensionManager.js.in; /cvsroot/mozilla/toolkit/mozapps/extensions/src/nsExtensionManager.js.in,v <-- nsExtensionManager.js.in new revision: 1.157; previous revision: 1.156
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Attachment #197112 - Flags: approval1.8b5?
Comment on attachment 197112 [details] [diff] [review] patch Approved per 9/26 bug triage meeting.
Attachment #197112 - Flags: approval1.8b5? → approval1.8b5+
Checked in to MOZILLA_1_8_BRANCH Checking in mozilla/toolkit/mozapps/extensions/src/nsExtensionManager.js.in; /cvsroot/mozilla/toolkit/mozapps/extensions/src/nsExtensionManager.js.in,v <-- nsExtensionManager.js.in new revision: 1.144.2.13; previous revision: 1.144.2.12
Keywords: fixed1.8
Status: RESOLVED → VERIFIED
Keywords: fixed1.8verified1.8
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: