script: avoid stylesheet blocker underflow after window.stop()#42855
Open
Taym95 wants to merge 1 commit intoservo:mainfrom
Open
script: avoid stylesheet blocker underflow after window.stop()#42855Taym95 wants to merge 1 commit intoservo:mainfrom
Taym95 wants to merge 1 commit intoservo:mainfrom
Conversation
Signed-off-by: Taym Haddadi <[email protected]>
|
🔨 Triggering try run (#22416799878) for Linux (WPT) |
Collaborator
|
🤖 Opened new upstream WPT pull request (web-platform-tests/wpt#58052) with upstreamable changes. |
TimvdLippe
reviewed
Feb 25, 2026
| ) { | ||
| if self.is_script_blocking { | ||
| document.decrement_script_blocking_stylesheet_count(); | ||
| if document.get_script_blocking_stylesheets_count() > 0 { |
Contributor
There was a problem hiding this comment.
Hm, I understand why this avoids the crash, but I fear we are papering over the actual issue. I would like to take some more time to figure out what's going on here. We already have some other unfortunate checks in the loading code and I think they might be related.
Member
Author
There was a problem hiding this comment.
let me debug this and I will get back with findings
|
Test results for linux-wpt from try job (#22416799878): Flaky unexpected result (30)
Stable unexpected results that are known to be intermittent (19)
Stable unexpected results (1)
|
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Avoid stylesheet blocker underflow after window.stop()
Testing: added crash test
Fixes: #42854