Merge pull request #554 from wanabe/with-hmtcib

Improved compatibility with "How Many Times Can I Back?" (#397)
This commit is contained in:
YUKI "Piro" Hiroshi 2013-09-11 23:07:19 -07:00
commit d045439bcc

View File

@ -1082,7 +1082,7 @@ TreeStyleTabBrowser.prototype = {
let containerFinder = d.createRange();
containerFinder.selectNode(namedNodes.closeAnchor);
containerFinder.setEndAfter(namedNodes.close);
let container = containerFinder.getCommonAncestor();
let container = containerFinder.commonAncestorContainer;
while (namedNodes.closeAnchor.parentNode != container)
{
namedNodes.closeAnchor = namedNodes.closeAnchor.parentNode;