| Index: lib/child/elemHide.js |
| =================================================================== |
| --- a/lib/child/elemHide.js |
| +++ b/lib/child/elemHide.js |
| @@ -320,16 +320,27 @@ let observer = { |
| }); |
| }, |
| observe: function(subject, topic, data) |
| { |
| if (topic != this.topic) |
| return; |
| + if (!subject.location || !subject.location.href) |
| + { |
| + // The window is in an invalid state - delay processing until it's ready. |
|
Thomas Greiner
2016/07/14 14:19:21
What are the reasons for the window being in an in
Wladimir Palant
2016/07/14 15:19:42
It seems that Nightly change the initialization se
|
| + Utils.runAsync(() => |
| + { |
| + if (!Cu.isDeadWrapper(subject)) |
| + this.observe(subject, topic, data) |
| + }); |
| + return; |
| + } |
| + |
| port.emitWithResponse("elemhideEnabled", { |
| frames: getFrames(subject), |
| isPrivate: isPrivate(subject) |
| }).then(({ |
| enabled, contentType, docDomain, thirdParty, location, filter, |
| filterType |
| }) => |
| { |