Repository navigation
script: Implement destroying of documents - #41346
Conversation
|
🔨 Triggering try run (#20301065277) for Linux (WPT) |
|
Also found a potential spec issue while working on this: whatwg/html#12029 |
|
Test results for linux-wpt from try job (#20301065277): Flaky unexpected result (47)
Stable unexpected results that are known to be intermittent (47)
Stable unexpected results (188)
|
|
|
6ce9ec5 to
b72c6a8
Compare
|
🔨 Triggering try run (#20306834137) for Linux (WPT) |
|
Test results for linux-wpt from try job (#20306834137): Flaky unexpected result (29)
Stable unexpected results that are known to be intermittent (37)
Stable unexpected results (1)
|
|
|
2bba1a6 to
7d99a1d
Compare
The specification has a dedicated method for destroying documents. Parts of that method were scattered around various parts of Servo machinery. This patch consolidates these steps and follow the spec. Additionally, it now correctly unloads iframes when they are removed from a parent document. As a result, the fetch-later WPT test now passes, as it relies on the correct ordering of iframe unloading to verify the fetch-later requests are sent. Part of servo#31973 Signed-off-by: Tim van der Lippe <[email protected]>
7d99a1d to
2a2548b
Compare
|
🔨 Triggering try run (#20350393907) for Linux (WPT) |
| return; | ||
| } | ||
|
|
||
| assert!(!self.loader.borrow().events_inhibited()); |
There was a problem hiding this comment.
I think this assertion was wrong, mostly because abort() also calls self.loader.borrow_mut().inhibit_events();. I am not sure why abort() does that (it's not in the spec and the commit that introduced it is 9 years old). Still, when messages are received out-of-order and we abort and then enter this method, we should guard against that. Therefore, I think it is safe to add to the if above like with the other expressions.
|
Test results for linux-wpt from try job (#20350393907): Flaky unexpected result (30)
Stable unexpected results that are known to be intermittent (30)
|
|
✨ Try run (#20350393907) succeeded. |
The specification has a dedicated method for destroying
documents. Parts of that method were scattered around
various parts of Servo machinery.
This patch consolidates these steps and follow the spec.
Additionally, it now correctly unloads iframes when
they are removed from a parent document.
As a result, the fetch-later WPT test now passes, as
it relies on the correct ordering of iframe unloading
to verify the fetch-later requests are sent.
Part of #31973