mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 08:45:46 +00:00
Bug 1608336 - Disable Touch Bar for non-chrome windows. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D62259 --HG-- extra : moz-landing-system : lando
This commit is contained in:
parent
fd1c3e1623
commit
b52b6dfb21
@ -294,6 +294,16 @@ class TouchBarHelper {
|
||||
Ci.nsIMutableArray
|
||||
);
|
||||
|
||||
let window = TouchBarHelper.window;
|
||||
if (
|
||||
!window ||
|
||||
!window.isChromeWindow ||
|
||||
window.document.documentElement.getAttribute("windowtype") !=
|
||||
"navigator:browser"
|
||||
) {
|
||||
return layoutItems;
|
||||
}
|
||||
|
||||
// Every input must be updated at least once so that all assets (titles,
|
||||
// icons) are loaded. We keep track of which inputs haven't updated and
|
||||
// run an update on them ASAP.
|
||||
|
Loading…
Reference in New Issue
Block a user