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:
Harry Twyford 2020-02-11 09:49:11 +00:00
parent fd1c3e1623
commit b52b6dfb21

View File

@ -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.