搜尋 Mozilla 技術支援網站

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

Learn More

Is it possible to ask for users permission to execute codes such as "Components.utils.forceGC()" through "<script>" tag?

  • 1 回覆
  • 1 有這個問題
  • 30 次檢視
  • 最近回覆由 cor-el

more options

In case it's not possible, can users manually give a specific "Tab" the permission to execute such codes?

所有回覆 (1)

more options

No, that is not possible. You can only run such privileged JavaScript via the Browser Console.