Bug 897960 - walker should support mozbrowser iframes. Patch E. r=dcamp

This commit is contained in:
Paul Rouget 2013-09-09 00:24:00 +02:00
parent 6b89b7aba1
commit 0670a24276
2 changed files with 2 additions and 2 deletions

View File

@ -101,7 +101,7 @@ function serverOwnershipSubtree(walker, node) {
}
let children = [];
let docwalker = _documentWalker(node);
let docwalker = _documentWalker(node, window);
let child = docwalker.firstChild();
while (child) {
let item = serverOwnershipSubtree(walker, child);

View File

@ -65,7 +65,7 @@ addTest(function testRearrange() {
nextNode = response.nodes[13];
return gWalker.insertBefore(nodeA, longlist, nextNode);
}).then(response => {
let sibling = inspector._documentWalker(gInspectee.querySelector("#a")).nextSibling();
let sibling = inspector._documentWalker(gInspectee.querySelector("#a"), window).nextSibling();
is(sibling, nextNode.rawNode(), "Node should match the expected next node.");
return gWalker.children(longlist);
}).then(response => {