One off page issues on safari
Describe the bug
A few bugs running makecode tools on safari:
makecode.com/multi:
[Error] SecurityError: IDBFactory.open() called in an invalid security context
e (main.js:1:967098)
(anonymous function) (main.js:1:967155)
[Error] TypeError: undefined is not an object (evaluating 'H.reloadEditor')
(anonymous function) (main.js:1:97845)
(anonymous function) (main.js:1:105550)
first happens each reload, second happened only first time after bump. Stuck spinning for me, works on all but microbit.
makecode.com/tutorial-tool:
[Error] Failed to load resource: the server responded with a status of 404 () (dapjs.js.map, line 0)
https://pxt.azureedge.net/commit/23c3d8c7f8a0f44f7681d1e3de648cb6b67220d2/dapjs.js.map
looks like this:

makecode.com/playground:
streamer:
[Error] Error while parsing the 'sandbox' attribute: 'allow-downloads' is an invalid sandbox flag. (streamer, line 1073)
[Error] Error while parsing the 'sandbox' attribute: 'allow-downloads' is an invalid sandbox flag. (streamer, line 1074)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (undefined, line 0) //// NOTE; this one's trying to access https://makecode.com/undefined, which seems odd?
[Error] SecurityError: IDBFactory.open() called in an invalid security context
e (main.js:1:967098)
(anonymous function) (main.js:1:967155)
[Error] NotSupportedError: The operation is not supported.
(anonymous function) — script.js:1475
forEach
(anonymous function) — script.js:1472
asyncFunctionResume
[native code]
promiseReactionJob
(anonymous function) (script.js:80)
asyncFunctionResume
(anonymous function)
promiseReactionJob
@shakao the tutorial tool / playground tool issues just seem like css bugs, so probably hard to debug without a mac / I can fix it real quick if that sounds easier? at a glance it looks like .editor-row { height: 100% } is all that's needed for both tutorial tool and playground but have to check (and not sure about the failed dapjs.map fetch)
Safari has restriction on cross-domain iframes. IMO, not supported.
From: Joey Wunderlich [email protected] Sent: Thursday, June 25, 2020 12:25 PM To: microsoft/pxt [email protected] Cc: Subscribed [email protected] Subject: [microsoft/pxt] One off page issues on safari (#7248)
Describe the bug
A few bugs running makecode tools on safari:
makecode.com/multi:
[Error] SecurityError: IDBFactory.open() called in an invalid security context
e (main.js:1:967098)
(anonymous function) (main.js:1:967155)
[Error] TypeError: undefined is not an object (evaluating 'H.reloadEditor')
(anonymous function) (main.js:1:97845)
(anonymous function) (main.js:1:105550)
first happens each reload, second happened only first time after bump. Stuck spinning for me, works on all but microbit.
makecode.com/tutorial-tool:
[Error] Failed to load resource: the server responded with a status of 404 () (dapjs.js.map, line 0)
https://pxt.azureedge.net/commit/23c3d8c7f8a0f44f7681d1e3de648cb6b67220d2/dapjs.js.map
looks like this:
makecode.com/playground:
streamer:
[Error] Error while parsing the 'sandbox' attribute: 'allow-downloads' is an invalid sandbox flag. (streamer, line 1073)
[Error] Error while parsing the 'sandbox' attribute: 'allow-downloads' is an invalid sandbox flag. (streamer, line 1074)
[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (undefined, line 0) //// NOTE; this one's trying to access https://makecode.com/undefined, which seems odd?
[Error] SecurityError: IDBFactory.open() called in an invalid security context
e (main.js:1:967098)
(anonymous function) (main.js:1:967155)
[Error] NotSupportedError: The operation is not supported.
(anonymous function) — script.js:1475
forEach
(anonymous function) — script.js:1472
asyncFunctionResume
[native code]
promiseReactionJob
(anonymous function) (script.js:80)
asyncFunctionResume
(anonymous function)
promiseReactionJob
@shakaohttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fshakao&data=02%7C01%7Cjhalleux%40microsoft.com%7Cb21bf0dfacf743e5246708d8193d859c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637287099311567064&sdata=2kmfO3IfqNAF3zsNtfkxpUdVHSUrN%2FxjbaSNVxbGtC8%3D&reserved=0 the tutorial tool / playground tool issues just seem like css bugs, so probably hard to debug without a mac / I can fix it real quick if that sounds easier? at a glance it looks like .editor-row { height: 100% } is all that's needed for both tutorial tool and playground but have to check (and not sure about the failed dapjs.map fetch)
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fmicrosoft%2Fpxt%2Fissues%2F7248&data=02%7C01%7Cjhalleux%40microsoft.com%7Cb21bf0dfacf743e5246708d8193d859c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637287099311577057&sdata=Y7RvIFQ%2F14o%2FyglR9IJPJFBbhMajlDLTY7azp6dZ0L8%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAA73QKOKSWRDBATPFC4NTMDRYOQCTANCNFSM4OIVMXZA&data=02%7C01%7Cjhalleux%40microsoft.com%7Cb21bf0dfacf743e5246708d8193d859c%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C637287099311577057&sdata=vEDITCZDsP%2FpP2wMFdIyMyXDws3VloUl4StPxkCSFhE%3D&reserved=0.