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

Unified Diff: webkit/glue/webframeloaderclient_impl.cc

Issue 165286: Stop resource loading for WebCore::MediaDocument... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webframeloaderclient_impl.cc
===================================================================
--- webkit/glue/webframeloaderclient_impl.cc (revision 22447)
+++ webkit/glue/webframeloaderclient_impl.cc (working copy)
@@ -982,6 +982,14 @@
d->DidReceiveDocumentData(webframe_, data, length);
}
+ // If we are sending data to WebCore::MediaDocument, we should stop here
darin (slow to review) 2009/08/14 00:15:37 One more tweak I would make: move this code to th
Alpha Left Google 2009/08/14 00:32:13 Yes, it is the first bit of data that triggers the
darin (slow to review) 2009/08/14 07:30:44 OK, that makes sense. Thanks!
+ // and cancel the request.
+ if (webframe_->frame()->document() &&
+ webframe_->frame()->document()->isMediaDocument()) {
+ loader->cancelMainResourceLoad(
+ pluginWillHandleLoadError(loader->response()));
+ }
+
// The plugin widget could have been created in the webframe_->DidReceiveData
// function.
if (plugin_widget_.get()) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698