Merge pull request #5364 from Rob--W/firefox-pbu_isWindowPrivate
Firefox addon: Use isContentWindowPrivate instead of isWindowPrivate if available
This commit is contained in:
commit
56d11fc26b
@ -255,7 +255,14 @@ function ChromeActions(domWindow, contentDispositionFilename) {
|
|||||||
|
|
||||||
ChromeActions.prototype = {
|
ChromeActions.prototype = {
|
||||||
isInPrivateBrowsing: function() {
|
isInPrivateBrowsing: function() {
|
||||||
return PrivateBrowsingUtils.isWindowPrivate(this.domWindow);
|
//#if !MOZCENTRAL
|
||||||
|
if (!PrivateBrowsingUtils.isContentWindowPrivate) {
|
||||||
|
// pbu.isContentWindowPrivate was not supported prior Firefox 35.
|
||||||
|
// (https://bugzilla.mozilla.org/show_bug.cgi?id=1069059)
|
||||||
|
return PrivateBrowsingUtils.isWindowPrivate(this.domWindow);
|
||||||
|
}
|
||||||
|
//#endif
|
||||||
|
return PrivateBrowsingUtils.isContentWindowPrivate(this.domWindow);
|
||||||
},
|
},
|
||||||
download: function(data, sendResponse) {
|
download: function(data, sendResponse) {
|
||||||
var self = this;
|
var self = this;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user