mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 03:09:08 +00:00
`HTMLIFrameElement::inserted()` does following: 1. Init a new navigable. This step appends a task on session history traversal queue (SHTQ) that creates a new nested history. 2. Process iframe's attributes Processing of iframe's attributes might result in synchronous navigation that fails to get active SHE if SHTQ task that creates new nested history is not yet completed. Before this change, a workaround involved forcing the processing of SHTQ, which was terrible hack because it could occur in the middle of another SHTQ task. This change removes the need for "force SHTQ processing" by ensuring that the processing of iframe's attributes is always executed after the iframe's navigable nested history has been created.
22 KiB
22 KiB