Revision 5c9b2cf251344dd18522bd3fc88742533ce54d5a authored by Rakina Zata Amni on 05 April 2018, 07:26:13 UTC, committed by Blink WPT Bot on 05 April 2018, 07:38:36 UTC
Stylesheets from link elements that previously have rel = "stylesheet" but then changed to something else should be removed/not considered anymore until the rel attribute is changed back to "stylesheet" again. Currently this works correctly for link elements in the document tree, but fails in link elements within a shadow tree because link elements in shadow tree with rel attribute != "stylesheet" are skipped from processing. Because of that, the stylesheet in the link element was never cleared and no style recalc happened. JSBin from bug: http://jsbin.com/bojunajaju/edit?html,console,output Bug: 817355 Change-Id: I57c71c79c0cc471d36eb988b8a81eef82c33548a Reviewed-on: https://chromium-review.googlesource.com/995116 Commit-Queue: Rakina Zata Amni <rakina@chromium.org> Reviewed-by: Hayato Ito <hayato@chromium.org> Cr-Commit-Position: refs/heads/master@{#548357}
1 parent c6247d2
Secure-Send-binary-arraybufferview-int32.htm
<!DOCTYPE html>
<html>
<head>
<title>W3C WebSocket API - Send binary data - ArrayBufferView - Int32Array - WebSocket</title>
<script type="text/javascript" src="/resources/testharness.js"></script>
<script type="text/javascript" src="/resources/testharnessreport.js"></script>
<script type="text/javascript" src="websocket.sub.js"></script>
</head>
<body>
<div id="log"></div>
<script type="text/javascript">
var testOpen = async_test("W3C WebSocket API - Send binary data on a WebSocket - ArrayBufferView - Int32Array - Connection should be opened");
var testMessage = async_test("W3C WebSocket API - Send binary data on a WebSocket - ArrayBufferView - Int32Array - Message should be received");
var testClose = async_test("W3C WebSocket API - Send binary data on a WebSocket - ArrayBufferView - Int32Array - Connection should be closed");
var data = "";
var datasize = 8;
var view;
var wsocket = CreateWebSocket(true, false, false);
var isOpenCalled = false;
wsocket.addEventListener('open', testOpen.step_func(function (evt) {
wsocket.binaryType = "arraybuffer";
data = new ArrayBuffer(datasize);
view = new Int32Array(data);
for(var i = 0; i < 2; i++) {
view[i] = i;
}
wsocket.send(view);
isOpenCalled = true;
testOpen.done();
}), true);
wsocket.addEventListener('message', testMessage.step_func(function (evt) {
var resultView = new Int32Array(evt.data);
for(var i = 0; i < resultView.length; i++) {
assert_equals(resultView[i], view[i], "ArrayBufferView returned is the same");
}
wsocket.close();
testMessage.done();
}), true);
wsocket.addEventListener('close', testClose.step_func(function (evt) {
assert_true(isOpenCalled, "WebSocket connection should be open");
assert_equals(evt.wasClean, true, "wasClean should be true");
testClose.done();
}), true);
</script>
</body>
</html>
Computing file changes ...