Commit 46545b22 authored by dominicc@chromium.org's avatar dominicc@chromium.org

Fix fetch-canvas-tainting.html to not mix up origins and transferables.

The signature of Window's postMessage is message, target origin,
transferables; not message, transferables, target origin.

https://html.spec.whatwg.org/multipage/comms.html#dom-window-postmessage

BUG=

Review URL: https://codereview.chromium.org/651603004

git-svn-id: svn://svn.chromium.org/blink/trunk@184230 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent ab3189fa
...@@ -34,8 +34,8 @@ async_test(function(t) { ...@@ -34,8 +34,8 @@ async_test(function(t) {
service_worker_unregister_and_done(t, SCOPE); service_worker_unregister_and_done(t, SCOPE);
}); });
frame.contentWindow.postMessage({}, frame.contentWindow.postMessage({},
[channel.port2], host_info['HTTP_ORIGIN'],
host_info['HTTP_ORIGIN']); [channel.port2]);
}); });
}) })
.catch(unreached_rejection(t)); .catch(unreached_rejection(t));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment