Changeset 225656 in webkit
- Timestamp:
- Dec 7, 2017 4:56:18 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 11 added
- 8 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r225653 r225656 1 2017-12-07 Oleksandr Skachkov <gskachkov@gmail.com> 2 3 WebAssembly: sending module to iframe fails 4 https://bugs.webkit.org/show_bug.cgi?id=179263 5 6 Reviewed by JF Bastien. 7 8 * platform/ios-simulator/TestExpectations: 9 * platform/win/TestExpectations: 10 * resources/wasm-builder.js: Renamed from LayoutTests/workers/wasm-resources/builder.js. 11 * wasm/iframe-parent-postmessage-expected.txt: Added. 12 * wasm/iframe-parent-postmessage.html: Added. 13 * wasm/iframe-postmessage-expected.txt: Added. 14 * wasm/iframe-postmessage.html: Added. 15 * wasm/resources/frame-parent.html: Added. 16 * wasm/resources/frame.html: Added. 17 * wasm/resources/load_wasm.js: Added. 18 (createWasmModule): 19 * wasm/window-postmessage-expected.txt: Added. 20 * wasm/window-postmessage.html: Added. 21 * workers/wasm-mem-post-message.html: 22 1 23 2017-12-07 Matt Lewis <jlewis3@apple.com> 2 24 -
trunk/LayoutTests/platform/ios-simulator/TestExpectations
r225317 r225656 53 53 http/tests/security/contentSecurityPolicy/WebAssembly-blocked-in-subframe.html [ Failure ] 54 54 http/tests/security/contentSecurityPolicy/WebAssembly-blocked.html [ Failure ] 55 wasm/iframe-postmessage.html [ Skip ] 56 wasm/iframe-parent-postmessage.html [ Skip ] 57 wasm/window-postmessage.html [ Skip ] 55 58 56 59 # WebGL tests which need triaging https://bugs.webkit.org/b/174100 -
trunk/LayoutTests/platform/win/TestExpectations
r225641 r225656 3674 3674 workers/wasm-long-compile.html [ Skip ] 3675 3675 workers/wasm-mem-post-message.html [ Skip ] 3676 wasm/iframe-postmessage.html [ Skip ] 3677 wasm/iframe-parent-postmessage.html [ Skip ] 3678 wasm/window-postmessage.html [ Skip ] 3676 3679 3677 3680 # Animated image throttling behaves differently on WK1. -
trunk/LayoutTests/workers/wasm-mem-post-message.html
r217052 r225656 1 1 <html> 2 2 <head> 3 <script src=". /wasm-resources/builder.js"></script>3 <script src="../resources/wasm-builder.js"></script> 4 4 <script src="../resources/js-test-pre.js"></script> 5 5 </head> -
trunk/Source/WebCore/ChangeLog
r225654 r225656 1 2017-12-07 Oleksandr Skachkov <gskachkov@gmail.com> 2 3 WebAssembly: sending module to iframe fails 4 https://bugs.webkit.org/show_bug.cgi?id=179263 5 6 Reviewed by JF Bastien. 7 8 Allow use WebAssembly.Module as input parameters for postMessage 9 in window and iframe object. 10 11 Tests: wasm/iframe-postmessage.html 12 wasm/window-postmessage.html 13 14 * bindings/js/SerializedScriptValue.cpp: 15 (WebCore::CloneSerializer::dumpIfTerminal): 16 * bindings/js/SerializedScriptValue.h: 17 * page/DOMWindow.cpp: 18 (WebCore::DOMWindow::postMessage): 19 1 20 2017-12-07 Joseph Pecoraro <pecoraro@apple.com> 2 21 -
trunk/Source/WebCore/bindings/js/SerializedScriptValue.cpp
r224309 r225656 1067 1067 #if ENABLE(WEBASSEMBLY) 1068 1068 if (JSWebAssemblyModule* module = jsDynamicDowncast<JSWebAssemblyModule*>(vm, obj)) { 1069 if (m_context != SerializationContext::WorkerPostMessage )1069 if (m_context != SerializationContext::WorkerPostMessage && m_context != SerializationContext::WindowPostMessage) 1070 1070 return false; 1071 1071 -
trunk/Source/WebCore/bindings/js/SerializedScriptValue.h
r223905 r225656 52 52 53 53 enum class SerializationErrorMode { NonThrowing, Throwing }; 54 enum class SerializationContext { Default, WorkerPostMessage };54 enum class SerializationContext { Default, WorkerPostMessage, WindowPostMessage }; 55 55 56 56 using ArrayBufferContentsArray = Vector<JSC::ArrayBufferContents>; -
trunk/Source/WebCore/page/DOMWindow.cpp
r225650 r225656 929 929 930 930 Vector<RefPtr<MessagePort>> ports; 931 auto message = SerializedScriptValue::create(state, messageValue, WTFMove(transfer), ports );931 auto message = SerializedScriptValue::create(state, messageValue, WTFMove(transfer), ports, SerializationContext::WindowPostMessage); 932 932 if (message.hasException()) 933 933 return message.releaseException();
Note: See TracChangeset
for help on using the changeset viewer.