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

Issue 1774663002: Teach CRFO:CapturePageText to recognize page refreshes with long delays. (Closed)

Created:
4 years, 9 months ago by dglazkov
Modified:
4 years, 9 months ago
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Teach CRFO:CapturePageText to recognize page refreshes with long delays. In some cases, news sites put longish delays (over 1s) on their refresh meta tags, in order to update the page periodically. We should recognize this and not bail (as we used to) on page text capture on these types of pages -- so that the translate bubble/bar shows up. BUG=592360 R=esprehn,jochen Committed: https://crrev.com/09edaa833dbbbba00648dadbb559d2b575be67bf Cr-Commit-Position: refs/heads/master@{#379884}

Patch Set 1 #

Patch Set 2 : Added interval. #

Total comments: 2

Patch Set 3 : Addressed nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -12 lines) Patch
M chrome/browser/translate/translate_browsertest.cc View 1 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/renderer/chrome_render_frame_observer.cc View 1 2 2 chunks +5 lines, -1 line 0 comments Download
A + chrome/test/data/translate/refresh_meta_tag_long.html View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/loader/NavigationScheduler.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/loader/NavigationScheduler.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/public/web/WebLocalFrame.h View 1 2 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 23 (11 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1774663002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1774663002/1
4 years, 9 months ago (2016-03-07 22:03:11 UTC) #2
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/191381)
4 years, 9 months ago (2016-03-07 23:56:24 UTC) #4
dglazkov
Added interval.
4 years, 9 months ago (2016-03-08 01:16:16 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1774663002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1774663002/20001
4 years, 9 months ago (2016-03-08 01:16:39 UTC) #7
dglazkov
PTAL.
4 years, 9 months ago (2016-03-08 04:21:44 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-08 04:51:33 UTC) #12
jochen (gone - plz use gerrit)
lgtm with comments https://codereview.chromium.org/1774663002/diff/20001/chrome/renderer/chrome_render_frame_observer.cc File chrome/renderer/chrome_render_frame_observer.cc (right): https://codereview.chromium.org/1774663002/diff/20001/chrome/renderer/chrome_render_frame_observer.cc#newcode69 chrome/renderer/chrome_render_frame_observer.cc:69: static const double kLocationChangeInterval = 10; ...
4 years, 9 months ago (2016-03-08 05:11:01 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1774663002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1774663002/40001
4 years, 9 months ago (2016-03-08 05:48:09 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/154260)
4 years, 9 months ago (2016-03-08 06:04:51 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1774663002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1774663002/40001
4 years, 9 months ago (2016-03-08 19:20:48 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 9 months ago (2016-03-08 19:27:13 UTC) #21
commit-bot: I haz the power
4 years, 9 months ago (2016-03-08 19:30:29 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/09edaa833dbbbba00648dadbb559d2b575be67bf
Cr-Commit-Position: refs/heads/master@{#379884}

Powered by Google App Engine
This is Rietveld 408576698