]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/blobdiff - app/src/main/java/com/stoutner/privacybrowser/views/NestedScrollWebView.kt
Add WebView DevTools to the navigation menu. https://redmine.stoutner.com/issues/893
[PrivacyBrowserAndroid.git] / app / src / main / java / com / stoutner / privacybrowser / views / NestedScrollWebView.kt
index 4011f5a5aba4fe689a628fbd8523afa306e634f6..ad34be8327baa58234dc08ae8735554eec6ee5f2 100644 (file)
@@ -137,7 +137,6 @@ class NestedScrollWebView @JvmOverloads constructor(context: Context, attributeS
     private var ultraListBlockedRequests = 0
     private var ultraPrivacyBlockedRequests = 0
     private var thirdPartyBlockedRequests = 0
-    private var xRequestedWithHeader = mutableMapOf<String, String>()
 
     init {
         // Enable nested scrolling by default.
@@ -296,24 +295,6 @@ class NestedScrollWebView @JvmOverloads constructor(context: Context, attributeS
     }
 
 
-    // X-Requested-With header.
-    fun getXRequestedWithHeader() : MutableMap<String, String> {
-        // Return the X-Requested-With header.
-        return xRequestedWithHeader
-    }
-
-    fun setXRequestedWithHeader() {
-        // Set the X-Requested-With header to use a null value.
-        if (xRequestedWithHeader.isEmpty())
-            xRequestedWithHeader["X-Requested-With"] = ""
-    }
-
-    fun resetXRequestedWithHeader() {
-        // Clear the map, which resets the X-Requested-With header to use the default value of the application ID (com.stoutner.privacybrowser.standard).
-        xRequestedWithHeader.clear()
-    }
-
-
     // Publicly expose the scroll ranges.
     fun getHorizontalScrollRange(): Int {
         // Return the horizontal scroll range.