Closed
Bug 1370832
Opened 8 years ago
Closed 8 years ago
PluginProvider.jsm sometimes forces NSS initialization on the main thread before first paint
Categories
(Core Graveyard :: Plug-ins, defect, P2)
Core Graveyard
Plug-ins
Tracking
(firefox56 fixed)
RESOLVED
FIXED
mozilla56
Tracking | Status | |
---|---|---|
firefox56 | --- | fixed |
People
(Reporter: florian, Assigned: qdot)
References
Details
Attachments
(1 file)
The code at http://searchfox.org/mozilla-central/rev/20963d7269b1b14d455f47bc0260d0653015bf84/toolkit/mozapps/extensions/internal/PluginProvider.jsm#31 uses NSS to compute MD5 hashes.
See this profile: https://perfht.ml/2sf5TQ3
The JS call stack is:
getIDHashForString
getPluginList
buildPluginList
getAddonsByTypes
callProviderAsync
promiseCallProvider/<
Promise
promiseCallProvider
getAddonsByTypes/<
next
Comment 1•8 years ago
|
||
This sounds like perhaps bug 1358907?
Comment 2•8 years ago
|
||
(In reply to Andrew Swan [:aswan] from comment #1)
> This sounds like perhaps bug 1358907?
That's what triggers this now but the bug itself would arise with any other code invoking this.
The real issue dates back to bug 617289. The code here is trying to compute a persisted identifier for the plugins that is preserved across restarts.
Now that we only support Flash and a handful of other known plugins, can we have a whitelist of known plugin types here? Needinfoing qdot as he has worked on related stuff recently.
Flags: needinfo?(kyle)
Assignee | ||
Comment 3•8 years ago
|
||
Er, I'm not sure what you mean by whitelist here. This hashes the plugin by its name and description, and the description will contain the version number, so we'll still need some id for differentiating plugins (since Flash can be updated in the background while Firefox is running). I don't think it needs to be an md5 though. We've got few enough plugins that we could possibly just use the name/description string itself?
Flags: needinfo?(kyle)
Updated•8 years ago
|
Component: Add-ons Manager → Plug-ins
Product: Toolkit → Core
Comment 4•8 years ago
|
||
Yeah, I don't see any reason to use a hash here versus the actual strings.
Comment hidden (mozreview-request) |
Updated•8 years ago
|
Priority: -- → P2
Comment hidden (mozreview-request) |
Assignee | ||
Comment 7•8 years ago
|
||
This passed try, after I realized the plugin test failures were already intermittents that weren't related to this: https://treeherder.mozilla.org/#/jobs?repo=try&revision=a7cf9532e0f0f89356ad6a991e0ce96c8ea92aa0
Comment 8•8 years ago
|
||
mozreview-review |
Comment on attachment 8877317 [details]
Bug 1370832 - Remove PluginProvider Hash calculation for plugin name/desc;
https://reviewboard.mozilla.org/r/148652/#review153618
Attachment #8877317 -
Flags: review?(benjamin) → review+
Pushed by kmachulis@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/7f2e9866b29b
Remove PluginProvider Hash calculation for plugin name/desc; r=bsmedberg
Updated•8 years ago
|
Assignee: nobody → kyle
Assignee | ||
Comment 10•8 years ago
|
||
Since this is a fairly benign change that gets us a startup speed boost, is it worth uplifting?
Flags: needinfo?(benjamin)
Comment 11•8 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 8 years ago
status-firefox56:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla56
Comment 12•8 years ago
|
||
I don't think an uplift is necessary. Keep focus on 57!
Flags: needinfo?(benjamin)
Updated•3 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•