zotero / scaffold

Zotero translator creation IDE
http://www.zotero.org/support/dev/scaffold
38 stars 9 forks source link

Error parsing XML when running tests #98

Closed zuphilip closed 5 years ago

zuphilip commented 5 years ago

Steps to replicate:

  1. Open Scaffold
  2. Load ScienceDirect translator in Scaffold
  3. In the Testing tab run the first tab (or any other)

This will lead to an error:

Error: error parsing XML

Zotero.Translate.SandboxManager/this.sandbox.DOMParser/wrappedObj.parseFromString@chrome://zotero/content/xpcom/translation/translate_firefox.js:396:33
parseIntermediatePDFPage/<@ScienceDirect:129:13
...

However, loading the first test case in the browser tab and the click the doWeb symbol works. Moreover, the argument for the parseFromString function in line 129 looks the same for both cases (besides from some dynamically changing numbers).

Is there a problem for DOMParser in Scaffold?

Moreover, I see that the same error occurs in reported translator errors.

dstillman commented 5 years ago

Is there a problem for DOMParser in Scaffold?

Yes. That was https://github.com/zotero/scaffold/issues/74, moved to https://github.com/zotero/zotero/issues/1502. We're in the process of testing a new sandboxing method that should fix this.

zuphilip commented 5 years ago

Ah, sorry, that is a duplicate. I just checked the open issues here before writing a new one.