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

Side by Side 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.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 catch (e) 362 catch (e)
363 { 363 {
364 // Ignore NS_ERROR_ILLEGAL_VALUE - it will be thrown if we try to ad d 364 // Ignore NS_ERROR_ILLEGAL_VALUE - it will be thrown if we try to ad d
365 // the stylesheet multiple times to the same document (the observer 365 // the stylesheet multiple times to the same document (the observer
366 // will be notified twice for some documents). 366 // will be notified twice for some documents).
367 if (e.result != Cr.NS_ERROR_ILLEGAL_VALUE) 367 if (e.result != Cr.NS_ERROR_ILLEGAL_VALUE)
368 throw e; 368 throw e;
369 } 369 }
370 } 370 }
371 371
372 let host = subject.location.hostname; 372 let host = window.location.hostname;
373 if (host) 373 if (host)
374 { 374 {
375 try 375 try
376 { 376 {
377 let suffix = "=" + encodeURIComponent(host); 377 let suffix = "=" + encodeURIComponent(host);
378 if (specificOnly) 378 if (specificOnly)
379 suffix += "&specificonly"; 379 suffix += "&specificonly";
380 utils.loadSheetUsingURIString(this.styleURL.spec + suffix, 380 utils.loadSheetUsingURIString(this.styleURL.spec + suffix,
381 Ci.nsIStyleSheetService.USER_SHEET); 381 Ci.nsIStyleSheetService.USER_SHEET);
382 } 382 }
(...skipping 11 matching lines...) Expand all
394 if (filter) 394 if (filter)
395 { 395 {
396 RequestNotifier.addNodeData(window.document, window.top, { 396 RequestNotifier.addNodeData(window.document, window.top, {
397 contentType, docDomain, thirdParty, location, filter, filterType 397 contentType, docDomain, thirdParty, location, filter, filterType
398 }); 398 });
399 } 399 }
400 }); 400 });
401 } 401 }
402 }; 402 };
403 observer.init(); 403 observer.init();
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld