Fix panic in abort-block-bfcache.window.js (#33173)

* Fix panic in abort-block-bfcache.window.js

Signed-off-by: Taym <haddadi.taym@gmail.com>

* Update test expectation

Signed-off-by: Taym <haddadi.taym@gmail.com>

---------

Signed-off-by: Taym <haddadi.taym@gmail.com>
This commit is contained in:
Taym Haddadi 2024-08-25 21:37:44 +02:00 committed by GitHub
parent 88d8770214
commit a3f5a8482d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View file

@ -313,7 +313,7 @@ impl ServoParser {
script.execute(result);
self.script_nesting_level.set(script_nesting_level);
if !self.suspended.get() {
if !self.suspended.get() && !self.aborted.get() {
self.parse_sync();
}
}

View file

@ -1,2 +1,3 @@
[abort-block-bfcache.window.html]
expected: CRASH
[aborting a parser should block bfcache.]
expected: FAIL