PdfJs.jsm shouldn't use the app.update.postupdate preference
Categories
(Firefox :: File Handling, defect, P2)
Tracking
()
People
(Reporter: robert.strong.bugs, Assigned: Gijs)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [fxperf:p1])
Attachments
(1 file)
This preference is only set for a profile that performs an update. It doesn't get set for other profiles including the profiles of other users on the system. It also doesn't get set when a client manually upgrades to a new version.
Reporter | ||
Comment 1•5 years ago
|
||
If a method is needed to only do this on version change it could check the browser.startup.homepage_override.mstone pref and if it needs to only run when running a newer version it can check if the version is greater.
Reporter | ||
Comment 2•5 years ago
|
||
I've attached a patch to bug 1555088 since it was mostly done and will submit it to phab after this bug is fixed.
Florian, can you find someone to fix this bug so I can move forward with the patch in bug 1555088?
Updated•5 years ago
|
Comment 3•5 years ago
|
||
I mentioned this during the front-end performance meeting yesterday, Mike agreed to have a look at this to find an owner.
Assignee | ||
Comment 5•5 years ago
|
||
Talked to Conley, going to steal this. :-)
Updated•5 years ago
|
Assignee | ||
Comment 6•5 years ago
|
||
The nshandlerservice-json.js bit is misleading - it got renamed to HandlerService.js, and in any case the check is not there but in pdfjs, which is where bug 1389443 added it - https://hg.mozilla.org/mozilla-central/rev/22ad20546ae7#l2.2 . That makes this sort of a dupe of bug 1545167, but at this point I might as well just attempt to fix this here...
Assignee | ||
Comment 7•5 years ago
|
||
This is a fun rabbithole. AFAICT bug 1479245 removed the last access of PdfJs.enabled
. It's just dead code.
Assignee | ||
Comment 8•5 years ago
|
||
Assignee | ||
Comment 9•5 years ago
|
||
OK, so I'm not fixing this stuff init'ing the handler service well early, that's bug 1545167. I'm just removing the code that checks the update pref because it's dead, and took the opportunity to remove a slew of other dead code (we no longer support npapi pdf plugins, so no need to have code to cater to that usecase).
Comment 10•5 years ago
|
||
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/2af514f1a7bc clean up PdfJs enabled checking code, r=bdahl
Comment 11•5 years ago
|
||
Backed out changeset 2af514f1a7bc (bug 1559195)for failures at browser_startup_mainthreadio.js
Backout link: https://hg.mozilla.org/integration/autoland/rev/06d4b70144ff6e923f61b06d4164b9eda977c8cb
Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=255488228&repo=autoland&lineNumber=1730
Log snippet:
[task 2019-07-09T14:00:08.404Z] 14:00:08 INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_mainthreadio.js | read on /etc/mime.types allowed 1 more times before first paint -
[task 2019-07-09T14:00:08.405Z] 14:00:08 INFO - TEST-PASS | browser/base/content/test/performance/browser_startup_mainthreadio.js | close on /etc/mime.types allowed 1 more times before first paint -
[task 2019-07-09T14:00:08.406Z] 14:00:08 INFO - Buffered messages finished
[task 2019-07-09T14:00:08.407Z] 14:00:08 INFO - TEST-UNEXPECTED-FAIL | browser/base/content/test/performance/browser_startup_mainthreadio.js | unused whitelist entry before first paint: /etc/mime.types -
[task 2019-07-09T14:00:08.408Z] 14:00:08 INFO - Stack trace:
[task 2019-07-09T14:00:08.408Z] 14:00:08 INFO - chrome://mochikit/content/browser-test.js:test_ok:1576
[task 2019-07-09T14:00:08.409Z] 14:00:08 INFO - chrome://mochitests/content/browser/browser/base/content/test/performance/browser_startup_mainthreadio.js:null:1009
[task 2019-07-09T14:00:08.409Z] 14:00:08 INFO - chrome://mochikit/content/browser-test.js:Tester_execTest/<:1346
[task 2019-07-09T14:00:08.410Z] 14:00:08 INFO - chrome://mochikit/content/browser-test.js:Tester_execTest:1381
[task 2019-07-09T14:00:08.411Z] 14:00:08 INFO - chrome://mochikit/content/browser-test.js:nextTest/<:1209
Assignee | ||
Comment 12•5 years ago
|
||
Comment 13•5 years ago
|
||
Pushed by gijskruitbosch@gmail.com: https://hg.mozilla.org/integration/autoland/rev/c224dc32222b clean up PdfJs enabled checking code, r=bdahl
Comment 14•5 years ago
|
||
bugherder |
Updated•5 years ago
|
Description
•