mirror of
https://github.com/servo/servo.git
synced 2025-07-25 08:10:21 +01:00
Fix document.write check for activity.
This commit is contained in:
parent
a43c842099
commit
ca9cee084e
6 changed files with 48 additions and 2 deletions
|
@ -1304,6 +1304,7 @@ impl ScriptThread {
|
|||
|
||||
/// Handles activity change message
|
||||
fn handle_set_document_activity_msg(&self, id: PipelineId, activity: DocumentActivity) {
|
||||
debug!("Setting activity of {} to be {:?}.", id, activity);
|
||||
let document = self.documents.borrow().find_document(id);
|
||||
if let Some(document) = document {
|
||||
document.set_activity(activity);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue