Fix undefined isSameDocument

This commit is contained in:
FranklinDM 2018-11-17 21:49:36 +08:00 committed by Roy Tam
commit 0785204717

View file

@ -702,6 +702,8 @@
let topLevel = aWebProgress.isTopLevel;
if (topLevel) {
let isSameDocument =
!!(aFlags & Ci.nsIWebProgressListener.LOCATION_CHANGE_SAME_DOCUMENT);
// We need to clear the typed value
// if the document failed to load, to make sure the urlbar reflects the
// failed URI (particularly for SSL errors). However, don't clear the value