Skip to content

Page Loading

Nick Spagnola edited this page Apr 1, 2019 · 6 revisions

Docs on how a PageLoad is created (or not) when a webpage needs to be loaded.

Entrance:

Begins in background (URL Bar not loaded)

First load in the session. Listening to the UrlChanged event doesnt work here since at time of change, the UrlBar isn't instantiated

  • Previously loaded page is restored
  • Right-click link to open in new tab

Begins in foreground (URL Bar is instantiated)

Both of these listen to UrlChanged event from Webview

  • Clicking links/redirects in WebView
  • Type URL in to URLBar => Action sent from UI

Undone

  • Back/forward/reload

Two current errors:

  1. PageLoads are storing NSUrl.Host and NSUrl.Path (not the full url, basically)
  2. In the background-loaded ones, the Session is set on the URLBar in ViewDidLoad and the URLBar uses the ^ above malformed URL

Clone this wiki locally