New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 818351 link

Starred by 3 users

Issue metadata

Status: Fixed
Owner:
Closed: Mar 2018
Cc:
Components:
EstimatedDays: ----
NextAction: 2018-03-05
OS: Linux , Windows
Pri: 2
Type: Bug



Sign in to add a comment

chrome.runtime.reload() [or waking up from sleep?] opens extra, bogus windows in Hangouts Chrome Extension

Project Member Reported by lukasza@chromium.org, Mar 3 2018

Issue description

Chrome Version: 65.0.3325.106
OS: Linux / Rodete


REPRO STEPS:

1. Install Hangouts Chrome *extension* - nckgahadagoaajjgafhacjanaoiihapd
1.1. Observe the version of the installed extension reported on chrome://extensions: 2018.123.418.2

2. Sign-in (I used a non-corp, private test account - lukasza.test@gmail.com)

3. Simulate conditions similar to coming out of sleep - see b/73498083
3.1. go to chrome://extensions, inspect the background page of the Hangouts extension and in the JavaScript console execute: chrome.runtime.reload()
3.2. Alternatively (although it didn't always/reliably work for me):
3.2.1. Focus the main extension window and type the followind keyboard chord: Ctrl + Shift + (Up, Up, Down, Down, Lelf, Right, Lelf, Right, D, D)
3.2.2. Click “Restart” in the newly opened small window

4. Observe how Hangouts restarts:
4.1. Observe that (as expected) the Hangouts window will refresh and load fine
4.2. Observe that (unexpectedly) a new window, sized similarily to the Hangouts window opens up with what looks like NTP


EXPECTED BEHAVIOR: No new Hangouts-related windows are opened when Chrome comes out of sleep or when Hangouts calls chrome.runtime.reload()


ACTUAL BEHAVIOR: A new window is opened with similar size and position to the old Hangouts window.  The new window seems to contain NTP.
 
Owner: catmulli...@chromium.org
Status: Assigned (was: Untriaged)
catmullings@ - could you PTAL?  My first bisecting attempt pointed at your r530015 as the culprit.  I'll try running the bisect again to double check in a few minutes.
Cc: abdulsyed@chromium.org
+abdulsyed@ in case this turns out to be a M65 blocker - please triage.

Comment 3 by creis@chromium.org, Mar 3 2018

Cc: gov...@chromium.org
Labels: M-65
+govind for M65.
Cc: pbomm...@chromium.org
We're planning to cut M65 Stable RC on Monday morning. Is this M65 stable blocker? 
I run another bisect (with slightly different starting range) and it also came back pointing at  https://chromium.googlesource.com/chromium/src/+log/1a7bde518aeb8c80190401a79b11020a38c087e8..4d546d6ecc0e621a0d08f804a9e25c4427055740.  This increases my confidence that this has regressed after r530015
RE: #c4

I don't the exact criteria for considering something a stable blocker, but let me try to evaluate what I think we know:

- Users of the stable version of Hangouts Chrome Extension (but not Hangouts Chrome App) will see an extra window (with NTP) opened after their machine comes out of sleep (sometimes? always? - not sure...).

- This bug is not limited to Site Isolation:
    ToT with isolate-origins: repro
    ToT with no site isolation: repro
    65.0.3325.106 with isolate-origins: repro
    65.0.3325.106 with no site isolation: repro
    64.0.3282.186 with isolate-origins: no repro
Cc: catmulli...@chromium.org
Owner: rdevlin....@chromium.org
rdevlin.cronin@ - could you PTAL from extensions side (I hear that catmullings@ might no longer work on Chrome).
Thanks for the investigation, lukasza@!

catmullings@ is no longer on the team, so I'll take this one over.

r530015 was fixing a relatively low-priority bug (794472), so if this is a big concern, I'd prefer to revert r530015 on 65 and 66 and reland it with the fix, rather than try to merge a fix back.

Re severity, the hangouts extension is reasonably popular, so if we can avoid regressing on stable, it'd probably be worthwhile.  I don't think this would warrant a respin of stable, though.

If the revert patches cleanly, should we go through with it?  Or deem it too late in the release process to merge?
Labels: M-66 ReleaseBlock-Stable
If  r530015 is safe revert to merge to M65/M66, pls try to land the revert in trunk. If revert looks good in canary, then pls request a merge to M65 and M66 on Monday morning. Thank you.

Tagging as "RBS" for tracking purpose.
On it!
Thank you!
Project Member

Comment 12 by bugdroid1@chromium.org, Mar 3 2018

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f16ef54406c24f856c79546dcef4937ce580b696

commit f16ef54406c24f856c79546dcef4937ce580b696
Author: Devlin Cronin <rdevlin.cronin@chromium.org>
Date: Sat Mar 03 02:15:37 2018

Revert "Extensions: Navigate to default chrome page on extension unload"

This reverts commit 4d546d6ecc0e621a0d08f804a9e25c4427055740.

Reason for revert: this patch caused a bug where we leave extraneous
windows around when coming out of sleep.

TBR=sky@chromium.org (c/b/ui/browser - clean revert)

Bug:  818351 
Change-Id: I3cf6d60a4588b36619dc4e461c3b8cf29722d6cd
Reviewed-on: https://chromium-review.googlesource.com/947473
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org>
Cr-Commit-Position: refs/heads/master@{#540720}
[delete] https://crrev.com/6c632568255e604b8f76d1e1df59b81868d3e580/chrome/browser/extensions/extension_web_ui_browsertest.cc
[modify] https://crrev.com/f16ef54406c24f856c79546dcef4937ce580b696/chrome/browser/ui/browser.cc
[modify] https://crrev.com/f16ef54406c24f856c79546dcef4937ce580b696/chrome/browser/ui/browser_browsertest.cc
[modify] https://crrev.com/f16ef54406c24f856c79546dcef4937ce580b696/chrome/test/BUILD.gn

NextAction: 2018-03-05
Pls use 67.0.3360.0 or higher to verify this bug. Thank you.
The NextAction date has arrived: 2018-03-05
Cc: jmukthavaram@chromium.org
Labels: Needs-Feedback
Tested this issue on Debian Rodate using chrome-67.0.3362.0 as per below steps:
Steps:
-----
1.Installed Hangouts Chrome *extension*  with this id:
 nckgahadagoaajjgafhacjanaoiihapd
2.Navigated to Chrome://extensions & search for hangouts & click on details option
Observe the version of the installed extension reported on chrome://extensions: 2018.123.418.2
3.Sign-in with test account
4.Navigated to chrome://extensions,
5.Inspect element & type below in consol
chrome.runtime.reload()
6.Focus the main extension window and typed the following keyboard inputs: Ctrl + Shift + (Up, Up, Down, Down, Lelf, Right, Lelf, Right,)
no output observed & not observed any other windows to proceed

Please clarify the remaining steps to proceed further.

Thanks in advance..!


Labels: Merge-Request-66 Merge-Request-65
I haven't earlier tried reproing the problem on Windows, so first of all, I confirmed that I am able to repro the problem on Windows, in Chrome Beta - 65.0.3325.106.  I reproed the problem by executing |chrome.runtime.reload()| in the extensions background page (option 3.1 from the original repro steps).  I have not tried the keyboard chord (i.e. option 3.2).

Commit f16ef544... initially landed in 67.0.3360.0.  Therefore, it is expected that (as pointed out in #c16) the problem doesn't repro in 67.0.3362.0.  I can confirm that I get no repro in 67.0.3362.0 Canary on Windows.  Based on this I think we can mark the bug as fixed and request a merge to M65 and M66.


RE: #c16: Please clarify the remaining steps to proceed further.

I am not sure how I can help / what needs clarification.  I can consistently repro in 65.0.3325.106 using the original repro steps (using the 3.1 option;  I have not tried the 3.2 option) - please let me know if the repro steps don't work and don't expose the bug *before* 67.0.3360.0.  FWIW, I think the results in #c16 confirm that the fix from #c12 worked fine and got rid of the bug.
Project Member

Comment 18 by sheriffbot@chromium.org, Mar 5 2018

Labels: -Merge-Request-66 Merge-Review-66 Hotlist-Merge-Review
This bug requires manual review: Reverts referenced in bugdroid comments after merge request.
Please contact the milestone owner if you have questions.
Owners: cmasso@(Android), cmasso@(iOS), josafat@(ChromeOS), abdulsyed@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 19 by sheriffbot@chromium.org, Mar 5 2018

Labels: -Merge-Request-65 Merge-Review-65
This bug requires manual review: We are only 0 days from stable.
Please contact the milestone owner if you have questions.
Owners: cmasso@(Android), cmasso@(iOS), bhthompson@(ChromeOS), govind@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: OS-Windows
Labels: -Needs-Feedback
Labels: Merge-Request-66 Merge-Request-65
Status: Fixed (was: Assigned)
Verified that this is fixed on the latest canary.  Requesting merge to 66, 65.
Project Member

Comment 23 by sheriffbot@chromium.org, Mar 5 2018

Labels: -Merge-Request-66
This bug requires manual review: Reverts referenced in bugdroid comments after merge request.
Please contact the milestone owner if you have questions.
Owners: cmasso@(Android), cmasso@(iOS), josafat@(ChromeOS), abdulsyed@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Project Member

Comment 24 by sheriffbot@chromium.org, Mar 5 2018

Labels: -Merge-Request-65
This bug requires manual review: We are only 0 days from stable.
Please contact the milestone owner if you have questions.
Owners: cmasso@(Android), cmasso@(iOS), bhthompson@(ChromeOS), govind@(Desktop)

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Merge-Review-65 -Merge-Review-66 Merge-Approved-66 Merge-Approved-65
Thank you Devlin and  lukasza@.
Approving merge to M65 branch 3325 and  M66 branch 3359 based on comments #17 and #22. 
Project Member

Comment 26 by bugdroid1@chromium.org, Mar 5 2018

Labels: -merge-approved-65 merge-merged-3325
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/68d200043754cf9e431b0c5e34d8760cae5ab640

commit 68d200043754cf9e431b0c5e34d8760cae5ab640
Author: Devlin Cronin <rdevlin.cronin@chromium.org>
Date: Mon Mar 05 17:47:16 2018

Revert "Extensions: Navigate to default chrome page on extension unload"

This reverts commit 4d546d6ecc0e621a0d08f804a9e25c4427055740.

Reason for revert: this patch caused a bug where we leave extraneous
windows around when coming out of sleep.

TBR=rdevlin.cronin@chromium.org, sky@chromium.org (c/b/ui/browser - clean revert)

(cherry picked from commit f16ef54406c24f856c79546dcef4937ce580b696)

Bug:  818351 
Change-Id: I3cf6d60a4588b36619dc4e461c3b8cf29722d6cd
Reviewed-on: https://chromium-review.googlesource.com/947473
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#540720}
Reviewed-on: https://chromium-review.googlesource.com/949306
Reviewed-by: Devlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/branch-heads/3325@{#658}
Cr-Branched-From: bc084a8b5afa3744a74927344e304c02ae54189f-refs/heads/master@{#530369}
[delete] https://crrev.com/017a8bd1bab7b24d44113b7a6c65ca4adbfa3172/chrome/browser/extensions/extension_web_ui_browsertest.cc
[modify] https://crrev.com/68d200043754cf9e431b0c5e34d8760cae5ab640/chrome/browser/ui/browser.cc
[modify] https://crrev.com/68d200043754cf9e431b0c5e34d8760cae5ab640/chrome/browser/ui/browser_browsertest.cc
[modify] https://crrev.com/68d200043754cf9e431b0c5e34d8760cae5ab640/chrome/test/BUILD.gn

Project Member

Comment 27 by bugdroid1@chromium.org, Mar 5 2018

Labels: -merge-approved-66 merge-merged-3359
The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/af8fa3a0071bf435021c6acbbb081f11f6b96691

commit af8fa3a0071bf435021c6acbbb081f11f6b96691
Author: Devlin Cronin <rdevlin.cronin@chromium.org>
Date: Mon Mar 05 17:51:22 2018

Revert "Extensions: Navigate to default chrome page on extension unload"

This reverts commit 4d546d6ecc0e621a0d08f804a9e25c4427055740.

Reason for revert: this patch caused a bug where we leave extraneous
windows around when coming out of sleep.

TBR=rdevlin.cronin@chromium.org, sky@chromium.org (c/b/ui/browser - clean revert)

(cherry picked from commit f16ef54406c24f856c79546dcef4937ce580b696)

Bug:  818351 
Change-Id: I3cf6d60a4588b36619dc4e461c3b8cf29722d6cd
Reviewed-on: https://chromium-review.googlesource.com/947473
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Reviewed-by: Łukasz Anforowicz <lukasza@chromium.org>
Cr-Original-Commit-Position: refs/heads/master@{#540720}
Reviewed-on: https://chromium-review.googlesource.com/949307
Reviewed-by: Devlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/branch-heads/3359@{#13}
Cr-Branched-From: 66afc5e5d10127546cc4b98b9117aff588b5e66b-refs/heads/master@{#540276}
[delete] https://crrev.com/ac163c647d2e3771e215e8a03f14d8e04ece02d6/chrome/browser/extensions/extension_web_ui_browsertest.cc
[modify] https://crrev.com/af8fa3a0071bf435021c6acbbb081f11f6b96691/chrome/browser/ui/browser.cc
[modify] https://crrev.com/af8fa3a0071bf435021c6acbbb081f11f6b96691/chrome/browser/ui/browser_browsertest.cc
[modify] https://crrev.com/af8fa3a0071bf435021c6acbbb081f11f6b96691/chrome/test/BUILD.gn

Sign in to add a comment