What does “enable DOM storage API” mean?

前端 未结 2 597
没有蜡笔的小新
没有蜡笔的小新 2020-12-29 03:58

I came across this Android WebView function WebSettings.setDomStorageEnabled(true) and from the name alone I can infer that it simply \"enables DOM storage\".

2条回答
  •  醉话见心
    2020-12-29 04:52

    I believe this functionality is irrelevant for websites that do not use the HTML 5 specifications, since it is part of that spec. I would imagine the main thing to look out for when enabling this API is that it would then allow ANY website that takes advantage of DOM storage to use said storage options on the device. I would imagine it is disabled by default for space savings and security.

提交回复
热议问题