Rewild Your Web
at main 23 lines 763 B view raw
1--- original 2+++ modified 3@@ -7,6 +7,7 @@ 4 use html5ever::{LocalName, Prefix, local_name, ns}; 5 use js::context::JSContext; 6 use js::rust::HandleObject; 7+use servo_constellation_traits::{EmbeddedWebViewEventType, ScriptToConstellationMessage}; 8 use style::attr::AttrValue; 9 use style::color::AbsoluteColor; 10 11@@ -136,6 +137,12 @@ 12 window.webview_id(), 13 LoadStatus::HeadParsed, 14 )); 15+ // Also notify parent iframe if this is an embedded webview. 16+ window.send_to_constellation( 17+ ScriptToConstellationMessage::EmbeddedWebViewNotification( 18+ EmbeddedWebViewEventType::LoadStatusChanged(LoadStatus::HeadParsed), 19+ ), 20+ ); 21 } 22 } 23