Skip to content

Commit

Permalink
Fixes mozilla-mobile#3958 - Prevent URLbar from changing while crash …
Browse files Browse the repository at this point in the history
…reporter is visible
  • Loading branch information
boek committed Nov 29, 2018
1 parent e841d1a commit 7cf71df
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1440,6 +1440,8 @@ class BrowserFragment : WebFragment(), LifecycleObserver, View.OnClickListener,
}

override fun onUrlChanged(session: Session, url: String) {
if (crashReporterIsVisible()) return

val host = try {
URL(url).host
} catch (_: MalformedURLException) {
Expand Down

0 comments on commit 7cf71df

Please sign in to comment.