Bug 719026 - Blue background color remains for inputs, links etc, when panning inside iframes. r=wesj

This commit is contained in:
Margaret Leibovic 2012-06-13 08:40:08 -07:00
parent 379b93ac59
commit ee72ccd19f

View File

@ -2740,6 +2740,14 @@ var BrowserEventHandler = {
},
_cancelTapHighlight: function _cancelTapHighlight() {
if (!this._highlightElement)
return;
// If the active element is in a sub-frame, we need to make that frame's document
// active to remove the element's active state.
if (this._highlightElement.ownerDocument != BrowserApp.selectedBrowser.contentWindow.document)
DOMUtils.setContentState(this._highlightElement.ownerDocument.documentElement, kStateActive);
DOMUtils.setContentState(BrowserApp.selectedBrowser.contentWindow.document.documentElement, kStateActive);
this._highlightElement = null;
},