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

Issue 1309883003: Add hooks for capturing meaningful text info, gently. (Closed)

Created:
5 years, 4 months ago by dglazkov
Modified:
5 years, 4 months ago
CC:
blink-reviews, blink-reviews-dom_chromium.org, dglazkov+blink, eae+blinkwatch, gavinp+loader_chromium.org, Nate Chapin, kinuko+watch, rwlbuis, sof, tyoshino+watch_chromium.org
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

Add hooks for capturing meaningful text info, gently. The two hooks are: * WebLocalFrame::isNavigationPending * WebViewClient::didFirstLayoutAfterFinishedParsing The WebLocalFrame::isNavigationPending provides a simple check whether the content of the document intends to change the location (via Refresh or window.location change). The WebViewClient::didFirstLayoutAfterFinishedParsing is called when we finish the first layout after the document had finished parsing. Another way to explain it is "first layout after DOMContentLoaded". BUG=521149 R=esprehn Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=201042

Patch Set 1 #

Total comments: 6

Patch Set 2 : Feedback addressed. #

Patch Set 3 : Oopsie fixed. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -1 line) Patch
M Source/core/dom/Document.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/loader/NavigationScheduler.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/loader/NavigationScheduler.cpp View 1 2 2 chunks +6 lines, -0 lines 0 comments Download
M Source/web/WebLocalFrameImpl.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebLocalFrameImpl.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download
M Source/web/WebViewImpl.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/web/WebViewImpl.cpp View 3 chunks +11 lines, -1 line 0 comments Download
M public/web/WebLocalFrame.h View 1 1 chunk +11 lines, -0 lines 1 comment Download
M public/web/WebViewClient.h View 1 chunk +4 lines, -0 lines 1 comment Download

Messages

Total messages: 30 (10 generated)
dglazkov
5 years, 4 months ago (2015-08-21 22:22:12 UTC) #1
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1309883003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1309883003/1
5 years, 4 months ago (2015-08-21 22:27:59 UTC) #3
Nate Chapin
https://codereview.chromium.org/1309883003/diff/1/Source/web/WebLocalFrameImpl.cpp File Source/web/WebLocalFrameImpl.cpp (right): https://codereview.chromium.org/1309883003/diff/1/Source/web/WebLocalFrameImpl.cpp#newcode2121 Source/web/WebLocalFrameImpl.cpp:2121: return frame() && (frame()->navigationScheduler().isRedirect() || frame()->navigationScheduler().locationChangePending()); Is there a ...
5 years, 4 months ago (2015-08-21 22:38:31 UTC) #5
dglazkov
https://codereview.chromium.org/1309883003/diff/1/Source/web/WebLocalFrameImpl.cpp File Source/web/WebLocalFrameImpl.cpp (right): https://codereview.chromium.org/1309883003/diff/1/Source/web/WebLocalFrameImpl.cpp#newcode2121 Source/web/WebLocalFrameImpl.cpp:2121: return frame() && (frame()->navigationScheduler().isRedirect() || frame()->navigationScheduler().locationChangePending()); Good question. For ...
5 years, 4 months ago (2015-08-21 22:54:53 UTC) #6
Nate Chapin
https://codereview.chromium.org/1309883003/diff/1/Source/web/WebLocalFrameImpl.cpp File Source/web/WebLocalFrameImpl.cpp (right): https://codereview.chromium.org/1309883003/diff/1/Source/web/WebLocalFrameImpl.cpp#newcode2121 Source/web/WebLocalFrameImpl.cpp:2121: return frame() && (frame()->navigationScheduler().isRedirect() || frame()->navigationScheduler().locationChangePending()); On 2015/08/21 22:54:53, ...
5 years, 4 months ago (2015-08-21 23:00:29 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1309883003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1309883003/20001
5 years, 4 months ago (2015-08-21 23:15:20 UTC) #9
dglazkov
PTAL.
5 years, 4 months ago (2015-08-21 23:16:05 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/124831) mac_chromium_compile_dbg_ng on ...
5 years, 4 months ago (2015-08-21 23:30:05 UTC) #12
esprehn
On 2015/08/21 at 23:16:05, dglazkov wrote: > PTAL. Do the users of this API actually ...
5 years, 4 months ago (2015-08-21 23:32:27 UTC) #13
dglazkov
On 2015/08/21 at 23:32:27, esprehn wrote: > On 2015/08/21 at 23:16:05, dglazkov wrote: > > ...
5 years, 4 months ago (2015-08-22 00:07:39 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1309883003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1309883003/40001
5 years, 4 months ago (2015-08-22 00:08:11 UTC) #16
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/102734)
5 years, 4 months ago (2015-08-22 01:55:05 UTC) #18
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1309883003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1309883003/40001
5 years, 4 months ago (2015-08-22 03:21:30 UTC) #20
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 4 months ago (2015-08-22 04:08:10 UTC) #22
esprehn
lgtm but your description needs updating. https://codereview.chromium.org/1309883003/diff/40001/public/web/WebLocalFrame.h File public/web/WebLocalFrame.h (right): https://codereview.chromium.org/1309883003/diff/40001/public/web/WebLocalFrame.h#newcode103 public/web/WebLocalFrame.h:103: virtual bool isNavigationScheduled() ...
5 years, 4 months ago (2015-08-22 15:14:54 UTC) #23
dglazkov
On 2015/08/22 at 15:14:54, esprehn wrote: > lgtm but your description needs updating. > > ...
5 years, 4 months ago (2015-08-22 15:29:29 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1309883003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1309883003/40001
5 years, 4 months ago (2015-08-22 15:29:49 UTC) #26
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://src.chromium.org/viewvc/blink?view=rev&revision=201042
5 years, 4 months ago (2015-08-22 15:33:29 UTC) #27
nasko
One comment from me, but adding dcheng@, who is the OOPIF master of Blink. https://codereview.chromium.org/1309883003/diff/40001/public/web/WebViewClient.h ...
5 years, 4 months ago (2015-08-24 22:57:50 UTC) #29
dglazkov
5 years, 4 months ago (2015-08-25 02:58:14 UTC) #30
Message was sent while issue was closed.
On 2015/08/24 at 22:57:50, nasko wrote:
> One comment from me, but adding dcheng@, who is the OOPIF master of Blink.
> 
>
https://codereview.chromium.org/1309883003/diff/40001/public/web/WebViewClient.h
> File public/web/WebViewClient.h (right):
> 
>
https://codereview.chromium.org/1309883003/diff/40001/public/web/WebViewClien...
> public/web/WebViewClient.h:201: virtual void
didFirstLayoutAfterFinishedParsing() { }
> Is there a reason this method isn't on WebFrameClient? Even the comment on it
talks about the "frame's document".

See earlier discussion on comment 6:
https://codereview.chromium.org/1309883003/#msg6

Powered by Google App Engine
This is Rietveld 408576698