Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(291)

Unified Diff: Source/WebCore/html/PluginDocument.cpp

Issue 14264012: Create errors (especially cancellation errors) internally to WebCore, rather (Closed) Base URL: svn://svn.chromium.org/blink/trunk/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/html/PluginDocument.cpp
===================================================================
--- Source/WebCore/html/PluginDocument.cpp (revision 148494)
+++ Source/WebCore/html/PluginDocument.cpp (working copy)
@@ -26,6 +26,7 @@
#include "PluginDocument.h"
#include "DocumentLoader.h"
+#include "CancelledResourceError.h"
#include "ExceptionCodePlaceholder.h"
#include "Frame.h"
#include "FrameLoader.h"
@@ -179,7 +180,7 @@
return;
DocumentLoader* documentLoader = frame()->loader()->activeDocumentLoader();
- documentLoader->cancelMainResourceLoad(frame()->loader()->cancelledError(documentLoader->request()));
+ documentLoader->cancelMainResourceLoad(CancelledResourceError(documentLoader->request().url()));
setShouldLoadPluginManually(false);
}

Powered by Google App Engine
This is Rietveld 408576698