• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# JS API Changes of the Web Subsystem
2
3The table below lists the APIs changes of the web subsystem in OpenHarmony 3.2 Beta1 over OpenHarmony 3.1 Release.
4
5## API Changes
6
7| Module| Class| Function| Change Type|
8|---|---|---|---|
9| web | WebAttribute | onShowFileSelector(callback: (event?: { result: FileSelectorResult, fileSelector: FileSelectorParam }) => boolean): WebAttribute; | Added|
10| web | WebAttribute | webDebuggingAccess(webDebuggingAccess: boolean): WebAttribute; | Added|
11| web | WebAttribute | fileFromUrlAccess(fileFromUrlAccess: boolean): WebAttribute; | Added|
12| web | WebAttribute | onRenderExited(callback: (event?: { renderExitReason: RenderExitReason }) => void): WebAttribute; | Added|
13| web | WebController | getCookieManager() : WebCookie | Added|
14| web | WebCookie | deleteExpiredCookie(): void; | Added|
15| web | WebCookie | deleteSessionCookie(): void; | Added|
16| web | WebCookie | deleteEntireCookie(): void; | Added|
17| web | WebCookie | existCookie(): boolean; | Added|
18| web | WebCookie | getCookie(url: string): string; | Added|
19| web | WebCookie | saveCookieSync(): boolean; | Added|
20| web | WebCookie | putAcceptFileURICookieEnabled(accept: boolean): void; | Added|
21| web | WebCookie | putAcceptThirdPartyCookieEnabled(accept: boolean): void; | Added|
22| web | WebCookie | putAcceptCookieEnabled(accept: boolean): void; | Added|
23| web | WebCookie | isFileURICookieAllowed(): boolean; | Added|
24| web | WebCookie | isThirdPartyCookieAllowed(): boolean; | Added|
25| web | WebCookie | isCookieAllowed(): boolean; | Added|
26| web | WebCookie | setCookie(url: string, value: string): boolean; | Added|
27| web | FileSelectorResult | handleFileList(fileList: Array\<string>): void; | Added|
28| web | FileSelectorResult | constructor(); | Added|
29| web | FileSelectorParam | isCapture(): boolean; | Added|
30| web | FileSelectorParam | getAcceptType(): Array\<string>; | Added|
31| web | FileSelectorParam | getMode(): FileSelectorMode; | Added|
32| web | FileSelectorParam | getTitle(): string; | Added|
33| web | FileSelectorParam | constructor(); | Added|
34| web | FileSelectorMode | FileSaveMode | Added|
35| web | FileSelectorMode | FileOpenFolderMode | Added|
36| web | FileSelectorMode | FileOpenMultipleMode | Added|
37| web | FileSelectorMode | FileOpenMode | Added|
38| web | RenderExitReason | ProcessExitUnknown | Added|
39| web | RenderExitReason | ProcessOom | Added|
40| web | RenderExitReason | ProcessCrashed | Added|
41| web | RenderExitReason | ProcessWasKilled | Added|
42| web | RenderExitReason | ProcessAbnormalTermination | Added|
43| web | CacheMode | Default | Added|
44| web | WebAttribute | onFileSelectorShow(callback: (event?: { callback: Function, fileSelector: object }) => void): WebAttribute; | Deprecated|
45| web | WebAttribute | onSslErrorReceive(callback: (event?: { handler: Function, error: object }) => void): WebAttribute; | Deprecated|
46| web | WebAttribute | onRenderExited(callback: (event?: { detail: object }) => boolean): WebAttribute; | Deprecated|
47| web | WebCookie | saveCookie(); | Deprecated|
48| web | WebCookie | setCookie(); | Deprecated|
49