Opened 5 years ago

Closed 5 years ago

#1851 closed defect (fixed)

Voyager translator fails on Newberry catalog in Fx5, Zotero trunk

Reported by: ajlyon Owned by: ajlyon
Priority: major Milestone:
Component: translators Version: 2.1
Keywords: Cc: simon

Description

When run in Fx5, Zotero trunk (or MLZ), the Voyager translator doesn't work on the Newberry catalog (example: https://i-share.carli.illinois.edu/nby/cgi-bin/Pwebrecon.cgi?DB=local&v1=1&BBRecID=790862)

Error:

Translation using Library Catalog (Voyager) failed: 
         QueryInterface => function QueryInterface() {
             [native code]
         }
         message => Component is not available
         result => 2147746065
         name => NS_ERROR_NOT_AVAILABLE
         filename => chrome://zotero/content/xpcom/translation/translate_firefox.js
         lineNumber => 116
         columnNumber => 0
         initialize => function initialize() {
             [native code]
         }
         url => https://i-share.carli.illinois.edu/nby/cgi-bin/Pwebrecon.cgi?DB=local&v1=1&BBRecID=790862
         downloadAssociatedFiles => true
         automaticSnapshots => true

The translator does work for the LoC catalog and UCLA catalog in Scaffold, when clicking on the address bar icon, and in the test runner.

The only obvious difference is that the Newberry is HTTPS. The error line puts it in the Fx5DOMWrapper function.

Change History (1)

comment:1 Changed 5 years ago by simon

  • Resolution set to fixed
  • Status changed from new to closed

In [9757]:

Don't wrap HTML documents with Zotero.Translate.SandboxManager.Fx5DOMWrapper when performing XPath operations. If we encounter a problem with XML documents at some point, I'll try to figure out how to replace this with a proxy.

Fixes #1851: Voyager translator fails on Newberry catalog in Fx5, Zotero trunk

Note: See TracTickets for help on using tickets.