You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/10/06 14:09:08 UTC

[GitHub] [cordova-android] breautek commented on issue #1498: Memory leak caused by window.location.reload()

breautek commented on issue #1498:
URL: https://github.com/apache/cordova-android/issues/1498#issuecomment-1270121310

   Thanks, this will probably help.
   
   ```java
   private class MyCustomWebViewClient extends WebViewClient {
           @Override
           public boolean shouldOverrideUrlLoading(WebView view, String url) {
               view.loadUrl(url);
               return true;
           }
       }
   ```
   
   This is probably what allows reloading without the prompt, and I want to say Cordova does something very similar. I've been pretty burnt out of programming lately so I'm not sure when I'll get to this. But I wonder if simply overridding and loading the url like it does is the actual case.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org