[Pkg-mozext-commits] [tabmixplus] 04/13: Don't add id with colon, it cause document.querySelector to throw an exception - An invalid or illegal string was specified
David Prévot
taffit at moszumanska.debian.org
Mon Oct 20 02:33:50 UTC 2014
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository tabmixplus.
commit 98651f30ff64007cb2fdeece015f5823e1bbd564
Author: onemen <tabmix.onemen at gmail.com>
Date: Wed Oct 15 13:34:49 2014 +0300
Don't add id with colon, it cause document.querySelector to throw an exception - An invalid or illegal string was specified
---
modules/Shortcuts.jsm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/Shortcuts.jsm b/modules/Shortcuts.jsm
index db2867e..947e5c9 100644
--- a/modules/Shortcuts.jsm
+++ b/modules/Shortcuts.jsm
@@ -400,9 +400,9 @@ let Shortcuts = {
if (key.getAttribute("keycode") != "VK_F5")
return false;
if (!this.keys.browserReload.id) {
- let index = 1, id;
+ let index = 2, id;
do {
- id = "xxx_key#_Browser:Reload".replace("#", index++);
+ id = "key_reload#".replace("#", index++);
} while (aWindow.document.getElementById(id));
this.keys.browserReload.id = key.id = id;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/tabmixplus.git
More information about the Pkg-mozext-commits
mailing list