diff options
Diffstat (limited to 'common/modules/util.jsm')
-rw-r--r-- | common/modules/util.jsm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/common/modules/util.jsm b/common/modules/util.jsm index 688a054a..fcc80c0c 100644 --- a/common/modules/util.jsm +++ b/common/modules/util.jsm @@ -1955,7 +1955,8 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]), let res = [], seen = {}; (function rec(frame) { try { - res = res.concat(util.subdomains(frame.location.hostname)); + if (frame.location.hostname) + res = res.concat(util.subdomains(frame.location.hostname)); } catch (e) {} Array.forEach(frame.frames, rec); |