This site will have limited functionality while we undergo maintenance to improve your experience. If an article doesn't solve your issue and you want to ask a question, we have our support community waiting to help you at @FirefoxSupport on Twitter and/r/firefox on Reddit.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

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

  • 5 பதிலளிப்புகள்
  • 1 இந்த பிரச்சனை உள்ளது
  • 201 views
  • Last reply by Rick W

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!

Read this answer in context 👍 1

All Replies (5)

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

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

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

தீர்வு தேர்ந்தெடுக்கப்பட்டது

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!

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.