Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8564357
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:10:55+00:00 2026-06-11T17:10:55+00:00

I have an XULRunner app. It is mostly working however I have a problem.

  • 0

I have an XULRunner app. It is mostly working however I have a problem. There are some reports in the app implemented as HTML forms. One of the options for the user is to output into CSV format. In Firefox, the user is asked to save the file or open it (in Excel or whatever). In the XULRunner app I get a popup containing:

XML Parsing Error: undefined entity
Location: chrome://mozapps/content/downloads/unknownContentType.xul
Line Number 30, Column 18: &intro.label;

This seems to be related to branding as discussed here:

I think I have followed the instructions. They are a little vague in places. Here is what I have:

chrome/chrome.manifest contains:

locale branding en-US chrome/locale/branding/
content branding chrome/branding/

chrome/branding/ contains these files: about.png, icon48.png, icon64.png

chrome/locale/branding/brand.dtd contains:

<!ENTITY  brandShortName        "ArcaMax EC">
<!ENTITY  brandFullName         "ArcaMax EC">
<!ENTITY  vendorShortName       "ArcaMax">
<!ENTITY  trademarkInfo.part1   " ">

chrome/locale/branding/brand.properties contains:

brandShortName=EC4
brandFullName=ArcaMax EC4
vendorShortName=ArcaMax

homePageSingleStartMain=Firefox Start, a fast home page with built-in search
homePageImport=Import your home page from %S

homePageMigrationPageTitle=Home Page Selection
homePageMigrationDescription=Please select the home page you wish to use:

syncBrandShortName=Sync

chrome/locale/branding/unknownContentType.dtd contains:

<!ENTITY  intro.label                 "You have chosen to open">
<!ENTITY  from.label                  "from:">
<!ENTITY  actionQuestion.label        "What should &brandShortName; do with this file?">

<!ENTITY  openWith.label              "Open with">
<!ENTITY  openWith.accesskey          "o">
<!ENTITY  other.label                 "Other…">

<!ENTITY  saveFile.label              "Save File">
<!ENTITY  saveFile.accesskey          "s">

<!ENTITY  rememberChoice.label        "Do this automatically for files like this from now on.">
<!ENTITY  rememberChoice.accesskey    "a">

<!ENTITY  whichIsA.label              "which is a:">

<!ENTITY  chooseHandlerMac.label      "Choose…">
<!ENTITY  chooseHandlerMac.accesskey  "C">
<!ENTITY  chooseHandler.label         "Browse…">
<!ENTITY  chooseHandler.accesskey     "B">

<!ENTITY  unknownPromptText.label     "Would you like to save this file?">

Adding chrome/locale/branding/unknownContentType.dtd was a guess on my part. I found the file in the firefox source tree.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T17:10:56+00:00Added an answer on June 11, 2026 at 5:10 pm

    It looks like your guess was correct and the issue is related to branding. unknownContentType.xul loads three locale files:

    <!DOCTYPE dialog [
      <!ENTITY % brandDTD SYSTEM "chrome://branding/locale/brand.dtd" >
      %brandDTD;
      <!ENTITY % uctDTD SYSTEM "chrome://mozapps/locale/downloads/unknownContentType.dtd" >
      %uctDTD;
      <!ENTITY % scDTD SYSTEM "chrome://mozapps/locale/downloads/settingsChange.dtd" >
      %scDTD;
    ]>
    

    brand.dtd is the only one that isn’t part of XULRunner, it has to be supplied by the application. However, loading it apparently fails and prevents the other DTD files from loading as well (XULRunner complains about the very first entity in the dialog).

    Now you don’t need to put unknownContentType.dtd into your extension, it is already part of XULRunner. Other than that you’ve done everything correctly. However, the paths in chrome.manifest should be relative to the manifest, not to the application root. So the path probably should be locale/branding/ rather than chrome/locale/branding/. You should open chrome://branding/locale/brand.dtd in your application to verify that it has been set up correctly.

    The other common issue: DTD files have to be saved in UTF-8 format without a byte order mark (BOM). If your editor saves a BOM by default then you need to reconfigure it. XULRunner will consider files starting with a BOM invalid and ignore them.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

suppose, we have a Mozilla Prism like XULRunner app. There is a XUL window
I am writing a custom xulrunner-based app and I wish to have some files
Have deployed numerous report parts which reference the same view however one of them
have a problem. At first look at this HTML <div id=map style=background-image: url(map.png); width:
I have an Xulrunner app that loads fullscreen without any controls and loads a
We have an xulrunner application that is running as a background html to pdf
Have some code: using (var ctx = new testDataContext()) { var options = new
Have some runtime defined schedule for one week, for example: <schedule> <s day=Monday, time=1:00:00></s>
I have a xulrunner application that uses browser component to display HTML content. For
We have a Java desktop app with an embedded browser, now using XULRunner (Firefox

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.