@@ -144,7 +144,6 @@ class BrowserViewController: UIViewController {
144
144
let downloadQueue = DownloadQueue ( )
145
145
var isCmdClickForNewTab = false
146
146
147
-
148
147
init ( profile: Profile , tabManager: TabManager ) {
149
148
self . profile = profile
150
149
self . tabManager = tabManager
@@ -1308,7 +1307,7 @@ class BrowserViewController: UIViewController {
1308
1307
case url
1309
1308
case finishedNavigation
1310
1309
}
1311
-
1310
+
1312
1311
func navigateInTab( tab: Tab , to navigation: WKNavigation ? = nil , webViewStatus: WebViewUpdateStatus ) {
1313
1312
tabManager. expireSnackbars ( )
1314
1313
@@ -1330,7 +1329,7 @@ class BrowserViewController: UIViewController {
1330
1329
1331
1330
TabEvent . post ( . didChangeURL( url) , for: tab)
1332
1331
}
1333
-
1332
+
1334
1333
// Represents WebView observation or delegate update that called this function
1335
1334
switch webViewStatus {
1336
1335
case . title, . url, . finishedNavigation:
@@ -1341,7 +1340,7 @@ class BrowserViewController: UIViewController {
1341
1340
// This is kind of a hacky fix for Bug 1476637 to prevent webpages from focusing the
1342
1341
// touch-screen keyboard from the background even though they shouldn't be able to.
1343
1342
webView. resignFirstResponder ( )
1344
-
1343
+
1345
1344
// We need a better way of identifying when webviews are finished rendering
1346
1345
// There are cases in which the page will still show a loading animation or nothing when the screenshot is being taken,
1347
1346
// depending on internet connection
@@ -2211,13 +2210,13 @@ extension BrowserViewController: ContextMenuHelperDelegate {
2211
2210
self . displayedPopoverController = nil
2212
2211
}
2213
2212
}
2214
-
2213
+
2215
2214
//Support for CMD+ Click on link to open in a new tab
2216
2215
override func pressesBegan( _ presses: Set < UIPress > , with event: UIPressesEvent ? ) {
2217
2216
guard let key = presses. first? . key, ( key. keyCode == . keyboardLeftGUI || key. keyCode == . keyboardRightGUI) else { return } //GUI buttons = CMD buttons on ipad/mac
2218
2217
self . isCmdClickForNewTab = true
2219
2218
}
2220
-
2219
+
2221
2220
override func pressesEnded( _ presses: Set < UIPress > , with event: UIPressesEvent ? ) {
2222
2221
guard let key = presses. first? . key, ( key. keyCode == . keyboardLeftGUI || key. keyCode == . keyboardRightGUI) else { return }
2223
2222
self . isCmdClickForNewTab = false
0 commit comments