[Pkg-mozext-commits] [greasemonkey] 10/19: Remove `isPrivate` from Script object.

David Prévot taffit at moszumanska.debian.org
Fri May 6 12:48:48 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository greasemonkey.

commit 9025133aa978d1b20b3800b40c0c581169966960
Author: Anthony Lieuallen <arantius at gmail.com>
Date:   Mon Apr 18 12:01:39 2016 -0400

    Remove `isPrivate` from Script object.
    
    Scripts are never private or not, windows are.
    
    Refs #2199
---
 modules/script.js | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/modules/script.js b/modules/script.js
index e5fb630..099326f 100644
--- a/modules/script.js
+++ b/modules/script.js
@@ -45,7 +45,6 @@ function Script(configNode) {
   this._id = null;
   this._installTime = null;
   this._includes = [];
-  this._isPrivate = 'unknown';
   // All available localized properties.
   this._locales = {};
   // The best localized matches for the current browser locale.
@@ -315,9 +314,6 @@ function Script_getFileURL() { return GM_util.getUriFromFile(this.file).spec; })
 Script.prototype.__defineGetter__('textContent',
 function Script_getTextContent() { return GM_util.getContents(this.file); });
 
-Script.prototype.__defineGetter__('isPrivate',
-function Script_getIsPrivate() { return this._isPrivate; });
-
 Script.prototype.setFilename = function(aBaseName, aFileName) {
   this._basedir = aBaseName;
   this._filename = aFileName;
@@ -574,8 +570,6 @@ Script.prototype.info = function() {
   return {
     'uuid': this.uuid,
     'version': gGreasemonkeyVersion,
-    'isIncognito': this.isPrivate,
-    'isPrivate': this.isPrivate,
     'scriptMetaStr': extractMeta(this.textContent),
     'scriptSource': this.textContent,
     'scriptWillUpdate': this.isRemoteUpdateAllowed(),

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git



More information about the Pkg-mozext-commits mailing list