Skip to content

Commit

Permalink
Remove .document getter, now used fg.content.document directly
Browse files Browse the repository at this point in the history
(related to #235)
  • Loading branch information
Infocatcher committed Nov 17, 2016
1 parent cc15faf commit cbe6af4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions content.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ PrivateTabContent.prototype = {
return this.fg.docShell
.QueryInterface(Components.interfaces.nsILoadContext);
},
get document() {
return this.fg.content.document;
},
get isPrivate() {
return this.privacyContext.usePrivateBrowsing;
},
Expand Down Expand Up @@ -91,7 +88,7 @@ PrivateTabContent.prototype = {
},
getImageDocumentDataURL: function() {
var data = "";
var doc = this.document;
var doc = this.fg.content.document;
var isImageDoc = doc instanceof Components.interfaces.nsIImageDocument;
if(isImageDoc) {
var req = doc.imageRequest;
Expand Down

0 comments on commit cbe6af4

Please sign in to comment.