forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The SharedArrayBuffer constructor is not exposed anymore in non cross-origin-isolated contexts. Trying to use it throws, instead of raising a warning. For creating a SharedArrayBuffer and testing the devtools issue, we need to use the trick from whatwg/html#5380. Bug: 1194226 Change-Id: I622e5857af4de89e726aadc3731bc5a0df0e91f2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2843329 Commit-Queue: Antonio Sartori <[email protected]> Reviewed-by: Sigurd Schneider <[email protected]> Cr-Commit-Position: refs/heads/master@{#875074}
- Loading branch information
Showing
7 changed files
with
82 additions
and
7 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
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
37 changes: 37 additions & 0 deletions
37
...buffer_on_desktop/http/tests/inspector-protocol/issues/sab-postMessage-issue-expected.txt
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,37 @@ | ||
Verifies that post-messaging a SAB causes an issue. | ||
|
||
Creation issue: { | ||
issue : { | ||
code : SharedArrayBufferIssue | ||
details : { | ||
sharedArrayBufferIssueDetails : { | ||
isWarning : true | ||
sourceCodeLocation : { | ||
columnNumber : 18 | ||
lineNumber : 0 | ||
scriptId : <string> | ||
url : | ||
} | ||
type : CreationIssue | ||
} | ||
} | ||
} | ||
} | ||
Transfer issue: { | ||
issue : { | ||
code : SharedArrayBufferIssue | ||
details : { | ||
sharedArrayBufferIssueDetails : { | ||
isWarning : true | ||
sourceCodeLocation : { | ||
columnNumber : 1 | ||
lineNumber : 0 | ||
scriptId : <string> | ||
url : | ||
} | ||
type : TransferIssue | ||
} | ||
} | ||
} | ||
} | ||
|
37 changes: 37 additions & 0 deletions
37
...onous_html_parser/http/tests/inspector-protocol/issues/sab-postMessage-issue-expected.txt
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,37 @@ | ||
Verifies that post-messaging a SAB causes an issue. | ||
|
||
Creation issue: { | ||
issue : { | ||
code : SharedArrayBufferIssue | ||
details : { | ||
sharedArrayBufferIssueDetails : { | ||
isWarning : true | ||
sourceCodeLocation : { | ||
columnNumber : 18 | ||
lineNumber : 0 | ||
scriptId : <string> | ||
url : | ||
} | ||
type : CreationIssue | ||
} | ||
} | ||
} | ||
} | ||
Transfer issue: { | ||
issue : { | ||
code : SharedArrayBufferIssue | ||
details : { | ||
sharedArrayBufferIssueDetails : { | ||
isWarning : true | ||
sourceCodeLocation : { | ||
columnNumber : 1 | ||
lineNumber : 0 | ||
scriptId : <string> | ||
url : | ||
} | ||
type : TransferIssue | ||
} | ||
} | ||
} | ||
} | ||
|