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 7714927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T02:15:27+00:00 2026-06-01T02:15:27+00:00

In my XPI I am fetching javascript code from the user’s PC (file://) and

  • 0

In my XPI I am fetching javascript code from the user’s PC (file://) and run the js code in sandbox.
For some reason I get not well formed error on the first line of my code which is a comment:

// Yosy

My code is still running but this error is annoying and I want to fix this, any suggestions?

Code Example for running the code:

var sandbox = new Components.utils.Sandbox(safeWin); 
sandbox.window = win;
sandbox.doc = win.doc;
sandbox.__proto__ = win;
  • 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-01T02:15:29+00:00Added an answer on June 1, 2026 at 2:15 am

    “Not well-formed” is an XML processing error. Somewhere the browser attempts to interpret your JavaScript code as XML. Your code example doesn’t show it but I guess that you are using XMLHttpRequest to download your script – and by default XMLHttpRequest will attempt to parse the XML code (as it name already says). You want to tell it that you are downloading plain text that should not be parsed:

    var request = new XMLHttpRequest();
    request.open("GET", url);
    request.overrideMimeType("text/plain");
    request.send();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

How can I get the original .xpi file of an extension so that I
I have some code that is taking a long time to run(several hours) and
I downloaded an extension from firefox renamed the xpi to zip and unpacked it.
Is it possible to decode a firefox addon from the XPI binding format to
I got an ASP.NET app from someone who used to run it on his
I have installed Firefox extension by double clicking abc.xpi file. Now I want to
While running a batch file in Windows XP I have found randomly occurring error
I'm trying to create an xpi package for a firefox addon through cfx tool.
I am trying to install a firefox xpi silently through an msi installer. I
Traditionally, I would inspect the Akamai headers by installing a Firefox extension called akamaiheaders.xpi

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.