Bug 961519 - Prevent touch event mode to be disable on iframes unload. r=paul

This commit is contained in:
Alexandre Poirot 2014-01-21 11:29:46 -05:00
parent cf0357fd3d
commit d6048e3229

View File

@ -238,7 +238,10 @@ ResponsiveUI.prototype = {
} }
}, },
onPageUnload: function() { onPageUnload: function(evt) {
// Ignore sub frames unload events
if (evt.target != this.browser.contentDocument)
return;
if (this.closing) if (this.closing)
return; return;
if (this.touchEventHandler) { if (this.touchEventHandler) {