bug 277847 - Stop button activated when middle clicking inside blank tab, don't invoke autoscroll for about:blank

This commit is contained in:
mconnor%myrealbox.com 2005-01-11 02:55:40 +00:00
Родитель 63a1001a43
Коммит c583b057f9
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -837,7 +837,9 @@
if (this._isScrolling) {
stopScroll();
} else if (event.button == 1) {
if (!this.autoscrollEnabled || this.isAutoscrollBlocker(event.originalTarget))
if (!this.autoscrollEnabled ||
this.currentURI.spec == "about:blank"||
this.isAutoscrollBlocker(event.originalTarget))
return;
this._startX = event.clientX;