java.lang.IllegalArgumentException: Private browsing is not supported in WebView.

JIRA | Shuhao Wu | 3 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Trying to create a new private browsing tab with the builtin browser for CyanogenMod will cause the following error and crash the browser: {code} E/AndroidRuntime( 5923): FATAL EXCEPTION: main E/AndroidRuntime( 5923): Process: com.android.browser, PID: 5923 E/AndroidRuntime( 5923): java.lang.IllegalArgumentException: Private browsing is not supported in WebView. E/AndroidRuntime( 5923): at com.android.webview.chromium.WebViewChromium.init(WebViewChromium.java:203) E/AndroidRuntime( 5923): at android.webkit.WebView.<init>(WebView.java:508) E/AndroidRuntime( 5923): at android.webkit.WebView.<init>(WebView.java:475) E/AndroidRuntime( 5923): at com.android.browser.BrowserWebView.<init>(BrowserWebView.java:63) E/AndroidRuntime( 5923): at com.android.browser.BrowserWebViewFactory.instantiateWebView(BrowserWebViewFactory.java:37) E/AndroidRuntime( 5923): at com.android.browser.BrowserWebViewFactory.createWebView(BrowserWebViewFactory.java:47) E/AndroidRuntime( 5923): at com.android.browser.TabControl.createNewWebView(TabControl.java:629) E/AndroidRuntime( 5923): at com.android.browser.TabControl.createNewTab(TabControl.java:201) E/AndroidRuntime( 5923): at com.android.browser.TabControl.createNewTab(TabControl.java:191) E/AndroidRuntime( 5923): at com.android.browser.Controller.createNewTab(Controller.java:2377) E/AndroidRuntime( 5923): at com.android.browser.Controller.openTab(Controller.java:2357) E/AndroidRuntime( 5923): at com.android.browser.Controller.openTab(Controller.java:2345) E/AndroidRuntime( 5923): at com.android.browser.Controller.openIncognitoTab(Controller.java:2339) E/AndroidRuntime( 5923): at com.android.browser.NavScreen.openNewTab(NavScreen.java:185) E/AndroidRuntime( 5923): at com.android.browser.NavScreen.onClick(NavScreen.java:165) E/AndroidRuntime( 5923): at android.view.View.performClick(View.java:4445) E/AndroidRuntime( 5923): at android.view.View$PerformClick.run(View.java:18429) E/AndroidRuntime( 5923): at android.os.Handler.handleCallback(Handler.java:733) E/AndroidRuntime( 5923): at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime( 5923): at android.os.Looper.loop(Looper.java:136) E/AndroidRuntime( 5923): at android.app.ActivityThread.main(ActivityThread.java:5081) E/AndroidRuntime( 5923): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 5923): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime( 5923): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781) E/AndroidRuntime( 5923): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) E/AndroidRuntime( 5923): at dalvik.system.NativeStart.main(Native Method) W/ActivityManager( 511): Force finishing activity com.android.browser/.BrowserActivity {code}

    JIRA | 3 years ago | Shuhao Wu
    java.lang.IllegalArgumentException: Private browsing is not supported in WebView.
  2. 0

    Trying to create a new private browsing tab with the builtin browser for CyanogenMod will cause the following error and crash the browser: {code} E/AndroidRuntime( 5923): FATAL EXCEPTION: main E/AndroidRuntime( 5923): Process: com.android.browser, PID: 5923 E/AndroidRuntime( 5923): java.lang.IllegalArgumentException: Private browsing is not supported in WebView. E/AndroidRuntime( 5923): at com.android.webview.chromium.WebViewChromium.init(WebViewChromium.java:203) E/AndroidRuntime( 5923): at android.webkit.WebView.<init>(WebView.java:508) E/AndroidRuntime( 5923): at android.webkit.WebView.<init>(WebView.java:475) E/AndroidRuntime( 5923): at com.android.browser.BrowserWebView.<init>(BrowserWebView.java:63) E/AndroidRuntime( 5923): at com.android.browser.BrowserWebViewFactory.instantiateWebView(BrowserWebViewFactory.java:37) E/AndroidRuntime( 5923): at com.android.browser.BrowserWebViewFactory.createWebView(BrowserWebViewFactory.java:47) E/AndroidRuntime( 5923): at com.android.browser.TabControl.createNewWebView(TabControl.java:629) E/AndroidRuntime( 5923): at com.android.browser.TabControl.createNewTab(TabControl.java:201) E/AndroidRuntime( 5923): at com.android.browser.TabControl.createNewTab(TabControl.java:191) E/AndroidRuntime( 5923): at com.android.browser.Controller.createNewTab(Controller.java:2377) E/AndroidRuntime( 5923): at com.android.browser.Controller.openTab(Controller.java:2357) E/AndroidRuntime( 5923): at com.android.browser.Controller.openTab(Controller.java:2345) E/AndroidRuntime( 5923): at com.android.browser.Controller.openIncognitoTab(Controller.java:2339) E/AndroidRuntime( 5923): at com.android.browser.NavScreen.openNewTab(NavScreen.java:185) E/AndroidRuntime( 5923): at com.android.browser.NavScreen.onClick(NavScreen.java:165) E/AndroidRuntime( 5923): at android.view.View.performClick(View.java:4445) E/AndroidRuntime( 5923): at android.view.View$PerformClick.run(View.java:18429) E/AndroidRuntime( 5923): at android.os.Handler.handleCallback(Handler.java:733) E/AndroidRuntime( 5923): at android.os.Handler.dispatchMessage(Handler.java:95) E/AndroidRuntime( 5923): at android.os.Looper.loop(Looper.java:136) E/AndroidRuntime( 5923): at android.app.ActivityThread.main(ActivityThread.java:5081) E/AndroidRuntime( 5923): at java.lang.reflect.Method.invokeNative(Native Method) E/AndroidRuntime( 5923): at java.lang.reflect.Method.invoke(Method.java:515) E/AndroidRuntime( 5923): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781) E/AndroidRuntime( 5923): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597) E/AndroidRuntime( 5923): at dalvik.system.NativeStart.main(Native Method) W/ActivityManager( 511): Force finishing activity com.android.browser/.BrowserActivity {code}

    JIRA | 3 years ago | Shuhao Wu
    java.lang.IllegalArgumentException: Private browsing is not supported in WebView.

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Private browsing is not supported in WebView.

      at com.android.webview.chromium.WebViewChromium.init()
    2. com.android.webview
      WebViewChromium.init
      1. com.android.webview.chromium.WebViewChromium.init(WebViewChromium.java:203)
      1 frame
    3. Android Platform
      WebView.<init>
      1. android.webkit.WebView.<init>(WebView.java:508)
      2. android.webkit.WebView.<init>(WebView.java:475)
      2 frames
    4. com.android.browser
      NavScreen.onClick
      1. com.android.browser.BrowserWebView.<init>(BrowserWebView.java:63)
      2. com.android.browser.BrowserWebViewFactory.instantiateWebView(BrowserWebViewFactory.java:37)
      3. com.android.browser.BrowserWebViewFactory.createWebView(BrowserWebViewFactory.java:47)
      4. com.android.browser.TabControl.createNewWebView(TabControl.java:629)
      5. com.android.browser.TabControl.createNewTab(TabControl.java:201)
      6. com.android.browser.TabControl.createNewTab(TabControl.java:191)
      7. com.android.browser.Controller.createNewTab(Controller.java:2377)
      8. com.android.browser.Controller.openTab(Controller.java:2357)
      9. com.android.browser.Controller.openTab(Controller.java:2345)
      10. com.android.browser.Controller.openIncognitoTab(Controller.java:2339)
      11. com.android.browser.NavScreen.openNewTab(NavScreen.java:185)
      12. com.android.browser.NavScreen.onClick(NavScreen.java:165)
      12 frames
    5. Android Platform
      ActivityThread.main
      1. android.view.View.performClick(View.java:4445)
      2. android.view.View$PerformClick.run(View.java:18429)
      3. android.os.Handler.handleCallback(Handler.java:733)
      4. android.os.Handler.dispatchMessage(Handler.java:95)
      5. android.os.Looper.loop(Looper.java:136)
      6. android.app.ActivityThread.main(ActivityThread.java:5081)
      6 frames
    6. Java RT
      Method.invoke
      1. java.lang.reflect.Method.invokeNative(Native Method)
      2. java.lang.reflect.Method.invoke(Method.java:515)
      2 frames
    7. Android
      ZygoteInit.main
      1. com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:781)
      2. com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
      2 frames
    8. Android Platform
      NativeStart.main
      1. dalvik.system.NativeStart.main(Native Method)
      1 frame