зеркало из https://github.com/mozilla/gecko-dev.git
Bug 848798 - currentElement browser.js null usage assertion. r=mbrubeck
This commit is contained in:
Родитель
3e4508ca00
Коммит
e08a173385
|
@ -1892,7 +1892,7 @@ var ContentAreaObserver = {
|
|||
let [scrollbox, scrollInterface] = ScrollUtils.getScrollboxFromElement(currentElement);
|
||||
if (scrollbox && scrollInterface && currentElement && currentElement != scrollbox) {
|
||||
// retrieve the direct child of the scrollbox
|
||||
while (currentElement.parentNode != scrollbox)
|
||||
while (currentElement && currentElement.parentNode != scrollbox)
|
||||
currentElement = currentElement.parentNode;
|
||||
|
||||
setTimeout(function() { scrollInterface.ensureElementIsVisible(currentElement) }, 0);
|
||||
|
|
Загрузка…
Ссылка в новой задаче