Greasemonkey: Nightly 56.0a1 破解 (2017-07-26)

创建于 2017-07-27  ·  16评论  ·  资料来源: greasemonkey/greasemonkey

Tried both stable 3.11 and dev 3.11beta1.尝试了稳定的 3.11 和 dev 3.11beta1。 Test script:测试脚本:

// ==UserScript==
// <strong i="6">@name</strong> hello
// <strong i="7">@namespace</strong> world
// <strong i="8">@include</strong> *
// ==/UserScript==
alert('Hello world!');
en

最有用的评论

You need 56b02 for that setting to work correctly.您需要 56b02 才能使该设置正常工作。 56b03 will have that fix and the level 2 setting which should fix this, by default.默认情况下,56b03 将具有该修复和应该修复此问题的 2 级设置。

en

所有16条评论

Same here.同样在这里。 Stopped working a few days ago.几天前停止工作。

en

Works for me.为我工作。 Going to need more detail.需要更多细节。

Should I guess from OP's username that this is actually a conflict with some other extension?我是否应该从 OP 的用户名中猜测这实际上与其他扩展名有冲突?

en

I have uBlock Origin installed, but I do not see any blocked requests in network tab in Dev Tools.我安装了 uBlock Origin,但在开发工具的网络选项卡中没有看到任何被阻止的请求。

Here is what console output looks like on my machine:这是我的机器上控制台输出的样子:

0 bind() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":763]
1 findSql() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":810]
2 findEnabled() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":82]
3 observe() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStartup.js":21]

0 bind() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":760]
1 findSql() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":810]
2 find() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":72]
3 getAddonByID() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStartup.js":57]
4 callProviderAsync() ["resource://gre/modules/AddonManager.jsm":295]
5 promiseCallProvider/<() ["resource://gre/modules/AddonManager.jsm":319]
6 promiseCallProvider() ["resource://gre/modules/AddonManager.jsm":318]
7 getAddonByID/promises<() ["resource://gre/modules/AddonManager.jsm":2407]
8 from() ["self-hosted":611]
9 getAddonByID() ["resource://gre/modules/AddonManager.jsm":2406]
10 getAddonByID() ["resource://gre/modules/AddonManager.jsm":3577]
11 init() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7BDD7B8D8D-C0B5-4122-9652-4FCB1E788CD8%7D.xpi!/bootstrap.js":132]
12 onFinalUiStartup() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7BDD7B8D8D-C0B5-4122-9652-4FCB1E788CD8%7D.xpi!/bootstrap.js":185]

0 bind() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":760]
1 findSql() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":810]
2 find() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":72]
3 getAddonByID() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStartup.js":57]
4 callProviderAsync() ["resource://gre/modules/AddonManager.jsm":295]
5 promiseCallProvider/<() ["resource://gre/modules/AddonManager.jsm":319]
6 promiseCallProvider() ["resource://gre/modules/AddonManager.jsm":318]
7 getAddonByID/promises<() ["resource://gre/modules/AddonManager.jsm":2407]
8 from() ["self-hosted":611]
9 getAddonByID() ["resource://gre/modules/AddonManager.jsm":2406]
10 getAddonByID() ["resource://gre/modules/AddonManager.jsm":3577]
11 <TOP LEVEL> ["chrome://greasemonkey/content/browser.js":13]

0 bind() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":760]
1 findSql() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":810]
2 find() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":72]
3 getAddonByID() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStartup.js":57]
4 callProviderAsync() ["resource://gre/modules/AddonManager.jsm":295]
5 promiseCallProvider/<() ["resource://gre/modules/AddonManager.jsm":319]
6 promiseCallProvider() ["resource://gre/modules/AddonManager.jsm":318]
7 getAddonByID/promises<() ["resource://gre/modules/AddonManager.jsm":2407]
8 from() ["self-hosted":611]
9 getAddonByID() ["resource://gre/modules/AddonManager.jsm":2406]
10 getAddonByID() ["resource://gre/modules/AddonManager.jsm":3577]
11 updateSettings() ["chrome://tabmixplus/content/tab/tab.js":2673]
12 init() ["resource://tabmixplus/TabmixSvc.jsm":180]
13 Tabmix.beforeBrowserInitOnLoad() ["chrome://tabmixplus/content/links/setup.js":49]
14 tabmix_initialization_run() ["chrome://tabmixplus/content/tabmix.js":1235]
15 TMP_EL_onContentLoaded() ["chrome://tabmixplus/content/tabmix.js":322]
16 TMP_EL_handleEvent() ["chrome://tabmixplus/content/tabmix.js":287]

0 bind() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":760]
1 findSql() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":810]
2 find() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":72]
3 getAddonByID() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStartup.js":57]
4 callProviderAsync() ["resource://gre/modules/AddonManager.jsm":295]
5 promiseCallProvider/<() ["resource://gre/modules/AddonManager.jsm":319]
6 promiseCallProvider() ["resource://gre/modules/AddonManager.jsm":318]
7 getAddonByID/promises<() ["resource://gre/modules/AddonManager.jsm":2407]
8 from() ["self-hosted":611]
9 getAddonByID() ["resource://gre/modules/AddonManager.jsm":2406]
10 getAddonByID() ["resource://gre/modules/AddonManager.jsm":3577]
11 checkFirstRun() ["chrome://superstart/content/js/startup.js":452]
12 onLoad() ["chrome://superstart/content/js/startup.js":186]

0 bind() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":757]
1 findByMeta() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":104]
2 updateStatus() ["chrome://stylish/content/overlay.js":175]
3 urlUpdated() ["chrome://stylish/content/overlay.js":141]
4 init() ["chrome://stylish/content/overlay.js":67]

0 bind() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":757]
1 findByMeta() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":105]
2 updateStatus() ["chrome://stylish/content/overlay.js":175]
3 urlUpdated() ["chrome://stylish/content/overlay.js":141]
4 init() ["chrome://stylish/content/overlay.js":67]

0 bind() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":760]
1 findSql() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":810]
2 find() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":72]
3 getAddonByID() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStartup.js":57]
4 callProviderAsync() ["resource://gre/modules/AddonManager.jsm":295]
5 promiseCallProvider/<() ["resource://gre/modules/AddonManager.jsm":319]
6 promiseCallProvider() ["resource://gre/modules/AddonManager.jsm":318]
7 getAddonByID/promises<() ["resource://gre/modules/AddonManager.jsm":2407]
8 from() ["self-hosted":611]
9 getAddonByID() ["resource://gre/modules/AddonManager.jsm":2406]
10 getAddonByID() ["resource://gre/modules/AddonManager.jsm":3577]
11 enable/<() ["resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/preferences/native-options.js":34]
12 enable() ["resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/preferences/native-options.js":28]
13 run() ["resource://gre/modules/commonjs/sdk/addon/runner.js":108]
14 startup/</<() ["resource://gre/modules/commonjs/sdk/addon/runner.js":83]
15 process() ["resource://gre/modules/Promise-backend.js":922]
16 walkerLoop() ["resource://gre/modules/Promise-backend.js":806]
17 bound walkerLoop() ["self-hosted":945]
18 bound walkerLoop() ["self-hosted":945]
19 scheduleWalkerLoop/<() ["resource://gre/modules/Promise-backend.js":742]
20 getExtensionInfo() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7BDD7B8D8D-C0B5-4122-9652-4FCB1E788CD8%7D.xpi!/bootstrap.js":21]
21 init/<() ["jar:file:///home/nazar-pc/.mozilla/firefox/0 bind() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":760]
1 findSql() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":810]
2 find() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":72]
3 getAddonByID() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStartup.js":57]
4 callProviderAsync() ["resource://gre/modules/AddonManager.jsm":295]
5 promiseCallProvider/<() ["resource://gre/modules/AddonManager.jsm":319]
6 promiseCallProvider() ["resource://gre/modules/AddonManager.jsm":318]
7 getAddonByID/promises<() ["resource://gre/modules/AddonManager.jsm":2407]
8 from() ["self-hosted":611]
9 getAddonByID() ["resource://gre/modules/AddonManager.jsm":2406]
10 getAddonByID() ["resource://gre/modules/AddonManager.jsm":3577]
11 enable/<() ["resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/preferences/native-options.js":34]
12 enable() ["resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/preferences/native-options.js":28]
13 run() ["resource://gre/modules/commonjs/sdk/addon/runner.js":108]
14 startup/</<() ["resource://gre/modules/commonjs/sdk/addon/runner.js":83]
15 process() ["resource://gre/modules/Promise-backend.js":922]
16 walkerLoop() ["resource://gre/modules/Promise-backend.js":806]
17 bound walkerLoop() ["self-hosted":945]
18 bound walkerLoop() ["self-hosted":945]
19 scheduleWalkerLoop/<() ["resource://gre/modules/Promise-backend.js":742]
20 getExtensionInfo() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7BDD7B8D8D-C0B5-4122-9652-4FCB1E788CD8%7D.xpi!/bootstrap.js":21]
21 init/<() ["jar:file:///home/nazar-pc/.mozilla/firefox/0 bind() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":760]
1 findSql() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":810]
2 find() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":72]
3 getAddonByID() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStartup.js":57]
4 callProviderAsync() ["resource://gre/modules/AddonManager.jsm":295]
5 promiseCallProvider/<() ["resource://gre/modules/AddonManager.jsm":319]
6 promiseCallProvider() ["resource://gre/modules/AddonManager.jsm":318]
7 getAddonByID/promises<() ["resource://gre/modules/AddonManager.jsm":2407]
8 from() ["self-hosted":611]
9 getAddonByID() ["resource://gre/modules/AddonManager.jsm":2406]
10 getAddonByID() ["resource://gre/modules/AddonManager.jsm":3577]
11 enable/<() ["resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/preferences/native-options.js":34]
12 enable() ["resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/preferences/native-options.js":28]
13 run() ["resource://gre/modules/commonjs/sdk/addon/runner.js":108]
14 startup/</<() ["resource://gre/modules/commonjs/sdk/addon/runner.js":83]
15 process() ["resource://gre/modules/Promise-backend.js":922]
16 walkerLoop() ["resource://gre/modules/Promise-backend.js":806]
17 bound walkerLoop() ["self-hosted":945]
18 bound walkerLoop() ["self-hosted":945]
19 scheduleWalkerLoop/<() ["resource://gre/modules/Promise-backend.js":742]
20 getExtensionInfo() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7BDD7B8D8D-C0B5-4122-9652-4FCB1E788CD8%7D.xpi!/bootstrap.js":21]
21 init/<() ["jar:file:///home/nazar-pc/.mozilla/firefox/0 bind() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":760]
1 findSql() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":810]
2 find() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":72]
3 getAddonByID() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStartup.js":57]
4 callProviderAsync() ["resource://gre/modules/AddonManager.jsm":295]
5 promiseCallProvider/<() ["resource://gre/modules/AddonManager.jsm":319]
6 promiseCallProvider() ["resource://gre/modules/AddonManager.jsm":318]
7 getAddonByID/promises<() ["resource://gre/modules/AddonManager.jsm":2407]
8 from() ["self-hosted":611]
9 getAddonByID() ["resource://gre/modules/AddonManager.jsm":2406]
10 getAddonByID() ["resource://gre/modules/AddonManager.jsm":3577]
11 enable/<() ["resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/preferences/native-options.js":34]
12 enable() ["resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/preferences/native-options.js":28]
13 run() ["resource://gre/modules/commonjs/sdk/addon/runner.js":108]
14 startup/</<() ["resource://gre/modules/commonjs/sdk/addon/runner.js":83]
15 process() ["resource://gre/modules/Promise-backend.js":922]
16 walkerLoop() ["resource://gre/modules/Promise-backend.js":806]
17 bound walkerLoop() ["self-hosted":945]
18 bound walkerLoop() ["self-hosted":945]
19 scheduleWalkerLoop/<() ["resource://gre/modules/Promise-backend.js":742]
20 getExtensionInfo() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7BDD7B8D8D-C0B5-4122-9652-4FCB1E788CD8%7D.xpi!/bootstrap.js":21]
21 init/<() ["jar:file:///home/nazar-pc/.mozilla/firefox/0 bind() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":760]
1 findSql() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":810]
2 find() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStyle.js":72]
3 getAddonByID() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7B46551EC9-40F0-4e47-8E18-8E5CF550CFB8%7D.xpi!/components/stylishStartup.js":57]
4 callProviderAsync() ["resource://gre/modules/AddonManager.jsm":295]
5 promiseCallProvider/<() ["resource://gre/modules/AddonManager.jsm":319]
6 promiseCallProvider() ["resource://gre/modules/AddonManager.jsm":318]
7 getAddonByID/promises<() ["resource://gre/modules/AddonManager.jsm":2407]
8 from() ["self-hosted":611]
9 getAddonByID() ["resource://gre/modules/AddonManager.jsm":2406]
10 getAddonByID() ["resource://gre/modules/AddonManager.jsm":3577]
11 enable/<() ["resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/preferences/native-options.js":34]
12 enable() ["resource://gre/modules/commonjs/toolkit/loader.js -> resource://gre/modules/commonjs/sdk/preferences/native-options.js":28]
13 run() ["resource://gre/modules/commonjs/sdk/addon/runner.js":108]
14 startup/</<() ["resource://gre/modules/commonjs/sdk/addon/runner.js":83]
15 process() ["resource://gre/modules/Promise-backend.js":922]
16 walkerLoop() ["resource://gre/modules/Promise-backend.js":806]
17 bound walkerLoop() ["self-hosted":945]
18 bound walkerLoop() ["self-hosted":945]
19 scheduleWalkerLoop/<() ["resource://gre/modules/Promise-backend.js":742]
20 getExtensionInfo() ["jar:file:///home/nazar-pc/.mozilla/firefox/q5eocnir.default/extensions/%7BDD7B8D8D-C0B5-4122-9652-4FCB1E788CD8%7D.xpi!/bootstrap.js":21]
21 init/<() ["jar:file:///home/nazar-pc/.mozilla/firefox/
en

@arantius No other extensions were installed, using a freshly created profile. @arantius没有安装其他扩展,使用新创建的配置文件。 I tried to switch between FF Stable and Nightly using the same profile, alert does not appear in Nightly.我尝试使用相同的配置文件在 FF Stable 和 Nightly 之间切换,Nightly 中没有出现警报。 Same as @nazar-pc said, broke just two days ago.和@nazar-pc 说的一样,两天前就坏了。

Running on Debian 8 x64.在 Debian 8 x64 上运行。

en

On Linux confirmed.在 Linux 上确认。

Ad (default):广告(默认):
about:config
security.sandbox.content.level = 3 security.sandbox.content.level = 3


Throws an error in Browser Console:在浏览器控制台中引发错误:

1) 1)

TypeError: el is null
emptyEl.js:4:10

and

2) 2)

NS_ERROR_FILE_ACCESS_DENIED: Component returned failure code: 0x80520015
(NS_ERROR_FILE_ACCESS_DENIED) [nsIStringBundle.GetStringFromName]
sandbox.js:19

__Last good: Firefox 56.0a1 (2017-07-25)__ __最后一次好:Firefox 56.0a1 (2017-07-25)__
Built from https://hg.mozilla.org/mozilla-central/rev/131e19a573e901fb4d01b471b11b7916420b9feehttps://hg.mozilla.org/mozilla-central/rev/131e19a573e901fb4d01b471b11b7916420b9fee构建

__First bad: Firefox 56.0a1 (2017-07-26)__ __第一个坏的:Firefox 56.0a1 (2017-07-26)__
Built from https://hg.mozilla.org/mozilla-central/rev/e8400551c2e39f24c75a009ebed496c7acd7bf47https://hg.mozilla.org/mozilla-central/rev/e8400551c2e39f24c75a009ebed496c7acd7bf47构建

__Pushlog__ __推送日志__
https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=131e19a573e901fb4d01b471b11b7916420b9fee&tochange=e8400551c2e39f24c75a009ebed496c7acd7bf47 https://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=131e19a573e901fb4d01b471b11b7916420b9fee&tochange=e8400551c2e39f24c75a009ebed496c7acd7bf47


Ad 1)广告 1)

Ad:广告:
https://github.com/greasemonkey/greasemonkey/blob/3.11/content/browser.js#L288 https://github.com/greasemonkey/greasemonkey/blob/3.11/content/browser.js#L288
mm == [object ChromeMessageSender] , but this callbacks: mm == [object ChromeMessageSender] ,但是这个回调:
https://github.com/greasemonkey/greasemonkey/blob/3.11/modules/processScript.js#L16 https://github.com/greasemonkey/greasemonkey/blob/3.11/modules/processScript.js#L16
(https://github.com/greasemonkey/greasemonkey/blob/3.11/modules/processScript.js#L30) (https://github.com/greasemonkey/greasemonkey/blob/3.11/modules/processScript.js#L30)
https://github.com/greasemonkey/greasemonkey/blob/3.11/content/browser.js#L294 https://github.com/greasemonkey/greasemonkey/blob/3.11/content/browser.js#L294
does not work (it never gets inside).不起作用(它永远不会进入内部)。

But I cannot simulate it with Scratchpad (this is probably the one content):但我不能用 Scratchpad 模拟它(这可能是一个内容):

let messageName = "greasemonkey:message";

function framescript() {

  let messageName = "greasemonkey:message";

  this.addMessageListener(messageName, any);

  function any(aMessage) {
     let consoleService = Components.classes["@mozilla.org/consoleservice;1"]
         .getService(Components.interfaces.nsIConsoleService);
     consoleService.logStringMessage("I am here!");
  }

}

let globalMessageManager = Components.classes["@mozilla.org/globalmessagemanager;1"]
    .getService(Components.interfaces.nsIMessageListenerManager);

globalMessageManager.loadFrameScript(
    "data:text/javascript,(" + framescript.toString() + ")();", false);

var mm = getBrowser().mCurrentBrowser.frameLoader.messageManager;

mm.sendAsyncMessage(messageName, {});

Ad 2)广告 2)

Bug 1308400错误 1308400


A fix:修复:
about:config
security.sandbox.content.level = 1 security.sandbox.content.level = 1

en

另见: https ://bugzilla.mozilla.org/show_bug.cgi?id=1385712

en

For info, this is broken on 56.0b1 Dev edition under Linux too.有关信息,这在 Linux 下的56.0b1 Dev 版本上也被破坏了。

Changing security.sandbox.content.level from 3 to 1 does not fix anything.security.sandbox.content.level3更改1并不能解决任何问题。

en

You need 56b02 for that setting to work correctly.您需要 56b02 才能使该设置正常工作。 56b03 will have that fix and the level 2 setting which should fix this, by default.默认情况下,56b03 将具有该修复和应该修复此问题的 2 级设置。

en

I'm on 56.0b2 and it's not working for me, altough what happens it's that Greasemonkey says that there are no scripts installed to run on this page.我在 56.0b2 上,但它对我不起作用,尽管 Greasemonkey 说没有安装脚本可以在此页面上运行。 Can't tell if it's related to this issue or not.无法判断它是否与这个问题有关。

Update: nevermind, it works, you have to change the setting and then restart.更新:没关系,它有效,您必须更改设置然后重新启动。

en

@faelsoto did you change security.sandbox.content.level from 3 to 2? @faelsoto您是否将security.sandbox.content.level从 3 更改为 2? (or 1) (或 1 个)

Or just wait for 56.0b3, releasing tomorrow-ish.或者只是等待 56.0b3,明天发布。

en

on 56.0b2 , I just tested modifying security.sandbox.content.level to 2 , then to 1 , tried to refresh a page on which I have a custom greasemonkey script, tried to open a new tab and go to that same page ;56.0b2上,我刚刚测试了将security.sandbox.content.level修改为2 ,然后修改为1 ,尝试刷新我有自定义greasemonkey脚本的页面,尝试打开一个新标签并转到同一页面; this does not fix anything unfortunately.不幸的是,这并不能解决任何问题。

en

请确保在更改该设置后重新启动浏览器。

en

Ok, setting security.sandbox.content.level to 2 , then restarting fix the problem.好的,将security.sandbox.content.level设置为2然后重新启动解决问题。 Congrats.恭喜。

Side note: What are the implications of changing that security level exactly?旁注:准确更改该安全级别有什么影响?

en

Side note: What are the implications of changing that security level exactly?旁注:准确更改该安全级别有什么影响?

https://wiki.mozilla.org/Security/Sandbox#Content_Levels_2 https://wiki.mozilla.org/Security/Sandbox#Content_Levels_2

In simple terms, with level 2 an attacker that finds one security hole in Firefox won't be able to take over the browser or PC, but can still access sensitive data such as your passwords, cookies, etc. Level 3 closes that hole.简单来说,在级别 2 中,发现 Firefox 中的一个安全漏洞的攻击者将无法接管浏览器或 PC,但仍然可以访问敏感数据,例如您的密码、cookie 等。级别 3 关闭了该漏洞。

There were too many outstanding compatibility issues to leave 3 enabled on 56, though we plan to enable it in 57, which has a load more fixes.有太多突出的兼容性问题无法在 56 上启用 3,尽管我们计划在 57 中启用它,这有更多的修复。 Note that this is specific to Linux, macOS and Windows already shipped a stricter sandbox.请注意,这是特定于 Linux 的,macOS 和 Windows 已经发布了更严格的沙箱。

en

Bankruptcy milestone破产里程碑

Wow that sounds sad.哇,听起来很悲伤。 But isn't this pretty much fixed?但这不是固定的吗? Firefox 57.0a1 has level 3, but I'm pretty sure I saw other fixes for this same bug, and I just tested nightly buildid 20170816100153 and it works. Firefox 57.0a1 有 3 级,但我很确定我看到了针对同一错误的其他修复,我刚刚测试了每晚 buildid 20170816100153 并且它有效。

en

Nightly was fixed by bug 1385891. There's nothing Greasemonkey needs to do to fix this on their side. Nightly 由错误 1385891 修复。Greasemonkey 无需做任何事情来解决这个问题。

(Aside from the obvious WebExtensions elephant in the room, and the controversy over whether they should have filesystem access or not, but that's being dealt with in other issues) (除了房间里明显的 WebExtensions 大象,以及关于它们是否应该具有文件系统访问权限的争议,但这正在其他问题中处理)

en
此页面是否有帮助?
0 / 5 - 0 等级