chrome.windows.create({tabId: }) crashes when passed an incognito tab without incognito: true
Reported by
93m...@gmail.com,
May 6 2016
|
||||
Issue description
UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36
Steps to reproduce the problem:
1. Check "Allow in incognito" for an extension in chrome://extensions.
2. Have an incognito tab open.
3. Use chrome.windows.create({tabId: }) to adopt the tab into a new non-incognito window from the extension.
What is the expected behavior?
The browser doesn't quit, and chrome.windows.create fails, setting runtime.lastError. Alternatively, chrome.windows.create could silently force the new window to be incognito.
What went wrong?
The browser hangs and then quits.
Crashed report ID:
How much crashed? Whole browser
Is it a problem with a plugin? No
Did this work before? No
Chrome version: 49.0.2623.112 Channel: n/a
OS Version:
Flash Version: Shockwave Flash 21.0 r0
The issue can be duplicated by running
chrome.windows.create({incognito: true}, function (win) {
chrome.tabs.query({windowId: win.id}, function (tabs) {
chrome.windows.create({tabId: tabs[0].id});
});
});
https://bugs.chromium.org/p/chromium/issues/detail?id=69285 seems to be related, and the same error message could be used.
,
May 10 2016
#1 I can repro the bug, but *not* if I open an incognito window first. The tab passed to chrome.windows.create needs to be the last remaining incognito tab. Presumably this is because Chrome attempts to GC the incognito session once no more incognito windows remain. Crash ID f37a494a00000000.
,
May 11 2016
Thank you for providing more feedback. Adding requester "ajha@chromium.org" for another review and adding "Needs-Review" label for tracking. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
May 15 2016
Thanks for the report, a fix is underway: https://codereview.chromium.org/1984573002 PS. At the time of the report Chrome 50 has been stable for over 3 weeks. I suggest to keep Chrome up-to-date to have the latest security patches.
,
May 18 2016
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/dbe4c7255f2c8ce9307aa20a73e4d293e9f60a2f commit dbe4c7255f2c8ce9307aa20a73e4d293e9f60a2f Author: rob <rob@robwu.nl> Date: Wed May 18 19:51:54 2016 Prevent chrome.windows.create from moving a tab to another profile BUG= 609942 TEST=browser_tests --gtest_filter=ExtensionApiTest.Incognito Review-Url: https://codereview.chromium.org/1984573002 Cr-Commit-Position: refs/heads/master@{#394513} [modify] https://crrev.com/dbe4c7255f2c8ce9307aa20a73e4d293e9f60a2f/chrome/browser/extensions/api/tabs/tabs_api.cc [modify] https://crrev.com/dbe4c7255f2c8ce9307aa20a73e4d293e9f60a2f/chrome/test/data/extensions/api_test/incognito/apis/background.js
,
May 18 2016
|
||||
►
Sign in to add a comment |
||||
Comment 1 by ajha@chromium.org
, May 10 2016Components: Platform>Extensions
Labels: Needs-Feedback
4.3 MB
4.3 MB Download