Issue metadata
Sign in to add a comment
|
Chrome crashes when right-clicking on Incognito titlebar |
||||||||||||||||||||
Issue descriptionChrome Version: 58.0.3011.0 OS: Windows 10 What steps will reproduce the problem? (1) Start an Incognito instance (2) Right-click the title bar Crashes. Example server ID: cb63bc3580000000
,
Feb 13 2017
The CL in question looks pretty harmless, but it looks like the crash is here:
bool SystemMenuModelDelegate::IsCommandIdEnabled(int command_id) const
... Because handling of the IDC_RESTORE_TAB command IDs changed, we hit code that we didn't before:
sessions::TabRestoreService* trs =
TabRestoreServiceFactory::GetForProfile(browser_->profile());
if (!trs->IsLoaded()) {
trs->LoadTabsFromLastSession();
return false;
}
,
Feb 13 2017
This seems to fix it:
- if (!trs->IsLoaded()) {
+ if (trs && !trs->IsLoaded()) {
Existing callers elsewhere appear to have the same null-checking.
,
Feb 13 2017
,
Feb 13 2017
Thank you Eric. Feel free to reach me again if anything else I can help. |
|||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||
Comment 1 by elawrence@chromium.org
, Feb 13 2017