mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-22 17:55:50 +00:00
Bug 1256313, clear active state on select button when releasing the mouse in e10s, r=mconley
This commit is contained in:
parent
67b5c571bd
commit
04490012b0
@ -17,6 +17,7 @@ XPCOMUtils.defineLazyServiceGetter(this, "DOMUtils",
|
||||
XPCOMUtils.defineLazyModuleGetter(this, "DeferredTask",
|
||||
"resource://gre/modules/DeferredTask.jsm");
|
||||
|
||||
const kStateActive = 0x00000001; // NS_EVENT_STATE_ACTIVE
|
||||
const kStateHover = 0x00000004; // NS_EVENT_STATE_HOVER
|
||||
|
||||
// A process global state for whether or not content thinks
|
||||
@ -137,6 +138,9 @@ this.SelectContentHelper.prototype = {
|
||||
cancelable: true,
|
||||
});
|
||||
this.element.dispatchEvent(mouseEvent);
|
||||
if (eventName == "mouseup") {
|
||||
DOMUtils.removeContentState(this.element, kStateActive);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user