Bug 279167

Summary: [render-blocking] Render blocking for <link> should not match elements that are on a 'stack of open elements' for the parser
Product: WebKit Reporter: Matt Woodrow <mattwoodrow>
Component: DOMAssignee: Matt Woodrow <mattwoodrow>
Status: RESOLVED FIXED    
Severity: Normal CC: webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

Matt Woodrow
Reported 2024-09-04 20:46:09 PDT
https://html.spec.whatwg.org/multipage/links.html#process-internal-resource-link Elements that are still having their children parsed should not match <link rel=expect>. The spec also expects us to reprocess all <link rel=expect> elements each time we pop an element off the stack, which seems slow. The matching of expect elements also depends on the document ready state. It looks like https://html.spec.whatwg.org/multipage/parsing.html#the-end:update-the-current-document-readiness expect the ready state to change before the final elements are popped, so that the reprocessing on pop would clear all remaining links. Our code appears to have already popped all elements before changing the ready state, so this won't work as-is.
Attachments
Radar WebKit Bug Importer
Comment 1 2024-09-11 20:47:11 PDT
Matt Woodrow
Comment 2 2025-01-09 17:46:02 PST
EWS
Comment 3 2025-01-16 11:56:16 PST
Committed 289020@main (fb62715ca67c): <https://commits.webkit.org/289020@main> Reviewed commits have been landed. Closing PR #38821 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.