 extension Browser: KeyboardHelperDelegate {
     public func keyboardHelper(_ keyboardHelper: KeyboardHelper, keyboardWillShowWithState state: KeyboardState) {
         // Only update the insets if the keyboard is being presented for this browser.
-        guard webView.hasFirstResponder else { return }
+        guard let webView = webView, webView.hasFirstResponder else { return }
 
         // When an input field is focused, the web view adds 44 to the bottom inset to make room for the bottom
         // input bar. Since this bar overlaps the browser toolbar, we don't need the additional bottom inset,

    }

    private func updatePostLoad() {
        updateBackForwardStates(webView)

        // We'll usually get main document URL updates from LocalContentBlockerDelegate,


    let view = UIView()

    fileprivate var webView: UIWebView?

    /// The main document of the latest request, which might be set before we've actually
    /// started loading the document.
