[Pkg-mozext-commits] [greasemonkey] 06/19: Fix typo
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 ab4b75aba3138a27a607d22f78ec12fd401ae87d
Author: janekptacijarabaci <janekptacijarabaci at seznam.cz>
Date: Sat Apr 9 10:16:49 2016 +0200
Fix typo
https://forum.tampermonkey.net/viewtopic.php?f=17&t=1749
---
modules/sandbox.js | 4 ++--
modules/script.js | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/modules/sandbox.js b/modules/sandbox.js
index ef849fd..a7a82c4 100644
--- a/modules/sandbox.js
+++ b/modules/sandbox.js
@@ -133,8 +133,8 @@ function injectGMInfo(aScript, sandbox, aContentWin) {
var rawInfo = aScript.info();
var scriptURL = aScript.fileURL;
- rawInfo.script.isIncognito = GM_util.isPrivate(aContentWin);
- rawInfo.script.isPrivate = rawInfo.script.isIncognito;
+ rawInfo.isIncognito = GM_util.isPrivate(aContentWin);
+ rawInfo.isPrivate = rawInfo.isIncognito;
// TODO: also delay top level clone via lazy getter? XPCOMUtils.defineLazyGetter
sandbox.GM_info = Cu.cloneInto(rawInfo, sandbox);
diff --git a/modules/script.js b/modules/script.js
index eeeef8c..e5fb630 100644
--- a/modules/script.js
+++ b/modules/script.js
@@ -574,6 +574,8 @@ 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(),
@@ -582,8 +584,6 @@ Script.prototype.info = function() {
'excludes': this.excludes,
// 'icon': ??? source URL?,
'includes': this.includes,
- 'isIncognito': this.isPrivate,
- 'isPrivate': this.isPrivate,
'localizedDescription': this.localized.description,
'localizedName': this.localized.name,
'matches': matches,
--
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