Rewild Your Web
web
browser
dweb
1--- original
2+++ modified
3@@ -2,6 +2,7 @@
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at https://mozilla.org/MPL/2.0/. */
6
7+use constellation_traits::{EmbeddedWebViewEventType, ScriptToConstellationMessage};
8 use dom_struct::dom_struct;
9 use embedder_traits::{EmbedderMsg, LoadStatus};
10 use html5ever::{LocalName, Prefix, local_name, ns};
11@@ -135,6 +136,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