- // PluginDocument::cancelManualPluginLoad should only be called once, but there are issues
- // with how many times we call beforeload on object elements. <rdar://problem/8441094>.
- if (!shouldLoadPluginManually())
- return;
-
- DocumentLoader* documentLoader = frame()->loader().documentLoader();
- documentLoader->cancelMainResourceLoad(ResourceError::cancelledError(documentLoader->request().url()));
- setShouldLoadPluginManually(false);