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

Issue 165286: Stop resource loading for WebCore::MediaDocument... (Closed)

Created:
11 years, 4 months ago by Alpha Left Google
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review)
Visibility:
Public.

Description

Stop resource loading for WebCore::MediaDocument BUG=17973 When a WebCore::Document is loaded, a resource request for the document is made. In case of MediaDocument the request for the media file is made separately through <video> and so the DocumentLoader should be stopped. This change mimic what is done in WebHTMLRepresentation (which is similar to our RenderView) and stops the resource loading in WebFrameLoaderClient since RenderView doesn't have access to WebCore types. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=23471

Patch Set 1 #

Total comments: 6

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+8 lines, -0 lines) Patch
M webkit/glue/webframeloaderclient_impl.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 3 comments Download

Messages

Total messages: 14 (0 generated)
Alpha Left Google
I referenced the code in WebKit (the real WebKit mac port) to make this patch. ...
11 years, 4 months ago (2009-08-11 01:58:58 UTC) #1
Alpha Left Google
The code to WebHTMLRepresentation.mm: http://trac.webkit.org/browser/trunk/WebKit/mac/WebView/WebHTMLRepresentation.mm
11 years, 4 months ago (2009-08-11 01:59:34 UTC) #2
scherkus (not reviewing)
change appears logical deferring to darin for final LGTM don't forget TEST= http://codereview.chromium.org/165286/diff/1/2 File webkit/glue/webframeloaderclient_impl.cc ...
11 years, 4 months ago (2009-08-11 17:30:28 UTC) #3
Alpha Left Google
http://codereview.chromium.org/165286/diff/1/2 File webkit/glue/webframeloaderclient_impl.cc (right): http://codereview.chromium.org/165286/diff/1/2#newcode980 Line 980: if (webframe_->frame()->document() && On 2009/08/11 17:30:28, scherkus wrote: ...
11 years, 4 months ago (2009-08-12 00:38:51 UTC) #4
Alpha Left Google
I'm pulling this patch because it has a bug refreshing a page of MediaDocument
11 years, 4 months ago (2009-08-12 00:54:11 UTC) #5
Alpha Left Google
It turns out that the ordering of method calls was wrong. Now I follow strictly ...
11 years, 4 months ago (2009-08-12 01:15:20 UTC) #6
scherkus (not reviewing)
I guess LGTM but still would like darin to take a peek
11 years, 4 months ago (2009-08-12 02:15:09 UTC) #7
darin (slow to review)
http://codereview.chromium.org/165286/diff/1008/9 File webkit/glue/webframeloaderclient_impl.cc (right): http://codereview.chromium.org/165286/diff/1008/9#newcode990 Line 990: loader->documentLoader()->cancelMainResourceLoad( can't you just use the "DocumentLoader* loader" ...
11 years, 4 months ago (2009-08-13 23:48:12 UTC) #8
Alpha Left Google
http://codereview.chromium.org/165286/diff/1008/9 File webkit/glue/webframeloaderclient_impl.cc (right): http://codereview.chromium.org/165286/diff/1008/9#newcode990 Line 990: loader->documentLoader()->cancelMainResourceLoad( Done about using DocumentLoad* loader instead. DocumentLoader ...
11 years, 4 months ago (2009-08-13 23:59:21 UTC) #9
darin (slow to review)
On Thu, Aug 13, 2009 at 4:59 PM, <hclam@chromium.org> wrote: > > http://codereview.chromium.org/165286/diff/1008/9 > File ...
11 years, 4 months ago (2009-08-14 00:02:16 UTC) #10
Alpha Left Google
On 2009/08/14 00:02:16, darin wrote: > On Thu, Aug 13, 2009 at 4:59 PM, <hclam@chromium.org> ...
11 years, 4 months ago (2009-08-14 00:09:12 UTC) #11
darin (slow to review)
http://codereview.chromium.org/165286/diff/13/14 File webkit/glue/webframeloaderclient_impl.cc (right): http://codereview.chromium.org/165286/diff/13/14#newcode985 Line 985: // If we are sending data to WebCore::MediaDocument, ...
11 years, 4 months ago (2009-08-14 00:15:37 UTC) #12
Alpha Left Google
http://codereview.chromium.org/165286/diff/13/14 File webkit/glue/webframeloaderclient_impl.cc (right): http://codereview.chromium.org/165286/diff/13/14#newcode985 Line 985: // If we are sending data to WebCore::MediaDocument, ...
11 years, 4 months ago (2009-08-14 00:32:13 UTC) #13
darin (slow to review)
11 years, 4 months ago (2009-08-14 07:30:44 UTC) #14
http://codereview.chromium.org/165286/diff/13/14
File webkit/glue/webframeloaderclient_impl.cc (right):

http://codereview.chromium.org/165286/diff/13/14#newcode985
Line 985: // If we are sending data to WebCore::MediaDocument, we should stop
here
On 2009/08/14 00:32:13, Alpha wrote:
> On 2009/08/14 00:15:37, darin wrote:
> > One more tweak I would make:  move this code to the top of the function and
> > return after cancelling the main resource load.  There is no reason to call
> > DidReceiveDocumentData in this case, right?  Or, does that initial bit of
> > document data cause the isMediaDocument flag to be set?
> 
> Yes, it is the first bit of data that triggers the isMediaDocument(), if we
move
> this block up and return it will actually cause rendering problem (a red page
is
> displayed). 

OK, that makes sense.  Thanks!

Powered by Google App Engine
This is Rietveld 408576698