зеркало из https://github.com/mozilla/gecko-dev.git
Fix middle mouse click opening new window, which was broken by an improvement in our DOM support in the XPCDOM landing (localName should return null in many cases). r=blake sr=jst b=79548
This commit is contained in:
Родитель
c3160c1293
Коммит
4de9d368fc
|
@ -102,6 +102,9 @@
|
|||
|
||||
function findParentNode(node, parentNode)
|
||||
{
|
||||
if (node && node.nodeType == Node.TEXT_NODE) {
|
||||
node = node.parentNode;
|
||||
}
|
||||
while (node) {
|
||||
var nodeName = node.localName;
|
||||
if (!nodeName)
|
||||
|
|
Загрузка…
Ссылка в новой задаче