Bug 621509 - Check for content showing before forwarding keyboard events [r=mfinkle]

This commit is contained in:
Wes Johnston 2011-01-13 08:51:55 -08:00
Родитель 10ccbaef45
Коммит 69087caa15
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -1684,6 +1684,9 @@ function ContentCustomKeySender(container) {
ContentCustomKeySender.prototype = {
handleEvent: function handleEvent(aEvent) {
if (Elements.contentShowing.getAttribute("disabled"))
return;
let browser = getBrowser();
if (browser && browser.getAttribute("remote") == "true") {
aEvent.stopPropagation();

Просмотреть файл

@ -82,7 +82,7 @@
<script type="application/javascript" src="chrome://browser/content/input.js"/>
<broadcasterset id="broadcasterset">
<broadcaster id="bcast_contentShowing"/>
<broadcaster id="bcast_contentShowing" disabled="false"/>
<broadcaster id="bcast_urlbarState" mode="view"/>
</broadcasterset>