搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

Disabling javascript alerts?

  • 8 回覆
  • 2 有這個問題
  • 282 次檢視
  • 最近回覆由 LostGod

more options

I am using an extension called Black YouTube Theme (https://addons.mozilla.org/en-US/firefox/addon/black-youtube-theme/). Currently Whenever I start Firefox using restore session from last time. For any YouTube links I have open it pops open a little JavaScript Application box, one per link, which returns "Error: document.domain is null". That is the only problem I have, so I was wondering does anyone know how to disable JavaScript error messages using about:config?

I am using an extension called Black YouTube Theme (https://addons.mozilla.org/en-US/firefox/addon/black-youtube-theme/). Currently Whenever I start Firefox using restore session from last time. For any YouTube links I have open it pops open a little JavaScript Application box, one per link, which returns "Error: document.domain is null". That is the only problem I have, so I was wondering does anyone know how to disable JavaScript error messages using about:config?

被選擇的解決方法

capability.policy prefs aren't supported in current Firefox releases, so you can undo these steps.

If it only happens when you reopen pages automatically on the next start then this is likely caused by Firefox loading pages from the cache.

從原來的回覆中察看解決方案 👍 1

所有回覆 (8)

more options

Try this thread on mozillazine:

more options

Maybe disable the disk cache or clearing the cache on exit (Clear history when Firefox closes) will prevent this alert.

See also:

more options

So from my understanding I just put:

"capability.policy.default.Window.alert", "noAccess" "capability.policy.default.Window.confirm", "noAccess" "capability.policy.default.Window.prompt", "noAccess"

As new variables in about:config?

more options

forgottengods said

So from my understanding I just put: "capability.policy.default.Window.alert", "noAccess" "capability.policy.default.Window.confirm", "noAccess" "capability.policy.default.Window.prompt", "noAccess" As new variables in about:config?

These didn't work. I still receive 1 JavaScript Application "Error: document.domain is null" for every YouTube page open on restart.

more options

選擇的解決方法

capability.policy prefs aren't supported in current Firefox releases, so you can undo these steps.

If it only happens when you reopen pages automatically on the next start then this is likely caused by Firefox loading pages from the cache.

more options

I have disk cache set to 0 and the Boolean variable set to false. So I do not believe it is a cache issue.

more options

When was capability.policy removed? What next is going to be gutted out? I am really happy I use SeaMonkey.

more options

It most likely has been replaced with a different name. I do not believe that they would remove something like that. Options/customization, is the whole reason I use Firefox. Without I might as well use Chrome.