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

Issue 14054023: Add loadedNonEmptyDocument flag in FrameLoader for Resource Timing (Closed)

Created:
7 years, 8 months ago by Pan
Modified:
7 years, 7 months ago
CC:
blink-reviews, gavinp+loader_chromium.org
Base URL:
http://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Add loadedNonEmptyDocument flag in iframe for Resource Timing Sometimes iframe src is blank in markup, and then will be set a real URL via script, Resource Timing would like to populate resource fetched from the real URL, but avoid the self navigation after that, so this change add a flag loadedNonEmptyDocument to achieve that. BUG=236180

Patch Set 1 #

Patch Set 2 : store loadedNonEmptyDocument state in HTMLIFrameElement #

Total comments: 6

Patch Set 3 : set loadedNonEmptyDocument in setDocumentLoader #

Total comments: 2

Patch Set 4 : set loadedNonEmptyDocument flag in CachedResourceLoader(Resource Timing related code) #

Total comments: 2

Patch Set 5 : patch to land #

Patch Set 6 : rebase #

Messages

Total messages: 18 (0 generated)
Pan
Hi japhet, could you please review it? thanks! Pan
7 years, 8 months ago (2013-04-28 05:08:53 UTC) #1
eseidel
I don't like this. But it's not so much your fault as it is that ...
7 years, 7 months ago (2013-04-28 08:00:59 UTC) #2
eseidel
If nate thinks this is OK, that's all that matters. He is the man with ...
7 years, 7 months ago (2013-04-28 08:01:48 UTC) #3
Nate Chapin
On 2013/04/28 08:01:48, Eric Seidel (Google) wrote: > If nate thinks this is OK, that's ...
7 years, 7 months ago (2013-04-29 13:16:05 UTC) #4
James Simonsen
On 2013/04/29 13:16:05, Nate Chapin wrote: > On 2013/04/28 08:01:48, Eric Seidel (Google) wrote: > ...
7 years, 7 months ago (2013-04-29 21:05:16 UTC) #5
Nate Chapin
On 2013/04/29 21:05:16, James Simonsen wrote: > On 2013/04/29 13:16:05, Nate Chapin wrote: > > ...
7 years, 7 months ago (2013-04-29 21:11:13 UTC) #6
eseidel
Seems fine to add this bool to the iframe. Assuming it has the callbacks to ...
7 years, 7 months ago (2013-04-29 21:14:50 UTC) #7
Pan
thanks everybody. The flag now is stored in iframe, it won't add the FrameLoader state ...
7 years, 7 months ago (2013-04-30 10:06:12 UTC) #8
Nate Chapin
https://codereview.chromium.org/14054023/diff/9001/Source/core/html/HTMLFrameOwnerElement.h File Source/core/html/HTMLFrameOwnerElement.h (right): https://codereview.chromium.org/14054023/diff/9001/Source/core/html/HTMLFrameOwnerElement.h#newcode64 Source/core/html/HTMLFrameOwnerElement.h:64: virtual void didLoadNonEmptyDocument() {} Hmm...I'm not sure whether it ...
7 years, 7 months ago (2013-04-30 19:55:58 UTC) #9
Pan
https://codereview.chromium.org/14054023/diff/9001/Source/core/html/HTMLFrameOwnerElement.h File Source/core/html/HTMLFrameOwnerElement.h (right): https://codereview.chromium.org/14054023/diff/9001/Source/core/html/HTMLFrameOwnerElement.h#newcode64 Source/core/html/HTMLFrameOwnerElement.h:64: virtual void didLoadNonEmptyDocument() {} On 2013/04/30 19:55:58, Nate Chapin ...
7 years, 7 months ago (2013-05-07 08:45:52 UTC) #10
Pan
japhet, This time I set the Boolean when a non-empty m_provisionalDocumentLoader loader is back (I ...
7 years, 7 months ago (2013-05-07 09:57:15 UTC) #11
Nate Chapin
https://codereview.chromium.org/14054023/diff/20001/Source/core/loader/cache/CachedResourceLoader.cpp File Source/core/loader/cache/CachedResourceLoader.cpp (right): https://codereview.chromium.org/14054023/diff/20001/Source/core/loader/cache/CachedResourceLoader.cpp#newcode574 Source/core/loader/cache/CachedResourceLoader.cpp:574: if (frame()->ownerElement() && !frame()->ownerElement()->loadedNonEmptyDocument()) { Could we set loadedNonEmptyDocument ...
7 years, 7 months ago (2013-05-07 16:40:55 UTC) #12
Pan
https://codereview.chromium.org/14054023/diff/20001/Source/core/loader/cache/CachedResourceLoader.cpp File Source/core/loader/cache/CachedResourceLoader.cpp (right): https://codereview.chromium.org/14054023/diff/20001/Source/core/loader/cache/CachedResourceLoader.cpp#newcode574 Source/core/loader/cache/CachedResourceLoader.cpp:574: if (frame()->ownerElement() && !frame()->ownerElement()->loadedNonEmptyDocument()) { On 2013/05/07 16:40:55, Nate ...
7 years, 7 months ago (2013-05-07 23:39:27 UTC) #13
Pan
japhet, ready to review, thanks! :) Pan
7 years, 7 months ago (2013-05-07 23:47:14 UTC) #14
Nate Chapin
Almost there :) https://codereview.chromium.org/14054023/diff/26001/Source/core/html/HTMLIFrameElement.h File Source/core/html/HTMLIFrameElement.h (right): https://codereview.chromium.org/14054023/diff/26001/Source/core/html/HTMLIFrameElement.h#newcode53 Source/core/html/HTMLIFrameElement.h:53: virtual void didLoadNonEmptyDocument() OVERRIDE{ m_didLoadNonEmptyDocument = ...
7 years, 7 months ago (2013-05-08 16:06:55 UTC) #15
Pan
> OVERRIDE{ m_didLoadNonEmptyDocument = true; } > Space after OVERRIDE I believe. > right, done. ...
7 years, 7 months ago (2013-05-08 23:19:41 UTC) #16
Nate Chapin
lgtm
7 years, 7 months ago (2013-05-08 23:20:48 UTC) #17
Pan
7 years, 7 months ago (2013-05-15 05:11:24 UTC) #18

Powered by Google App Engine
This is Rietveld 408576698