Skip to content

Warn when a timer event is processed for a discarded document. - #14679

Merged
bors-servo merged 1 commit into
servo:masterfrom
jdm:nowarntimer
Dec 23, 2016
Merged

bors-servo merged 1 commit into
servo:masterfrom
jdm:nowarntimer

Conversation

@jdm

@jdm jdm commented Dec 22, 2016 •

Copy link
Copy Markdown
Member

Turn a panic into a warning for a situation that is easy to hit in web content.


This change is Reviewable

@highfive

Copy link
Copy Markdown

Heads up! This PR modifies the following files:

  • @fitzgen: components/script/script_thread.rs
  • @KiChjang: components/script/script_thread.rs

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Dec 22, 2016
Comment thread components/script/script_thread.rs Outdated
let window = match window {
Some(w) => w,
None => return warn!("ScriptThread: received fire timer msg for a pipeline not in \
this script thread. This is a bug."),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure this warning message is accurate any more. It's pretty easy for racing threads to produce this.

@asajeffrey

Copy link
Copy Markdown
Contributor

@jdm: I think the warning message could do with rewording, apart from that r=me.

@asajeffrey asajeffrey added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Dec 22, 2016
asajeffrey pushed a commit to asajeffrey/servo that referenced this pull request Dec 22, 2016
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Dec 22, 2016
@jdm

jdm commented Dec 22, 2016

Copy link
Copy Markdown
Member Author

Updated the message.

@asajeffrey

Copy link
Copy Markdown
Contributor

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 8ca387c has been approved by asajeffrey

@highfive highfive assigned asajeffrey and unassigned emilio Dec 23, 2016
@highfive highfive added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-review There is new code that needs to be reviewed. labels Dec 23, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 8ca387c with merge fb608a9...

@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - windows-gnu-dev

@highfive highfive added S-tests-failed The changes caused existing tests to fail. and removed S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. labels Dec 23, 2016
@KiChjang

Copy link
Copy Markdown
Contributor

@bors-servo retry

  • the annoying git

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 8ca387c with merge f0a74ee...

bors-servo pushed a commit that referenced this pull request Dec 23, 2016
Warn when a timer event is processed for a discarded document.

Turn a panic into a warning for a situation that is easy to hit in web content.

- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #14677
- [X] There are tests for these changes

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/14679)
<!-- Reviewable:end -->
@highfive highfive removed the S-tests-failed The changes caused existing tests to fail. label Dec 23, 2016
@highfive highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Dec 23, 2016
@bors-servo bors-servo mentioned this pull request Dec 23, 2016
@bors-servo

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ScriptThread panics when a timer fires after a pipeline has closed

6 participants