Lessen startup IO by using a different method to determine an update was performed other than reading the update.status file
Categories
(Toolkit :: Application Update, defect, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox70 | --- | fixed |
People
(Reporter: robert.strong.bugs, Assigned: robert.strong.bugs)
References
(Blocks 1 open bug)
Details
Attachments
(2 files, 1 obsolete file)
|
30.13 KB,
patch
|
Details | Diff | Splinter Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review |
Spinoff of Bug 1446012 and specifically Bug 1446012 comment #8
I've been thinking about this a bit and I think the code can be changed as follows:
Replace the use of the app.update.postupdate pref in BrowserContentHandler.jsm with a check for if there is an activeUpdate for OVERRIDE_NEW_MSTONE and OVERRIDE_NEW_BUILD_ID. For the OVERRIDE_NEW_MSTONE case when there is an activeUpdate it can be passed to getPostUpdateOverridePage and when there isn't an activeUpdate it can just use the value of the startup.homepage_override_url pref.
https://searchfox.org/mozilla-central/source/browser/components/BrowserContentHandler.jsm#555-577
Remove the following from UpdateService.jsm
https://searchfox.org/mozilla-central/source/toolkit/mozapps/update/UpdateService.jsm#1889-1894
Replace the following so it just QI's the activeUpdate to nsIWritablePropertyBag.
https://searchfox.org/mozilla-central/source/browser/components/BrowserContentHandler.jsm#143-158
| Assignee | ||
Comment 1•7 years ago
|
||
Changes BrowserContentHandler.jsm to rely on whether there is a version change and an active update to determine whether to check for a what's new page and send an update ping
Changes BrowserContentHandler.jsm to rely on whether there is a build ID change and an active update to determine whether to send an update ping
Removes reading of the update.status file in UpdateService.jsm UpdateService::observe post-update-processing which is called during the profile-after-change observer notification
Updated•7 years ago
|
| Assignee | ||
Comment 2•7 years ago
|
||
Well, this is annoying. There are several other consumers that have decided to use the pref! Good times...
| Assignee | ||
Comment 3•7 years ago
|
||
https://searchfox.org/mozilla-central/source/browser/extensions/pdfjs/content/PdfJs.jsm#30
https://searchfox.org/mozilla-central/source/browser/components/enterprisepolicies/tests/browser/browser_policy_override_postupdatepage.js#10
https://searchfox.org/mozilla-central/source/toolkit/components/telemetry/tests/browser/browser_UpdatePingSuccess.js#18
| Assignee | ||
Comment 4•7 years ago
|
||
As suggested in comment #0, this can't be implemented unless nsHandlerService-json.js no longer has a dependency on the app.update.postupdate pref which was added in bug 1389443 so wontfixing. If a different method comes to mind I'll file a bug for it.
| Assignee | ||
Comment 5•7 years ago
|
||
Attaching this for safe keeping until after bug 1446012 is fixed or wontfixed.
Comment 6•7 years ago
|
||
The Pdfjs code in bug 1559195 is just being removed, but is actually already dead, so I'm gonna reopen this. :-)
| Assignee | ||
Comment 7•7 years ago
|
||
| Assignee | ||
Updated•7 years ago
|
Comment 9•7 years ago
|
||
| bugherder | ||
Description
•