mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
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
1 changed files with 8 additions and 1 deletions
|
@ -255,7 +255,14 @@ function ChromeActions(domWindow, contentDispositionFilename) {
|
|||
|
||||
ChromeActions.prototype = {
|
||||
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) {
|
||||
var self = this;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue