Changeset 226322 in webkit
- Timestamp:
- Jan 2, 2018 7:38:39 AM (6 years ago)
- Location:
- trunk
- Files:
-
- 11 added
- 8 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r226321 r226322 1 2018-01-02 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 2018-01-02 Ms2ger <Ms2ger@igalia.com> 2 24 -
trunk/LayoutTests/platform/ios-simulator/TestExpectations
r226210 r226322 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
r226219 r226322 3673 3673 workers/wasm-long-compile.html [ Skip ] 3674 3674 workers/wasm-mem-post-message.html [ Skip ] 3675 wasm/iframe-postmessage.html [ Skip ] 3676 wasm/iframe-parent-postmessage.html [ Skip ] 3677 wasm/window-postmessage.html [ Skip ] 3675 3678 3676 3679 # Animated image throttling behaves differently on WK1. -
trunk/LayoutTests/workers/wasm-mem-post-message.html
r226210 r226322 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
r226320 r226322 1 2018-01-02 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. To prevent sending message to iframe 10 that is not ready, in iframe-* test we are waiting message from 11 iframe only after that we send message to it. 12 13 Tests: wasm/iframe-parent-postmessage.html 14 wasm/iframe-postmessage.html 15 wasm/window-postmessage.html 16 17 * bindings/js/SerializedScriptValue.cpp: 18 (WebCore::CloneSerializer::dumpIfTerminal): 19 * bindings/js/SerializedScriptValue.h: 20 * page/DOMWindow.cpp: 21 (WebCore::DOMWindow::postMessage): 22 1 23 == Rolled over to ChangeLog-2018-01-01 == -
trunk/Source/WebCore/bindings/js/SerializedScriptValue.cpp
r226210 r226322 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
r226210 r226322 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
r226210 r226322 928 928 929 929 Vector<RefPtr<MessagePort>> ports; 930 auto message = SerializedScriptValue::create(state, messageValue, WTFMove(transfer), ports );930 auto message = SerializedScriptValue::create(state, messageValue, WTFMove(transfer), ports, SerializationContext::WindowPostMessage); 931 931 if (message.hasException()) 932 932 return message.releaseException();
Note: See TracChangeset
for help on using the changeset viewer.