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

Issue 2439903003: PlzNavigate: Allow frames to fallback to alternative content. (Closed)

Created:
4 years, 2 months ago by arthursonzogni
Modified:
4 years, 1 month ago
Reviewers:
clamy, Nate Chapin, nasko
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, nasko+codewatch_chromium.org, jam, dglazkov+blink, darin-cc_chromium.org, blink-reviews, kinuko+watch, blink-reviews-api_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PlzNavigate: Allow frames to fallback to alternative content. This CL gives frames the opportunity to show alternative content when <object data="..."> navigation fails instead of displaying an error page. It fixes a collection of tests(see bug description) that fail with the --enable-browser-side-navigation flag. BUG=657834 Committed: https://crrev.com/bb2aaf9abe13bdd12fbba17fba9901d430057ca0 Cr-Commit-Position: refs/heads/master@{#430266}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Add canRenderFallbackContent. #

Patch Set 3 : Rebase #

Patch Set 4 : Addressed comments (@japhet) #

Patch Set 5 : Two more test are fixed by this CL. #

Total comments: 1

Patch Set 6 : Using frameloader::loadFail. #

Total comments: 2

Patch Set 7 : Nit. #

Total comments: 4

Patch Set 8 : Nit (+rebase) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -14 lines) Patch
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/FlagExpectations/enable-browser-side-navigation View 1 2 3 4 5 6 7 1 chunk +1 line, -14 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameOwner.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLFrameOwnerElement.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLObjectElement.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/RemoteFrameOwner.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 7 1 chunk +12 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebLocalFrame.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download

Messages

Total messages: 61 (39 generated)
arthursonzogni
Hi Camille and Nate, Please, could you take a look at this CL? @clamy: content/renderer/render_frame_impl.cc ...
4 years, 2 months ago (2016-10-21 15:59:31 UTC) #6
clamy
+nasko: Could you take a look at this? I have questions about history & url ...
4 years, 2 months ago (2016-10-21 16:09:42 UTC) #9
nasko
https://codereview.chromium.org/2439903003/diff/1/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2439903003/diff/1/content/renderer/render_frame_impl.cc#newcode5076 content/renderer/render_frame_impl.cc:5076: frame_->didFailNavigation(); Should we be loading an error page (last ...
4 years, 2 months ago (2016-10-21 17:00:04 UTC) #10
Nate Chapin
https://codereview.chromium.org/2439903003/diff/1/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2439903003/diff/1/content/renderer/render_frame_impl.cc#newcode5076 content/renderer/render_frame_impl.cc:5076: frame_->didFailNavigation(); On 2016/10/21 17:00:04, nasko (slow) wrote: > Should ...
4 years, 2 months ago (2016-10-21 18:54:00 UTC) #11
arthursonzogni
Hi there, Thank for your reviews. I made some test (with PlzNavigate disabled). It turns ...
4 years, 1 month ago (2016-10-26 11:27:41 UTC) #25
Nate Chapin
On 2016/10/26 11:27:41, arthursonzogni wrote: > Hi there, > > Thank for your reviews. > ...
4 years, 1 month ago (2016-10-26 21:33:53 UTC) #26
arthursonzogni
On 2016/10/26 21:33:53, Nate Chapin wrote: > Instead of exposing renderFallbackContent() on the public/ API, ...
4 years, 1 month ago (2016-10-27 15:15:07 UTC) #37
Nate Chapin
https://codereview.chromium.org/2439903003/diff/180001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp File third_party/WebKit/Source/web/WebLocalFrameImpl.cpp (right): https://codereview.chromium.org/2439903003/diff/180001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp#newcode2070 third_party/WebKit/Source/web/WebLocalFrameImpl.cpp:2070: frame()->owner()->renderFallbackContent(); Sorry, I was suggesting, instead of calling renderFallbackContent() ...
4 years, 1 month ago (2016-10-27 16:44:02 UTC) #38
arthursonzogni
On 2016/10/27 16:44:02, Nate Chapin wrote: > https://codereview.chromium.org/2439903003/diff/180001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp > File third_party/WebKit/Source/web/WebLocalFrameImpl.cpp (right): > > https://codereview.chromium.org/2439903003/diff/180001/third_party/WebKit/Source/web/WebLocalFrameImpl.cpp#newcode2070 ...
4 years, 1 month ago (2016-10-28 15:55:04 UTC) #39
Nate Chapin
On 2016/10/28 15:55:04, arthursonzogni wrote: > On 2016/10/27 16:44:02, Nate Chapin wrote: > > > ...
4 years, 1 month ago (2016-10-28 16:49:18 UTC) #40
Nate Chapin
On 2016/10/28 15:55:04, arthursonzogni wrote: > On 2016/10/27 16:44:02, Nate Chapin wrote: > > > ...
4 years, 1 month ago (2016-10-28 16:49:18 UTC) #41
Nate Chapin
On 2016/10/28 16:49:18, Nate Chapin wrote: > On 2016/10/28 15:55:04, arthursonzogni wrote: > > On ...
4 years, 1 month ago (2016-10-28 16:55:34 UTC) #42
arthursonzogni
I added the patch that use FrameLoader::loadFail. On 2016/10/28 16:55:34, Nate Chapin wrote: > I ...
4 years, 1 month ago (2016-11-02 12:49:03 UTC) #43
Nate Chapin
Almost there, one more nitpick... https://codereview.chromium.org/2439903003/diff/200001/third_party/WebKit/public/web/WebLocalFrame.h File third_party/WebKit/public/web/WebLocalFrame.h (right): https://codereview.chromium.org/2439903003/diff/200001/third_party/WebKit/public/web/WebLocalFrame.h#newcode128 third_party/WebKit/public/web/WebLocalFrame.h:128: virtual bool canRenderFallbackContent() const ...
4 years, 1 month ago (2016-11-02 17:18:10 UTC) #44
arthursonzogni
Thanks Nate, I did your suggestion of merging the two functions. https://codereview.chromium.org/2439903003/diff/200001/third_party/WebKit/public/web/WebLocalFrame.h File third_party/WebKit/public/web/WebLocalFrame.h (right): ...
4 years, 1 month ago (2016-11-03 15:10:42 UTC) #49
Nate Chapin
LGTM, thanks
4 years, 1 month ago (2016-11-03 16:39:29 UTC) #50
clamy
Thanks! A few comments below. https://codereview.chromium.org/2439903003/diff/220001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2439903003/diff/220001/content/renderer/render_frame_impl.cc#newcode5075 content/renderer/render_frame_impl.cc:5075: // If it is ...
4 years, 1 month ago (2016-11-04 14:47:12 UTC) #51
arthursonzogni
Thanks! https://codereview.chromium.org/2439903003/diff/220001/content/renderer/render_frame_impl.cc File content/renderer/render_frame_impl.cc (right): https://codereview.chromium.org/2439903003/diff/220001/content/renderer/render_frame_impl.cc#newcode5075 content/renderer/render_frame_impl.cc:5075: // If it is possible, there is no ...
4 years, 1 month ago (2016-11-07 09:59:07 UTC) #53
clamy
Thanks! Lgtm.
4 years, 1 month ago (2016-11-07 12:31:22 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2439903003/260001
4 years, 1 month ago (2016-11-07 12:44:19 UTC) #57
commit-bot: I haz the power
Committed patchset #8 (id:260001)
4 years, 1 month ago (2016-11-07 14:13:35 UTC) #59
commit-bot: I haz the power
4 years, 1 month ago (2016-11-07 14:16:49 UTC) #61
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/bb2aaf9abe13bdd12fbba17fba9901d430057ca0
Cr-Commit-Position: refs/heads/master@{#430266}

Powered by Google App Engine
This is Rietveld 408576698