Closed Bug 1116806 (asyncplugininit) Opened 10 years ago Closed 10 years ago

Let Asynchronous Plugin Initialization ride the train

Categories

(Core Graveyard :: Plug-ins, defect)

x86
All
defect
Not set
normal

Tracking

(firefox39+ disabled, firefox40- fixed, firefox41 fixed, relnote-firefox 39+)

RESOLVED FIXED
mozilla39
Tracking Status
firefox39 + disabled
firefox40 - fixed
firefox41 --- fixed
relnote-firefox --- 39+

People

(Reporter: bugzilla, Assigned: bugzilla)

References

Details

(Keywords: dev-doc-complete, site-compat)

Attachments

(2 files, 1 obsolete file)

Tracking bug for enabling Async Plugin Init by default.
Depends on: 998863
Depends on: 1115437
Depends on: 1115436
Depends on: 1116827
Depends on: 1116825
Depends on: 1117244
Depends on: 1117398
Depends on: 1117864
Depends on: 1119060
Depends on: 1119565
Depends on: 1121011
Depends on: 1121158
Depends on: 1121162
No longer depends on: 1119565
Depends on: 1123549
No longer depends on: 1123549
Depends on: 1123916
Depends on: 1125128
Depends on: 1127888
Alias: asyncplugininit
Depends on: 1130747
No longer depends on: 1125128
Attached patch Enable asyncInit (obsolete) (deleted) — Splinter Review
This will land in tandem with bug 1115437 and bug 1127888 which will ensure that all tests pass both with e10s and without.
Attachment #8566383 - Flags: review?(vdjeric)
Comment on attachment 8566383 [details] [diff] [review] Enable asyncInit Review of attachment 8566383 [details] [diff] [review]: ----------------------------------------------------------------- Post an announcement on m.d.platform informing them of this change, types of bugs to look out for, where to report them, and who to CC
Attachment #8566383 - Flags: review?(vdjeric) → review+
Depends on: 1129174
No longer depends on: 1129174
Filed bug 1135130 for e10s-specific issues. Since this bug deals with riding the trains, and e10s is not yet riding the trains, e10s-specific bugs should not be blocking this one.
Georg: Where will the asyncPluginInit value appear in the environment section? User-changed prefs?
Flags: needinfo?(gfritzsche)
Depends on: 1135491
https://hg.mozilla.org/integration/mozilla-inbound/rev/d1f1624d615c Backed out due to the sudden emergence of bug 1135431 when asyncInit is turned on :-(. According to try it goes orange ~50% of the time on Win64 debug.
(In reply to Vladan Djeric (:vladan) -- please needinfo! from comment #4) > Georg: Where will the asyncPluginInit value appear in the environment > section? User-changed prefs? Yes. We have it in the list in bug 1122046, bug 1131138 will take care of adding the requested prefs.
Flags: needinfo?(gfritzsche)
Depends on: 1136930
Release Note Request (optional, but appreciated) [Why is this notable]: It will significantly improve browser responsiveness when NPAPI plug-ins are instantiated in a web page. [Suggested wording]: Asynchronous initialization of NPAPI plug-ins has been enabled. [Links (documentation, blog post, etc)]: http://dblohm7.ca/blog/2014/06/17/asynchronous-plugin-initialization-an-introduction/ http://dblohm7.ca/blog/2014/12/31/asynchronous-plugin-initialization-nightly/
relnote-firefox: --- → ?
(In reply to Ryan VanderMeulen [:RyanVM UTC-4] from comment #10) > https://treeherder.mozilla.org/logviewer.html#?job_id=7670090&repo=mozilla- > inbound looks like fallout from this as well. No, that looks like bug 1128064.
Comment on attachment 8566383 [details] [diff] [review] Enable asyncInit Approval Request Comment [Feature/regressing bug #]: Asynchronous plugin initialization [User impact if declined]: Feature won't be available in 38 and will not be able to ride the trains ahead of e10s. [Describe test coverage new/current, TreeHerder]: Flag enabled and tested extensively on try. [Risks and why]: Moderate. Feature has been in the tree and tested for some time now. New unexpected issues may be encountered with a larger audience. It hasn't landed on Nightly yet because of e10s issues. Because this feature has a different implementation on e10s, it really needs to be activated on Aurora to be able to properly determine its effects in the non-e10s case. At the same time, we can always pref it off again if there are too many problems. [String/UUID change made/needed]: None.
Attachment #8566383 - Flags: approval-mozilla-aurora?
As 38 is going to be an ESR release, can we postpone that change for 39? The merge is next monday. It is a nice feature but I don't see the point of rushing here... Especially with a moderate risk.
(In reply to Sylvestre Ledru [:sylvestre] from comment #13) > As 38 is going to be an ESR release, can we postpone that change for 39? The > merge is next monday. > It is a nice feature but I don't see the point of rushing here... Especially > with a moderate risk. I'd really like to try it out now. The non-e10s case has barely seen any testing because it's been stuck on nightly. Since it is trivial to revert (by preffing off again), I'd really like to uplift ASAP.
Flags: needinfo?(sledru)
It is too late in the 38 cycle to take a new feature or important change. Moreover, the 38 release is one of the two major releases that we do now. I would like to avoid "noise" on this release with new features to focus on the one we have... 39 in aurora is just in a few days...
Flags: needinfo?(sledru)
(In reply to Sylvestre Ledru [:sylvestre] from comment #15) > It is too late in the 38 cycle to take a new feature or important change. > Moreover, the 38 release is one of the two major releases that we do now. You're the release manager so it's your call, however I do protest: The fact that 38 is a "big" release is precisely why it would be really good to take this feature! Performance *is* a feature, and this particular one eliminates 1/2 of our top ten hangs. To me that is something that is worth including in a "big" release.
This is all about risk management. I agree with Sylvestre that this is not the right kind of risk to take late in the aurora cycle for 38.
Attachment #8566383 - Flags: approval-mozilla-aurora? → approval-mozilla-aurora-
Depends on: 1119565
Target Milestone: --- → mozilla39
Attached patch Enable asyncInit (r2) (deleted) — Splinter Review
Modified to enable off-nightly only. Carrying forward r+.
Attachment #8566383 - Attachment is obsolete: true
Attachment #8584106 - Flags: review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
There are nightly users still testing e10s off. Isn't possible/worthy to detect that e10s is off and enable asyncInit?
Relnoting this for 39. Also tracking for 39.
Aaron does this apply to desktop only? Or should I add a release note for mobile too? Thanks.
Flags: needinfo?(aklotz)
Desktop only.
Flags: needinfo?(aklotz)
Depends on: 1149358
Depends on: 1152395
Depends on: 1151804
Depends on: 1153173
Depends on: 1156903
Depends on: 1157237
Depends on: 1156800
Depends on: 1156861
Depends on: 1170231
Depends on: 1170486
Depends on: 1171948
Depends on: 1170676
(I know it's still awaiting r+ but I hope in this case that Liz will forgive me) Approval Request Comment [Feature/regressing bug #]: Async plugin init [User impact if declined]: Crashes, hangs, and instability. Oh my! [Describe test coverage new/current, TreeHerder]: Disable configuration is in release and on e10s builds. [Risks and why]: None, this reverts to existing behavior in release. [String/UUID change made/needed]: None
Flags: needinfo?(lhenry)
Attachment #8621011 - Flags: review?(vdjeric)
Attachment #8621011 - Flags: approval-mozilla-beta?
Attachment #8621011 - Flags: review?(vdjeric) → review+
Comment on attachment 8621011 [details] [diff] [review] Patch for disabling by default on beta Approved for uplift to beta. :)
Flags: needinfo?(lhenry)
Attachment #8621011 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Depends on: 1173879
Depends on: 1187724
No longer depends on: 1187724
Looks like there are some site compatibility issues due to this async initialization. I have added compatibility note for developers: https://developer.mozilla.org/en-US/Firefox/Releases/40/Site_Compatibility#Plug-ins
(In reply to Kohei Yoshino [:kohei] from comment #27) > Looks like there are some site compatibility issues due to this async > initialization. I have added compatibility note for developers: > > https://developer.mozilla.org/en-US/Firefox/Releases/40/ > Site_Compatibility#Plug-ins Do you have any examples? If there are some issues then we need to file some bugs so I can look at them!
Bug 1121011, a dependency of this bug, may be an example. A Flash-based Japanese online stock trading system is also broken, but it's not reported yet.
(In reply to Kohei Yoshino [:kohei] from comment #29) > Bug 1121011, a dependency of this bug, may be an example. A Flash-based > Japanese online stock trading system is also broken, but it's not reported > yet. I can't reproduce bug 1121011. A bug report for the latter issue would be nice.
Depends on: 1194488
See bug 1194833 for reproduction case where this breaks any video using Google's Flash-IMA toolkit for ads. Ads and video playback are both broken.
Depends on: 1194833
Depends on: 1194600
Depends on: 1194958
I don't understand why you enabled API in FF40, it's clearly still bugged, I triaged 3 or 4 new bugs about Flash apps failling to load, even famous apps like FarmVille 2 on Facebook. IMHO, API should be disabled in a chemspill release until these bugs are fixed.
Depends on: 1193393
Depends on: 1194778
[Tracking Requested - why for this release]: This breaks various Flash content in Firefox 40, including video players, games, online stock trading system. I know 40.0.2 is already out, but this might be another chemspill driver. The risk should be pretty low, just change the dom.ipc.plugins.asyncInit pref to false as before.
This is affecting all the players on Farmville 2 on Firefox, can we please release an urgent fix for this? https://bugzilla.mozilla.org/show_bug.cgi?id=1194958
We need a back-out patch then.
Flags: needinfo?(aklotz)
(In reply to Loic from comment #32) > I don't understand why you enabled API in FF40, it's clearly still bugged, I > triaged 3 or 4 new bugs about Flash apps failling to load, even famous apps > like FarmVille 2 on Facebook. I can easily tell you why: Nobody - yes, nobody at all - reported any issues with it while it was on Firefox 40 Beta, and everything that was tested by our QA engineers worked as well. So it was not "clearly" having issues. That said, it seems like this is one more piece that shows us that too few of the right people are using Beta at this time or those that are may not report their issues.
We don't need a back-out patch. If we decide we need to get this disabled for users, we can and should do this with an add-on hotfix, which does not need an actual point-release.
Depends on: 1194929
Depends on: 1193484
Depends on: 1195140
any plans as to when we would be rolling out the add-on hotfix for this?
Depends on: 1195269
(In reply to Loic from comment #32) > I don't understand why you enabled API in FF40, it's clearly still bugged, I > triaged 3 or 4 new bugs about Flash apps failling to load, even famous apps > like FarmVille 2 on Facebook. None of these ended up attached to bug 1116806. If these things aren't being reported and/or the right people aren't being notified, then it's very difficult to get this right in time for release. (In reply to Kohei Yoshino [:kohei] from comment #35) > We need a back-out patch then. As KaiRo indicated, we'll do this via hotfix addon if necessary. I will be engaging with the appropriate parties to come to a decision on this. (In reply to Robert Kaiser (:kairo@mozilla.com) from comment #36) > (In reply to Loic from comment #32) > > I don't understand why you enabled API in FF40, it's clearly still bugged, I > > triaged 3 or 4 new bugs about Flash apps failling to load, even famous apps > > like FarmVille 2 on Facebook. > > I can easily tell you why: Nobody - yes, nobody at all - reported any issues > with it while it was on Firefox 40 Beta, and everything that was tested by > our QA engineers worked as well. So it was not "clearly" having issues. That > said, it seems like this is one more piece that shows us that too few of the > right people are using Beta at this time or those that are may not report > their issues. +1.
Flags: needinfo?(aklotz)
This is affecting our plugin as well in 40+. I had to disable dom.ipc.plugins.asyncInit. Is there guidance on what not to do from the plugin side to avoid the problem?
(In reply to akorchemniy from comment #41) > This is affecting our plugin as well in 40+. I had to disable > dom.ipc.plugins.asyncInit. Is there guidance on what not to do from the > plugin side to avoid the problem? Is this the affect plugin? http://downloads.asperasoft.com/connect2/ How can we reproduce the issue? Aaron, can you take a look?
Flags: needinfo?(akorchemniy)
Flags: needinfo?(aklotz)
1. Install Connect from http://downloads.asperasoft.com/connect2 2. Login https://faspex.com 3. mozilla / Mozilla1! 4. Visit the "New Package" page to repro hang
Flags: needinfo?(akorchemniy)
No longer depends on: 1193393
No longer depends on: 1193484
No longer depends on: 1194488
No longer depends on: 1194600
No longer depends on: 1194778
No longer depends on: 1194833
No longer depends on: 1194929
No longer depends on: 1194958
No longer depends on: 1195140
No longer depends on: 1195269
(In reply to akorchemniy from comment #41) > This is affecting our plugin as well in 40+. I had to disable > dom.ipc.plugins.asyncInit. Is there guidance on what not to do from the > plugin side to avoid the problem? I filed bug 1195609 to track your bug. Async plugin init is supposed to work seamlessly with existing plugins without modification, provided that the plugins are correctly abiding by the API contract. In particular, make sure that your plugin is checking return codes from NPN functions. Other than that, we're probably going to push a hotfix to disable the feature while the compatibility issues are being ironed out.
Flags: needinfo?(aklotz)
Not tracking this bug as it is about letting the feature riding the train. We should have a new bug. For now, tracking bug 1195609
Hi all, thanks for looking into this, do we have any plans as to when the hotfix would be rolled out?
No longer blocks: 1195761
Depends on: 1195761
(In reply to sspn from comment #46) > Hi all, thanks for looking into this, do we have any plans as to when the > hotfix would be rolled out? The hotfix will be in bug 1196000.
No longer depends on: 1195761
For reference: This also breaks Oracle Enterprise Manager 11g Database Control.
Depends on: 1200698
Depends on: 1203517
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: