Richard Pospesel pushed to branch android-components-102.0.14-11.5-1 at The Tor Project / Applications / android-components

Commits:

2 changed files:

Changes:

  • components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/GeckoEngineSession.kt
    ... ... @@ -588,7 +588,7 @@ class GeckoEngineSession(
    588 588
                     )?.apply {
    
    589 589
                         when (this) {
    
    590 590
                             is InterceptionResponse.Content -> loadData(data, mimeType, encoding)
    
    591
    -                        is InterceptionResponse.Url -> loadUrl(url)
    
    591
    +                        is InterceptionResponse.Url -> loadUrl(url, flags = LoadUrlFlags.external())
    
    592 592
                             is InterceptionResponse.AppIntent -> {
    
    593 593
                                 notifyObservers {
    
    594 594
                                     onLaunchIntentRequest(url = url, appIntent = appIntent)
    

  • components/browser/engine-gecko/src/test/java/mozilla/components/browser/engine/gecko/GeckoEngineSessionTest.kt
    ... ... @@ -1664,7 +1664,7 @@ class GeckoEngineSessionTest {
    1664 1664
     
    
    1665 1665
             assertEquals("sample:about", interceptorCalledWithUri)
    
    1666 1666
             verify(geckoSession).load(
    
    1667
    -            GeckoSession.Loader().uri("https://mozilla.org")
    
    1667
    +            GeckoSession.Loader().uri("https://mozilla.org").flags(LoadUrlFlags.EXTERNAL),
    
    1668 1668
             )
    
    1669 1669
         }
    
    1670 1670