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

Issue 2604133002: Fix TabCaptureApiTest.FullscreenEvents flakiness (Closed)

Created:
3 years, 11 months ago by miu
Modified:
3 years, 11 months ago
Reviewers:
xjz
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, xjz+watch_chromium.org, extensions-reviews_chromium.org, miu+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix TabCaptureApiTest.FullscreenEvents flakiness Fixes flakiness caused by a subtle distinction in document fullscreen state change: The tabCapture.onStatusChanged API can sometimes report a fullscreen state change before the document itself is aware the change occurred. This is because the tabCapture API's listener reports on the browser's fullscreen state, whereas the document is only aware of its own internal fullscreen state (which is updated only after the browser notifies it of a change). The flakiness was due to the C++ side of the test being notified that the page had entered fullscreen before the page itself was aware of it. This caused the simulated mouse click (to toggle fullscreen mode) to be made early, and then both the C++ and JS sides of the test became out-of-sync and froze, each waiting on the other to do something. This change fixes the issue by always using the document's fullscreen change listeners, to ensure the out-of-sync condition cannot occur. This change also "freshens up" the JavaScript code in this test, using newer ES6 syntax. BUG=675851 Committed: https://crrev.com/c52ce18fd8f6db97c62737f0924bd61a2727c5d3 Cr-Commit-Position: refs/heads/master@{#441252}

Patch Set 1 #

Total comments: 4

Patch Set 2 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -33 lines) Patch
M chrome/browser/extensions/api/tab_capture/tab_capture_apitest.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/test/data/extensions/api_test/tab_capture/fullscreen_test.js View 1 1 chunk +59 lines, -31 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
miu
xjz: PTAL.
3 years, 11 months ago (2016-12-29 04:39:43 UTC) #5
xjz
lgtm https://codereview.chromium.org/2604133002/diff/1/chrome/test/data/extensions/api_test/tab_capture/fullscreen_test.js File chrome/test/data/extensions/api_test/tab_capture/fullscreen_test.js (right): https://codereview.chromium.org/2604133002/diff/1/chrome/test/data/extensions/api_test/tab_capture/fullscreen_test.js#newcode16 chrome/test/data/extensions/api_test/tab_capture/fullscreen_test.js:16: if (!!document.fullscreenElement) ooc: Is this explicit conversion required? ...
3 years, 11 months ago (2017-01-03 18:14:06 UTC) #8
miu
https://codereview.chromium.org/2604133002/diff/1/chrome/test/data/extensions/api_test/tab_capture/fullscreen_test.js File chrome/test/data/extensions/api_test/tab_capture/fullscreen_test.js (right): https://codereview.chromium.org/2604133002/diff/1/chrome/test/data/extensions/api_test/tab_capture/fullscreen_test.js#newcode16 chrome/test/data/extensions/api_test/tab_capture/fullscreen_test.js:16: if (!!document.fullscreenElement) On 2017/01/03 18:14:06, xjz wrote: > ooc: ...
3 years, 11 months ago (2017-01-03 20:53:35 UTC) #9
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/2604133002/20001
3 years, 11 months ago (2017-01-03 20:53:54 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
3 years, 11 months ago (2017-01-03 23:30:54 UTC) #15
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/c52ce18fd8f6db97c62737f0924bd61a2727c5d3 Cr-Commit-Position: refs/heads/master@{#441252}
3 years, 11 months ago (2017-01-03 23:34:23 UTC) #17
samuong
3 years, 11 months ago (2017-01-04 03:18:30 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2611593005/ by samuong@chromium.org.

The reason for reverting is: TabCaptureApiTest.FullscreenEvents is now timing
out consistently on the Win7 Tests (dbg)(1) bot (build #56178 and later) so I
don't think we're ready to re-enable it yet:
https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20%28dbg%29%2....

Powered by Google App Engine
This is Rietveld 408576698