localStorage and 'file:' protocol not persistent, SQLite gives SECURITY_ERR

前端 未结 2 1308
渐次进展
渐次进展 2020-12-11 22:56

Introduction

I work with RapidWeaver — Mac OS X CMS application — and it uses no server environment. It has an editor and a preview mode. The preview mode is a Web

2条回答
  •  醉话见心
    2020-12-11 23:27

    localStorage is a html5 mechanism to give scripts a bit more space than cookies. Safari supports it: https://developer.apple.com/library/archive/documentation/iPhone/Conceptual/SafariJSDatabaseGuide/Name-ValueStorage/Name-ValueStorage.html

    I don't know offhand what, if any, path restrictions it should have for file:/// based apps.

    Edit: looking into the path restrictions further, I see that what you got should work with Safari, FF recently fixed a bug that would keep it from working there: https://bugzilla.mozilla.org/show%5Fbug.cgi?id=507361

提交回复
热议问题