- // Reset the current domain name so that navigation works if third-party requests are blocked.
- nestedScrollWebView.resetCurrentDomainName();
-
- // Set navigating history so that the domain settings are applied when the new URL is loaded.
- nestedScrollWebView.setNavigatingHistory(true);
-
- // Go back.
- nestedScrollWebView.goBack();
+ // Invoke the navigate history listener in the calling activity. These commands cannot be run here because they need access to `applyDomainSettings()`.
+ pinnedMismatchListener.pinnedErrorGoBack();