You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 3. Remove the first script element from the list of scripts that will execute when the document has finished parsing (i.e. shift out the first entry in the list).
// FIXME: 1. Set the Document's load timing info's DOM content loaded event start time to the current high resolution time given the Document's relevant global object.
216
+
217
+
// 2. Fire an event named DOMContentLoaded at the Document object, with its bubbles attribute initialized to true.
218
+
auto content_loaded_event = DOM::Event::create(HTML::EventNames::DOMContentLoaded);
219
+
content_loaded_event->set_bubbles(true);
220
+
document->dispatch_event(content_loaded_event);
221
+
222
+
// FIXME: 3. Set the Document's load timing info's DOM content loaded event end time to the current high resolution time given the Document's relevant global object.
223
+
224
+
// FIXME: 4. Enable the client message queue of the ServiceWorkerContainer object whose associated service worker client is the Document object's relevant settings object.
225
+
226
+
// FIXME: 5. Invoke WebDriver BiDi DOM content loaded with the Document's browsing context, and a new WebDriver BiDi navigation status whose id is the Document object's navigation id, status is "pending", and url is the Document object's URL.
227
+
});
209
228
210
229
// 7. Spin the event loop until the set of scripts that will execute as soon as possible and the list of scripts that will execute in order as soon as possible are empty.
// FIXME: 6. Invoke WebDriver BiDi load complete with the Document's browsing context, and a new WebDriver BiDi navigation status whose id is the Document object's navigation id, status is "complete", and url is the Document object's URL.
255
+
256
+
// FIXME: 7. Set the Document object's navigation id to null.
257
+
258
+
// FIXME: 8. Set the Document's load timing info's load event end time to the current high resolution time given window.
259
+
260
+
// FIXME: 9. Assert: Document's page showing is false.
261
+
262
+
// FIXME: 10. Set the Document's page showing flag to true.
263
+
264
+
// FIXME: 11. Fire a page transition event named pageshow at window with false.
265
+
266
+
// 12. Completely finish loading the Document.
267
+
document->completely_finish_loading();
268
+
269
+
// FIXME: 13. Queue the navigation timing entry for the Document.
0 commit comments