1# Web子系统JS API变更 2 3OpenHarmony 3.2 Beta1版本相较于OpenHarmony 3.1 Release版本,Web子系统的API变更如下: 4 5## 接口变更 6 7| 模块名 | 类名 | 函数 | 变更类型 | 8|---|---|---|---| 9| web | WebAttribute | onShowFileSelector(callback: (event?: { result: FileSelectorResult, fileSelector: FileSelectorParam }) => boolean): WebAttribute; | 新增 | 10| web | WebAttribute | webDebuggingAccess(webDebuggingAccess: boolean): WebAttribute; | 新增 | 11| web | WebAttribute | fileFromUrlAccess(fileFromUrlAccess: boolean): WebAttribute; | 新增 | 12| web | WebAttribute | onRenderExited(callback: (event?: { renderExitReason: RenderExitReason }) => void): WebAttribute; | 新增 | 13| web | WebController | getCookieManager() : WebCookie | 新增 | 14| web | WebCookie | deleteExpiredCookie(): void; | 新增 | 15| web | WebCookie | deleteSessionCookie(): void; | 新增 | 16| web | WebCookie | deleteEntireCookie(): void; | 新增 | 17| web | WebCookie | existCookie(): boolean; | 新增 | 18| web | WebCookie | getCookie(url: string): string; | 新增 | 19| web | WebCookie | saveCookieSync(): boolean; | 新增 | 20| web | WebCookie | putAcceptFileURICookieEnabled(accept: boolean): void; | 新增 | 21| web | WebCookie | putAcceptThirdPartyCookieEnabled(accept: boolean): void; | 新增 | 22| web | WebCookie | putAcceptCookieEnabled(accept: boolean): void; | 新增 | 23| web | WebCookie | isFileURICookieAllowed(): boolean; | 新增 | 24| web | WebCookie | isThirdPartyCookieAllowed(): boolean; | 新增 | 25| web | WebCookie | isCookieAllowed(): boolean; | 新增 | 26| web | WebCookie | setCookie(url: string, value: string): boolean; | 新增 | 27| web | FileSelectorResult | handleFileList(fileList: Array\<string>): void; | 新增 | 28| web | FileSelectorResult | constructor(); | 新增 | 29| web | FileSelectorParam | isCapture(): boolean; | 新增 | 30| web | FileSelectorParam | getAcceptType(): Array\<string>; | 新增 | 31| web | FileSelectorParam | getMode(): FileSelectorMode; | 新增 | 32| web | FileSelectorParam | getTitle(): string; | 新增 | 33| web | FileSelectorParam | constructor(); | 新增 | 34| web | FileSelectorMode | FileSaveMode | 新增 | 35| web | FileSelectorMode | FileOpenFolderMode | 新增 | 36| web | FileSelectorMode | FileOpenMultipleMode | 新增 | 37| web | FileSelectorMode | FileOpenMode | 新增 | 38| web | RenderExitReason | ProcessExitUnknown | 新增 | 39| web | RenderExitReason | ProcessOom | 新增 | 40| web | RenderExitReason | ProcessCrashed | 新增 | 41| web | RenderExitReason | ProcessWasKilled | 新增 | 42| web | RenderExitReason | ProcessAbnormalTermination | 新增 | 43| web | CacheMode | Default | 新增 | 44| web | WebAttribute | onFileSelectorShow(callback: (event?: { callback: Function, fileSelector: object }) => void): WebAttribute; | 废弃 | 45| web | WebAttribute | onSslErrorReceive(callback: (event?: { handler: Function, error: object }) => void): WebAttribute; | 废弃 | 46| web | WebAttribute | onRenderExited(callback: (event?: { detail: object }) => boolean): WebAttribute; | 废弃 | 47| web | WebCookie | saveCookie(); | 废弃 | 48| web | WebCookie | setCookie(); | 废弃 |