Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #21233 from vingtetun/bug1032885
Browse files Browse the repository at this point in the history
Bug 1032885 - Prevent the permission prompt dialog to steal the focus. r...
  • Loading branch information
vingtetun committed Jul 1, 2014
2 parents 6ca092e + 1143eaf commit fe70a38
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/system/js/permission_manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@
this.discardPermissionRequest = this.discardPermissionRequest.bind(this);
window.addEventListener('home', this.discardPermissionRequest);
window.addEventListener('holdhome', this.discardPermissionRequest);

// Ensure that the focus is not stolen by the permission overlay, as
// it may appears on top of a <select> element, and just cancel it.
this.overlay.addEventListener('mousedown', function onMouseDown(evt) {
evt.preventDefault();
});
},

/**
Expand Down

0 comments on commit fe70a38

Please sign in to comment.