We occasionally see cases where the primary plug-in detection runs before the plugins have been added to the page, especially if they do so in response to a load event. Tweak the algorithm so that it can run an arbitrary number of times if it fails.
<rdar://problem/14680740>
<rdar://problem/14741980>
Created attachment 208775 [details] Patch
Comment on attachment 208775 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=208775&action=review > Source/WebKit2/WebProcess/WebPage/WebPage.h:863 > + bool m_hasSeenPlugin; I'm pretty sure you need to reset this more often than you do.
Comment on attachment 208775 [details] Patch r=me with the change you mentioned on IRC to address the above comment
Change on irc was to add this to resetPrimarySnapshottedPlugIn m_numberOfPrimarySnapshotDetectionAttempts = 0; m_hasSeenPlugin = false;
Committed r154085: <http://trac.webkit.org/changeset/154085>