Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

Purpose of the "@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */" css code?

  • 5 个回答
  • 1 人有此问题
  • 48 次查看
  • 最后回复者为 Rick W

more options

Can anyone please explain the purpose of the

   @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */ 

css code, which is often recommended to head any userchrome.css text inside the chrome folder? What happens when you omit this @namespace url line?

Can anyone please explain the purpose of the @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); /* only needed once */ css code, which is often recommended to head any userchrome.css text inside the chrome folder? What happens when you omit this @namespace url line?

被采纳的解决方案

Hi, have a read of https://www.userchrome.org/adding-style-recipes-userchrome-css.html

If your question is resolved by this or another answer, please take a minute to let us know. Thank you!

定位到答案原位置 👍 1

所有回复 (5)

more options

Is it simply an advertisement for Firefox XML User Interface Language?

more options

You use this line to set the namespace for the code on that page.

more options

Why does one need to set a namespace?? What happens if it is not done?

more options

选择的解决方案

Hi, have a read of https://www.userchrome.org/adding-style-recipes-userchrome-css.html

If your question is resolved by this or another answer, please take a minute to let us know. Thank you!

more options

Thanks, Scribe, that is very useful:

Scribe said

Hi, have a read of https://www.userchrome.org/adding-style-recipes-userchrome-css.html

Good to know it is safe to leave that namespace line out of my userchrome.css code.