mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 20:05:49 +00:00
Bug 1377656 - Bug 1377656 - Remove visibility check in BrowserElement API, r=kanru
This commit is contained in:
parent
7398ce85e3
commit
b90c39afee
@ -1227,7 +1227,6 @@ BrowserElementChild.prototype = {
|
||||
var visible = data.json.visible;
|
||||
if (docShell && docShell.isActive !== visible) {
|
||||
docShell.isActive = visible;
|
||||
sendAsyncMsg('visibilitychange', {visible: visible});
|
||||
|
||||
// Ensure painting is not frozen if the app goes visible.
|
||||
if (visible && this._paintFrozenTimer) {
|
||||
|
@ -172,7 +172,6 @@ BrowserElementParent.prototype = {
|
||||
"fullscreen-origin-change": this._fullscreenOriginChange,
|
||||
"exit-dom-fullscreen": this._exitDomFullscreen,
|
||||
"got-visible": this._gotDOMRequestResult,
|
||||
"visibilitychange": this._childVisibilityChange,
|
||||
"got-set-input-method-active": this._gotDOMRequestResult,
|
||||
"scrollviewchange": this._handleScrollViewChange,
|
||||
"caretstatechanged": this._handleCaretStateChanged,
|
||||
@ -862,16 +861,6 @@ BrowserElementParent.prototype = {
|
||||
{visible: !this._window.document.hidden});
|
||||
},
|
||||
|
||||
/*
|
||||
* Called when the child notices that its visibility has changed.
|
||||
*/
|
||||
_childVisibilityChange: function(data) {
|
||||
debug("_childVisibilityChange(" + data.json.visible + ")");
|
||||
this._frameLoader.visible = data.json.visible;
|
||||
|
||||
this._fireEventFromMsg(data);
|
||||
},
|
||||
|
||||
_requestedDOMFullscreen: function() {
|
||||
this._pendingDOMFullscreen = true;
|
||||
this._windowUtils.remoteFrameFullscreenChanged(this._frameElement);
|
||||
|
Loading…
Reference in New Issue
Block a user