Preload doesn't load in sandboxed render if preload path contains special chars (#12037)
* Adding missing headers * adding ut * Removing the file path exists check * fixing test * exposing window.require in UT
This commit is contained in:
parent
69e7afee26
commit
2f4fd3324b
3 changed files with 28 additions and 4 deletions
6
spec/fixtures/module/preload-sandboxæø åü.js
vendored
Normal file
6
spec/fixtures/module/preload-sandboxæø åü.js
vendored
Normal file
|
@ -0,0 +1,6 @@
|
|||
(function () {
|
||||
window.require = require
|
||||
if (location.protocol === 'file:') {
|
||||
window.test = 'preload'
|
||||
}
|
||||
})()
|
Loading…
Add table
Add a link
Reference in a new issue