mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
fix bad access of protected variable. b=302264 r=mento
This commit is contained in:
parent
84da97d9f1
commit
5394cc2cad
@ -3500,7 +3500,7 @@ int TabBarVisiblePrefChangedCallback(const char* inPref, void* inBWC)
|
||||
if (strcmp(inPref, gTabBarVisiblePref) == 0) {
|
||||
BOOL newValue = [[PreferenceManager sharedInstance] getBooleanPref:gTabBarVisiblePref withSuccess:nil];
|
||||
BrowserWindowController* bwc = (BrowserWindowController*)inBWC;
|
||||
[bwc->mTabBrowser setBarAlwaysVisible:newValue];
|
||||
[[bwc getTabBrowser] setBarAlwaysVisible:newValue];
|
||||
}
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user