Bug 1402493 - Don't prevent switching back to Reload for top level about: loads. r=Gijs

In the steps to reproduce of this bug, we get see a load start for about:blank that is not top level. We then see a following load complete (STATE_STOP) that has aWebProgress.isTopLevel=true. This code is really here to prevent flickering from reload->stop->reload for about:home and other about: pages. I don't see any harm in being more agressive when switching back to Reload since that is the default state.

MozReview-Commit-ID: 3LygnRLcbA9

--HG--
extra : rebase_source : fb73699a213765cdb9239a111a55848e513ab0ee
This commit is contained in:
Jared Wein 2017-09-27 17:35:09 -04:00
Родитель a73d388c79
Коммит 1e2c41849c
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -5054,8 +5054,7 @@ var CombinedStopReload = {
},
switchToReload(aRequest, aWebProgress) {
if (!this.ensureInitialized() || !this._shouldSwitch(aRequest, aWebProgress) ||
!this.reload.hasAttribute("displaystop")) {
if (!this.ensureInitialized() || !this.reload.hasAttribute("displaystop")) {
return;
}