Cache browser visibility state & emit visibilitychange event on change

Fixes #3788
This commit is contained in:
Arek Sredzki 2016-03-07 01:26:36 -08:00
parent 377a8eefb2
commit ee61ab2d26
4 changed files with 35 additions and 12 deletions

View file

@ -3,7 +3,7 @@ window.onload = function() {
InspectorFrontendHost.showContextMenuAtPoint = createMenu;
// Use dialog API to override file chooser dialog.
return WebInspector.createFileSelectorElement = createFileSelectorElement;
return (WebInspector.createFileSelectorElement = createFileSelectorElement);
};
var convertToMenuTemplate = function(items) {