Bug 235434 - WPT version of css/css-cascade/parsing/layer-import-parsing.html crashes with nullptr
Summary: WPT version of css/css-cascade/parsing/layer-import-parsing.html crashes with...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Antti Koivisto
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-01-21 04:33 PST by Antti Koivisto
Modified: 2022-01-31 17:04 PST (History)
11 users (show)

See Also:


Attachments
Patch (5.88 KB, patch)
2022-01-21 04:43 PST, Antti Koivisto
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Koivisto 2022-01-21 04:33:30 PST
<script>
const style = document.createElement("style");
document.head.append(style);

style.sheet.insertRule('@import url("nonexist.css")');
style.sheet.cssRules[0];
style.sheet.deleteRule(0);
</script>
Comment 1 Antti Koivisto 2022-01-21 04:33:44 PST
rdar://87832940
Comment 2 Antti Koivisto 2022-01-21 04:43:24 PST
Created attachment 449650 [details]
Patch
Comment 3 EWS Watchlist 2022-01-21 04:45:46 PST
This patch modifies the imported WPT tests. Please ensure that any changes on the tests (not coming from a WPT import) are exported to WPT. Please see https://trac.webkit.org/wiki/WPTExportProcess
Comment 4 EWS 2022-01-21 07:09:26 PST
Committed r288362 (246266@main): <https://commits.webkit.org/246266@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 449650 [details].