Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/child/elemHide.js

Issue 29357374: Issue 4527 - Don't access potentially dead object in child/elemHide.js (Closed) Base URL: https://hg.adblockplus.org/adblockplus
Patch Set: Created Oct. 14, 2016, 8:41 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/child/elemHide.js
===================================================================
--- a/lib/child/elemHide.js
+++ b/lib/child/elemHide.js
@@ -364,17 +364,17 @@ let observer = {
// Ignore NS_ERROR_ILLEGAL_VALUE - it will be thrown if we try to add
// the stylesheet multiple times to the same document (the observer
// will be notified twice for some documents).
if (e.result != Cr.NS_ERROR_ILLEGAL_VALUE)
throw e;
}
}
- let host = subject.location.hostname;
+ let host = window.location.hostname;
if (host)
{
try
{
let suffix = "=" + encodeURIComponent(host);
if (specificOnly)
suffix += "&specificonly";
utils.loadSheetUsingURIString(this.styleURL.spec + suffix,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld