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

Issue 2353603002: Fix DomDistillerViewerSource to work with PlzNavigate. (Closed)

Created:
4 years, 3 months ago by jam
Modified:
4 years, 3 months ago
Reviewers:
mdjones, nyquist
CC:
chromium-reviews, jam, darin-cc_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix DomDistillerViewerSource to work with PlzNavigate. In particular, the render frame ID isn't known at navigate time. I'll change content::URLDataSource::StartDataRequest to take a WebContentsGetter in a followup which will complete this fix, but I wanted to separate that mechanical change to 40+ consumers from this actual fix. The other fix here is to delay the code which makes a Mojo call and sets up an interface factory until the load commits, since that's when the main frame will be committed with PlzNavigate. I've verified that this is still early enough for dom distiller's needs. BUG=576275 Committed: https://crrev.com/8d58263f115b3d9eaa166ee50e9bed051365c791 Cr-Commit-Position: refs/heads/master@{#419635}

Patch Set 1 #

Total comments: 5

Patch Set 2 : review comments #

Total comments: 5

Patch Set 3 : undo bad merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+44 lines, -32 lines) Patch
M components/dom_distiller/content/browser/dom_distiller_viewer_source.cc View 1 2 7 chunks +44 lines, -32 lines 0 comments Download

Messages

Total messages: 25 (15 generated)
jam
4 years, 3 months ago (2016-09-19 17:40:31 UTC) #4
nyquist
https://codereview.chromium.org/2353603002/diff/1/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc File components/dom_distiller/content/browser/dom_distiller_viewer_source.cc (right): https://codereview.chromium.org/2353603002/diff/1/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc#newcode145 components/dom_distiller/content/browser/dom_distiller_viewer_source.cc:145: CHECK_EQ(0, render_view_host->GetEnabledBindings()); This is our security check to ensure ...
4 years, 3 months ago (2016-09-19 21:39:51 UTC) #7
jam
https://codereview.chromium.org/2353603002/diff/1/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc File components/dom_distiller/content/browser/dom_distiller_viewer_source.cc (right): https://codereview.chromium.org/2353603002/diff/1/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc#newcode145 components/dom_distiller/content/browser/dom_distiller_viewer_source.cc:145: CHECK_EQ(0, render_view_host->GetEnabledBindings()); On 2016/09/19 21:39:51, nyquist wrote: > This ...
4 years, 3 months ago (2016-09-19 22:13:05 UTC) #8
nyquist
Could you also update the CL description now that you've in fact started using the ...
4 years, 3 months ago (2016-09-19 22:27:00 UTC) #13
jam
https://codereview.chromium.org/2353603002/diff/20001/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc File components/dom_distiller/content/browser/dom_distiller_viewer_source.cc (right): https://codereview.chromium.org/2353603002/diff/20001/components/dom_distiller/content/browser/dom_distiller_viewer_source.cc#newcode226 components/dom_distiller/content/browser/dom_distiller_viewer_source.cc:226: void DomDistillerViewerSource::StartDataRequest( On 2016/09/19 22:26:59, nyquist wrote: > Since ...
4 years, 3 months ago (2016-09-19 22:43:24 UTC) #14
nyquist
lgtm
4 years, 3 months ago (2016-09-19 22:56:29 UTC) #17
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/2353603002/40001
4 years, 3 months ago (2016-09-19 23:06:52 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-20 01:43:29 UTC) #21
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/8d58263f115b3d9eaa166ee50e9bed051365c791 Cr-Commit-Position: refs/heads/master@{#419635}
4 years, 3 months ago (2016-09-20 01:46:27 UTC) #23
mdjones
4 years, 3 months ago (2016-09-21 20:42:31 UTC) #25
Message was sent while issue was closed.
This appears to have broken navigations from inside distiller (i.e. clicking on
a link). The error I get is:

[FATAL:navigation_handle_impl.cc(204)] Check failed: state_ == DID_COMMIT ||
state_ == DID_COMMIT_ERROR_PAGE. This accessor should not be called before the
navigation has committed.

It looks like it is complaining about "navigation_handle->IsSamePage()". Is this
a quick fix?

Powered by Google App Engine
This is Rietveld 408576698