Skip to content

Fix path resolution for cross-origin assets#1141

Merged
texodus merged 1 commit intomasterfrom
cross-origin-bug
Jul 29, 2020
Merged

Fix path resolution for cross-origin assets#1141
texodus merged 1 commit intomasterfrom
cross-origin-bug

Conversation

@texodus
Copy link
Member

@texodus texodus commented Jul 29, 2020

Updates Perspective's cross-origin Web Worker and Wasm loading logic to use document.currentScript. In the before times, the long-long ago, we supported a browser called Internet Explorer 8, which led to some highly questionable logic for determining the path of these assets, throwing an Error and parsing the stack trace ...

I expect this will fix issues #1139 and possibly #1128 - but I can't say for sure until 0.5.3 is released, as the specific interplay of this issue was only detected due to how unpkg.com resolves browser alias fields in package.json.

@texodus
Copy link
Member Author

texodus commented Jul 29, 2020

Thanks @sc1f for discovering the root cause for this!

@texodus texodus merged commit 55b8335 into master Jul 29, 2020
@texodus texodus deleted the cross-origin-bug branch July 29, 2020 05:40
@texodus texodus added the bug Concrete, reproducible bugs label Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Concrete, reproducible bugs

Development

Successfully merging this pull request may close these issues.

2 participants