mirror of
https://github.com/servo/servo
synced 2026-04-27 18:07:52 +02:00
Fix document.write check for activity.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user