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
Raw File
Secure-Close-onlyReason.htm
<!DOCTYPE html>
<html>
<head>
    <title>W3C WebSocket API - Close Secure WebSocket - Only reason</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 test = async_test("W3C WebSocket API - Create Secure WebSocket - Close the Connection - close(only reason) - INVALID_ACCESS_ERR is thrown");

        var wsocket = CreateWebSocket(true, false, false);

        wsocket.addEventListener('open', test.step_func(function (evt) {
            assert_throws("INVALID_ACCESS_ERR", function () { wsocket.close("Close with only reason") });
            test.done();
        }), true);
    </script>

</body>
</html>
back to top