]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/commitdiff
Don't reset on-the-fly settings when navigating history in the same domain. https...
authorSoren Stoutner <soren@stoutner.com>
Sat, 27 Jul 2019 19:35:08 +0000 (12:35 -0700)
committerSoren Stoutner <soren@stoutner.com>
Sat, 27 Jul 2019 19:35:08 +0000 (12:35 -0700)
app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java

index cf19d3a18480c1963f87ecf20c0a0ca528fa40ac..a452c0b170b669765620655b41cfe782e0acb8e5 100644 (file)
@@ -1811,9 +1811,6 @@ public class MainWebViewActivity extends AppCompatActivity implements CreateBook
                     // Get the previous entry URL.
                     String previousUrl = webBackForwardList.getItemAtIndex(webBackForwardList.getCurrentIndex() - 1).getUrl();
 
-                    // Reset the current domain name so that navigation works if third-party requests are blocked.
-                    currentWebView.resetCurrentDomainName();
-
                     // Apply the domain settings.
                     applyDomainSettings(currentWebView, previousUrl, false, false);
 
@@ -1830,9 +1827,6 @@ public class MainWebViewActivity extends AppCompatActivity implements CreateBook
                     // Get the next entry URL.
                     String nextUrl = webBackForwardList.getItemAtIndex(webBackForwardList.getCurrentIndex() + 1).getUrl();
 
-                    // Reset the current domain name so that navigation works if third-party requests are blocked.
-                    currentWebView.resetCurrentDomainName();
-
                     // Apply the domain settings.
                     applyDomainSettings(currentWebView, nextUrl, false, false);
 
@@ -2861,9 +2855,6 @@ public class MainWebViewActivity extends AppCompatActivity implements CreateBook
             // Get the previous entry URL.
             String previousUrl = webBackForwardList.getItemAtIndex(webBackForwardList.getCurrentIndex() - 1).getUrl();
 
-            // Reset the current domain name so that navigation works if third-party requests are blocked.
-            currentWebView.resetCurrentDomainName();
-
             // Apply the domain settings.
             applyDomainSettings(currentWebView, previousUrl, false, false);
 
@@ -3687,9 +3678,6 @@ public class MainWebViewActivity extends AppCompatActivity implements CreateBook
 
     @Override
     public void navigateHistory(String url, int steps) {
-        // Reset the current domain name so that navigation works if third-party requests are blocked.
-        currentWebView.resetCurrentDomainName();
-
         // Apply the domain settings.
         applyDomainSettings(currentWebView, url, false, false);
 
@@ -3705,9 +3693,6 @@ public class MainWebViewActivity extends AppCompatActivity implements CreateBook
         // Get the previous entry URL.
         String previousUrl = webBackForwardList.getItemAtIndex(webBackForwardList.getCurrentIndex() - 1).getUrl();
 
-        // Reset the current domain name so that navigation works if third-party requests are blocked.
-        currentWebView.resetCurrentDomainName();
-
         // Apply the domain settings.
         applyDomainSettings(currentWebView, previousUrl, false, false);