Skip to content

Commit

Permalink
Configure the route builder with the latest browsing state before han…
Browse files Browse the repository at this point in the history
…dling the deeplink (mozilla-mobile#19328)
  • Loading branch information
PARAIPAN9 authored Mar 22, 2024
1 parent ca252bd commit 0dc393e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions firefox-ios/Client/Application/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,13 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
_ scene: UIScene,
openURLContexts URLContexts: Set<UIOpenURLContext>
) {
// Configure the route with the latest browsing state.
routeBuilder.configure(
isPrivate: UserDefaults.standard.bool(
forKey: PrefsKeys.LastSessionWasPrivate
),
prefs: profile.prefs
)
guard let url = URLContexts.first?.url,
let route = routeBuilder.makeRoute(url: url) else { return }
handle(route: route)
Expand Down

0 comments on commit 0dc393e

Please sign in to comment.