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

Issue 24286007: Add hasCommittedRealDocument API to WebFrame. (Closed)

Created:
7 years, 3 months ago by nasko
Modified:
7 years, 2 months ago
CC:
blink-reviews, jamesr, dglazkov+blink, abarth-chromium
Visibility:
Public.

Description

Add hasCommittedRealDocument API to WebFrame. Expose through the Web API whether the frame has commited a real document or not. This is used to decide whether a navigation should add a session history entry or not. The Chromium side CL for this bug is https://codereview.chromium.org/15294012/. BUG=178380

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+11 lines, -0 lines) Patch
M Source/web/WebFrameImpl.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebFrameImpl.cpp View 1 chunk +7 lines, -0 lines 0 comments Download
M public/web/WebFrame.h View 1 chunk +3 lines, -0 lines 1 comment Download

Messages

Total messages: 4 (0 generated)
nasko
Hey Darin, Can you review this API addition for me? I need to expose this ...
7 years, 3 months ago (2013-09-20 21:06:45 UTC) #1
darin (slow to review)
Is there a Chromium side to this change that I could also review? -Darin On ...
7 years, 3 months ago (2013-09-20 21:57:13 UTC) #2
nasko
On 2013/09/20 21:57:13, darin wrote: > Is there a Chromium side to this change that ...
7 years, 3 months ago (2013-09-20 21:57:58 UTC) #3
darin (slow to review)
7 years, 3 months ago (2013-09-20 22:03:04 UTC) #4
https://codereview.chromium.org/24286007/diff/1/public/web/WebFrame.h
File public/web/WebFrame.h (right):

https://codereview.chromium.org/24286007/diff/1/public/web/WebFrame.h#newcode353
public/web/WebFrame.h:353: virtual bool hasCommittedRealDocument() const = 0;
Note: On the Chromium side, you could also just keep track of whether or not you
ever received a DidCommitProvisionalLoad for this WebFrame. That is not sent
when we load the initial empty document.

See the implementation of FrameLoader::receivedFirstData().

Powered by Google App Engine
This is Rietveld 408576698