Chromium Code Reviews| 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()) { |