Skip to content

Commit

Permalink
Bugfix FXIOS-8558 [v125] Deeplink white screen, page won't load - Par…
Browse files Browse the repository at this point in the history
…t 2 (backport #19025) (#19074)

(cherry picked from commit 7465db4)

Co-authored-by: Nishant Bhasin <[email protected]>
  • Loading branch information
mergify[bot] and nbhasin2 authored Mar 7, 2024
1 parent 3258af2 commit c6119af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2179,6 +2179,7 @@ extension BrowserViewController {
// MARK: - LegacyTabDelegate
extension BrowserViewController: LegacyTabDelegate {
func tab(_ tab: Tab, didCreateWebView webView: WKWebView) {
webView.frame = contentContainer.frame
// Observers that live as long as the tab. Make sure these are all cleared in willDeleteWebView below!
KVOs.forEach {
webView.addObserver(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ class WebviewViewController: UIViewController, ContentContainable, Screenshotabl
view.addSubview(webView)
webView.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([
view.topAnchor.constraint(equalTo: webView.topAnchor),
view.leadingAnchor.constraint(equalTo: webView.leadingAnchor),
view.bottomAnchor.constraint(equalTo: webView.bottomAnchor),
view.trailingAnchor.constraint(equalTo: webView.trailingAnchor)
webView.topAnchor.constraint(equalTo: view.topAnchor),
webView.leadingAnchor.constraint(equalTo: view.leadingAnchor),
webView.bottomAnchor.constraint(equalTo: view.bottomAnchor),
webView.trailingAnchor.constraint(equalTo: view.trailingAnchor)
])
}

Expand Down

0 comments on commit c6119af

Please sign in to comment.