From a681891e66255bfc466782ee5714e5cff80e0004 Mon Sep 17 00:00:00 2001 From: FranklinDM Date: Sat, 17 Nov 2018 21:49:36 +0800 Subject: Fix undefined isSameDocument --- application/palemoon/base/content/tabbrowser.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/application/palemoon/base/content/tabbrowser.xml b/application/palemoon/base/content/tabbrowser.xml index 9479db109..929afd057 100644 --- a/application/palemoon/base/content/tabbrowser.xml +++ b/application/palemoon/base/content/tabbrowser.xml @@ -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 -- cgit v1.2.3