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

Issue 227043004: Restored tabs should set their initial visibility (Closed)

Created:
6 years, 8 months ago by Noel Gordon
Modified:
6 years, 8 months ago
Reviewers:
sky
CC:
chromium-reviews, jamesr
Visibility:
Public.

Description

Restored tabs should set their initial visibility Follow on for https://src.chromium.org/viewvc/chrome?revision=218548 which fixed various background tab issues related to visibility (see for example bugs 118269, 142061, 155365 and 272962) by introducing a WebContents initially_hidden creation-time flag. Restored tabs don't currently set that flag, and that causes various visibility issues (see bug). Fix that by ensuring that restored tabs set their initially_hidden creation-time flag. Note the delegated interface to tab restore service caused the error so add tests for that: a direct test of the delegate, and a test for a delegate user (recent tabs menu). TEST=browser_tests --gtest_filter="*TabDisposition" BUG=358517 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266466

Patch Set 1 #

Patch Set 2 : Add tests. #

Total comments: 2

Patch Set 3 : Move to browser_tests. #

Patch Set 4 : s/visible/visibile/g #

Total comments: 1

Patch Set 5 : Push test READY state to the browser. #

Patch Set 6 : DOMMessageQueue simplifications. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+187 lines, -3 lines) Patch
M chrome/browser/ui/browser_tabrestore.cc View 1 2 4 chunks +7 lines, -3 lines 0 comments Download
A chrome/browser/ui/browser_tabrestore_browsertest.cc View 1 2 3 4 5 1 chunk +140 lines, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/toolbar/recent_tabs_sub_menu_model.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/tab-restore-visibilty.html View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
Noel Gordon
6 years, 8 months ago (2014-04-06 05:34:10 UTC) #1
sky
How about some test coverage?
6 years, 8 months ago (2014-04-07 13:13:28 UTC) #2
Noel Gordon
I did try to write a test. I was unable to reproduce the bug in ...
6 years, 8 months ago (2014-04-07 14:12:29 UTC) #3
sky
This code is run when restoring a closed tab. That is, don't exit the browser ...
6 years, 8 months ago (2014-04-07 14:41:09 UTC) #4
Noel Gordon
Thanks, looked over keyboard-based tests and an in crbug. Mac won't synthesize cmd-shift-t in test, ...
6 years, 8 months ago (2014-04-10 02:34:44 UTC) #5
Noel Gordon
Anything more I need do here?
6 years, 8 months ago (2014-04-16 03:08:20 UTC) #6
sky
Why is this test in interactive_ui_tests? The file name should end in interactive_uitest or browsertest. ...
6 years, 8 months ago (2014-04-16 16:42:05 UTC) #7
Noel Gordon
On 2014/04/16 16:42:05, sky wrote: > Why is this test in interactive_ui_tests? The file name ...
6 years, 8 months ago (2014-04-19 03:20:00 UTC) #8
sky
https://codereview.chromium.org/227043004/diff/60001/chrome/browser/ui/browser_tabrestore_browsertest.cc File chrome/browser/ui/browser_tabrestore_browsertest.cc (right): https://codereview.chromium.org/227043004/diff/60001/chrome/browser/ui/browser_tabrestore_browsertest.cc#newcode30 chrome/browser/ui/browser_tabrestore_browsertest.cc:30: const char kGetReadyJS[] = "window.domAutomationController.send(" Isn't there a better ...
6 years, 8 months ago (2014-04-21 15:41:13 UTC) #9
Noel Gordon
How about sending the ready state from the test page script and detecting that using ...
6 years, 8 months ago (2014-04-22 14:24:35 UTC) #10
sky
Are you sure there isn't a notification for this already on WebContentsObserver? On Tue, Apr ...
6 years, 8 months ago (2014-04-22 16:04:16 UTC) #11
Noel Gordon
On 2014/04/22 16:04:16, sky wrote: > Are you sure there isn't a notification for this ...
6 years, 8 months ago (2014-04-24 11:09:47 UTC) #12
Noel Gordon
content::DOMMessageQueue also simplifies the code; new patch uploaded.
6 years, 8 months ago (2014-04-24 14:12:14 UTC) #13
sky
LGTM
6 years, 8 months ago (2014-04-24 16:24:19 UTC) #14
Noel Gordon
The CQ bit was checked by noel@chromium.org
6 years, 8 months ago (2014-04-26 08:29:19 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noel@chromium.org/227043004/140001
6 years, 8 months ago (2014-04-26 08:29:43 UTC) #16
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-26 13:53:59 UTC) #17
commit-bot: I haz the power
The commit queue went berserk retrying too often for a seemingly flaky test on builder ...
6 years, 8 months ago (2014-04-26 13:54:00 UTC) #18
Noel Gordon
The CQ bit was checked by noel@chromium.org
6 years, 8 months ago (2014-04-26 15:19:54 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/noel@chromium.org/227043004/140001
6 years, 8 months ago (2014-04-26 15:20:25 UTC) #20
commit-bot: I haz the power
6 years, 8 months ago (2014-04-28 07:17:50 UTC) #21
Message was sent while issue was closed.
Change committed as 266466

Powered by Google App Engine
This is Rietveld 408576698