зеркало из https://github.com/mozilla/pjs.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:
Родитель
cc8ef4d413
Коммит
fc5ea09268
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче