Before, WebView loaded the picture completely without problems. Until the front-end H5 development of new loading pictures, resulting in the picture suddenly can't be loaded out.
I saw the WebView print the error message from the background log.
cannot call method ' getElementsByTagName ' of NULLI wonder if the process of loading the picture is terminated because of an error here.
Analyze the reason why the error occurred here:due to the invocation of the H5 interface JS which is not standard notation, webview at the time of loading, the call to the Doom model is empty, resulting in its picture is not loaded out
Workaround:on the client webview.getsettings (). Setdomstorageenabled (True); You can ignore this problem and execute the following methodThis seems-to-allow the browser-to-store a DOM model of the page elements, so that Javascript can perform operations O n it.This allows the browser to save the Doom prototype, so JS can call this method
Android WebView picture loading does not come out background error uncaught Typeerror:cannot call method ' getElementsByTagName ' of NULL