mirror of
https://github.com/servo/servo
synced 2026-05-01 20:07:22 +02:00
Fire load event for external stylesheets
Do not load stylesheets with the wrong Content-Type Fixes #11912, #11910
This commit is contained in:
committed by
Mike MacDonald
parent
7a7bdf51ad
commit
aed761509b
@@ -10,12 +10,9 @@ var t = async_test("Check if the stylesheet's load event blocks the document loa
|
||||
document.getElementById('style_test').onload = t.step_func(function() {
|
||||
saw_link_onload = true;
|
||||
});
|
||||
window.addEventListener('load', function() {
|
||||
t.step_func(function() {
|
||||
assert_true(saw_link_onload);
|
||||
});
|
||||
t.done();
|
||||
}, false);
|
||||
window.addEventListener('load', t.step_func_done(function() {
|
||||
assert_true(saw_link_onload);
|
||||
}));
|
||||
</script>
|
||||
</head>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user