This repository has been archived by the owner on Aug 4, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug 1587007 - P1 - Tunnel the prefs for Coop and Coep to js; r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D51420
- Loading branch information
1 parent
0f0e9f2
commit d863bde
Showing
5 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// |jit-test| skip-if: !this.sharedMemoryEnabled | ||
// Need this testing function to continue. | ||
|
||
// Check the error mssage when the prefs for COOP/COEP are both enable or not. | ||
var g = newGlobal(); | ||
var ex; | ||
const sab = new SharedArrayBuffer(); | ||
try { | ||
g.serialize(sab); | ||
} catch (e) { | ||
ex = e; | ||
} | ||
assertEq(ex.toString(), | ||
`TypeError: The SharedArrayBuffer object cannot be serialized. The ` + | ||
`Cross-Origin-Opener-Policy and Cross-Origin-Embedder-Policy HTTP ` + | ||
`headers will enable this in the future.`); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters