Ensure npapi plugin is loaded before clicking on it
PluginTest.SelfDeletePluginInvokeInSynchronousMouseUp loads a page with a plugin and then simulates a mouse click on the plugin. Because the page load event can fire before the plugin has actually finished loading, the test can fail when the mouse event ends up getting sent too soon. This patch improves the test by ensuring the plugin has been loaded. As <embed> does not support a generic onload listener (each plugin needs to implement one separately), we instead set a dummy property on the object, which, as a side effect, forces the plugin to load synchronously. BUG=391005 Review URL: https://codereview.chromium.org/487863002 Cr-Commit-Position: refs/heads/master@{#290637} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290637 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment