Merge pull request #554 from wanabe/with-hmtcib
Improved compatibility with "How Many Times Can I Back?" (#397)
This commit is contained in:
commit
d045439bcc
@ -1082,7 +1082,7 @@ TreeStyleTabBrowser.prototype = {
|
|||||||
let containerFinder = d.createRange();
|
let containerFinder = d.createRange();
|
||||||
containerFinder.selectNode(namedNodes.closeAnchor);
|
containerFinder.selectNode(namedNodes.closeAnchor);
|
||||||
containerFinder.setEndAfter(namedNodes.close);
|
containerFinder.setEndAfter(namedNodes.close);
|
||||||
let container = containerFinder.getCommonAncestor();
|
let container = containerFinder.commonAncestorContainer;
|
||||||
while (namedNodes.closeAnchor.parentNode != container)
|
while (namedNodes.closeAnchor.parentNode != container)
|
||||||
{
|
{
|
||||||
namedNodes.closeAnchor = namedNodes.closeAnchor.parentNode;
|
namedNodes.closeAnchor = namedNodes.closeAnchor.parentNode;
|
||||||
|
Loading…
Reference in New Issue
Block a user