|
Prevent SharedArrayBuffer views from being used in bindings
This CL adds a check to any API that takes an ArrayBufferView. This check
ensures that isShared() returns false, so the function cannot be used with an
ArrayBufferView that is backed by a SharedArrayBuffer. Currently, all APIs
match three cases:
1. Taking an ArrayBufferView (or derived type or typedef) directly:
ImageData(UInt8ClampedArray, ...)
2. Taking a union type where one type is an ArrayBufferView:
FontFace(DOMString, (DOMString or ArrayBuffer or ArrayBufferView), ...);
3. Taking a sequence of union type where one type is an ArrayBuffeView:
Blob(sequence<(ArrayBuffer or ArrayBufferView or Blob or DOMString)>, ...);
If a new pattern is introduced, it will raise an exception in the bindings
generator. This will prevent us from accidentally allowing SharedArrayBuffer
views for these new functions.
BUG= 569681
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+677 lines, -6 lines) |
Patch |
|
M |
third_party/WebKit/LayoutTests/VirtualTestSuites
|
View
|
1
2
3
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/fast/canvas/resources/canvas-ImageData.js
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/fast/css/fontface-arraybuffer.html
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix.html
|
View
|
1
2
3
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/fast/dom/geometry-interfaces-dom-matrix-readonly.html
|
View
|
1
2
3
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/fast/files/blob-constructor.html
|
View
|
1
2
3
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/LayoutTests/fast/files/file-constructor.html
|
View
|
1
2
3
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/fast/README.txt
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/fast/canvas/canvas-ImageData-constructor-expected.txt
|
View
|
1
2
3
|
1 chunk |
+46 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/fast/css/fontface-arraybuffer-expected.txt
|
View
|
1
2
3
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/fast/files/blob-constructor-expected.txt
|
View
|
1
2
3
|
1 chunk |
+100 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/fast/files/file-constructor-expected.txt
|
View
|
1
2
3
|
1 chunk |
+112 lines, -0 lines |
0 comments
|
Download
|
|
D |
third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/fast/workers/README.txt
|
View
|
1
2
3
|
1 chunk |
+0 lines, -5 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/fast/xmlhttprequest/xmlhttprequest-send-sharedarraybuffer.html
|
View
|
1
2
3
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/LayoutTests/virtual/sharedarraybuffer/fast/xmlhttprequest/xmlhttprequest-send-sharedarraybuffer-expected.txt
|
View
|
1
2
3
|
1 chunk |
+9 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/bindings/scripts/v8_methods.py
|
View
|
1
|
2 chunks |
+28 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/bindings/scripts/v8_types.py
|
View
|
1
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl
|
View
|
1
2
3
|
1 chunk |
+24 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/bindings/tests/idls/core/TestObject.idl
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/Source/bindings/tests/results/core/ArrayBufferOrArrayBufferView.h
|
View
|
1
2
|
1 chunk |
+86 lines, -0 lines |
0 comments
|
Download
|
|
A |
third_party/WebKit/Source/bindings/tests/results/core/ArrayBufferOrArrayBufferView.cpp
|
View
|
1
2
|
1 chunk |
+108 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp
|
View
|
1
2
3
|
11 chunks |
+62 lines, -0 lines |
0 comments
|
Download
|
|
M |
third_party/WebKit/Source/core/dom/FlexibleArrayBufferView.h
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 21 (11 generated)
|