Project

Profile

Help

Bug #4116

Cannot load SEF stylesheet under NW.js

Added by Olivier XILLO 8 months ago. Updated 8 months ago.

Status:
New
Priority:
Low
Assignee:
-
Sprint/Milestone:
-
Start date:
2019-01-28
Due date:
% Done:

0%

Applies to JS Branch:
1.0
Fix Committed on JS Branch:
Fixed in JS Release:
SEF Generated with:
9.8
Company:
-
Contact person:
-
Additional contact persons:
-

Description

Using Saxon-JS 1.2.0, when trying to load a stylesheet in a NW.js app (v0.35.5) using Saxon-JS 1.2.0, the following is returned.

SaxonJS.js:17943 Uncaught XError: stylesheetLocation should be absolute by now

After digging into the code, the problem appears to come from the regex in the isAbsoluteURI function. Indeed, NW.js fetches the files from an 'chrome-extension://' URL.

Changing the regex to

/^(?:[a-z-]+:)?\/\//i

worked for me.

History

#1 Updated by Debbie Lockett 8 months ago

Thanks for reporting the bug. And for digging down to find the cause, and provide a patch!

Please register to edit this issue

Also available in: Atom PDF Tracking page