Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

moz-hocr-edit not working in recent Firefox #1

Open
414n opened this issue Mar 25, 2015 · 8 comments
Open

moz-hocr-edit not working in recent Firefox #1

414n opened this issue Mar 25, 2015 · 8 comments

Comments

@414n
Copy link

414n commented Mar 25, 2015

Hi,

I just installed moz-hocr-edit on Firefox 36.0.1 and I can't get it to work.
When i open up a local or a remote hOCR file (like the Concerning Beards example) and click on "Edit this hOCR document" all I get is a blank page telling me that Firefox doesn't know how to handle "hocr-edit:"-type URLs:
Firefox 36 error
Seems like the hocr-edit URL type was not correctly registered upon installation.

@garrison
Copy link
Owner

Thank you for the report. I will try to look at this eventually but probably cannot make it a priority. Pull requests are of course welcome :)

@414n
Copy link
Author

414n commented Mar 29, 2015

Will try to look into it myself too, although I'm inexperienced in Firefox Addons.
What I see in the debugger when trying to load the aforementioned "Concerning Beards" hOCR page is this:

[Exception... "Component returned failure code: 0x804b0012 (NS_ERROR_UNKNOWN_PROTOCOL) [nsIWebNavigation.loadURI]"  nsresult: "0x804b0012 (NS_ERROR_UNKNOWN_PROTOCOL)"  location: "JS frame :: chrome://browser/content/browser.js :: _loadURIWithFlags :: line 10196"  data: no] tabbrowser.xml:1717:0
TypeError: document.getElementById(...) is null overlay.js:7333:4

I guess that the registration of the new "hocr-edit:" protocol (which lives in the handler.js file, if I'm not mistaken) went wrong upon installation, maybe because of API changes.

@garrison
Copy link
Owner

This bug was also reported on the mailing list.

@garrison
Copy link
Owner

Also related to a recent negative review on addons.mozilla.org.

@garrison
Copy link
Owner

Looks like Mozilla is soon going to significantly change the way add-ons work. I haven't read the full announcement yet, but it may mean the changes to keep the add-on working will be a bit more involved.

@garrison
Copy link
Owner

I have decided to quit maintaining moz-hocr-edit, and thus have no intention of ever fixing this issue myself. If anybody wants to fix this issue and would be interested in maintaining it in the future, please feel free to do so.

@denniz-j
Copy link

I'm an end-user not a programmer.

As a work-around, until someone takes up this project, I...

  1. downloaded an old copy of Firefox e.g. https://ftp.mozilla.org/pub/firefox/releases/10.0.12esr/ and
  2. packaged the following folders and files from the moz-hocr-edit github repository into a .zip file,
  • chrome
  • components
  • defaults
  • chrome.manifest
  • install.rdf
  1. which I then renamed to a .xpi file, and then
  2. installed into the older version of Firefox, and
  3. 'it seems to work OK so far' (tm).

Thanks to @garrison for all the work he put into this, it's still going, in a manner of speaking.

@garrison
Copy link
Owner

@denniz-j Thank you for the post! I would of course be interested to hear about your use of moz-hocr-edit and how it is working for you.

Also, if it would be useful to people, it would be simple to host a xpi file which people can download instead of needing to construct it. (The make-dist script should do this automatically, but I haven't tried running it in recent years.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants