diff --git a/api/@internal/component/ets/web.d.ts b/api/@internal/component/ets/web.d.ts index 8a36a11c3f37cefcf403e1d04ea7fa5d3c3acfb2..ec5554320107e2350dd3dcffa658ea1411a087b8 100755 --- a/api/@internal/component/ets/web.d.ts +++ b/api/@internal/component/ets/web.d.ts @@ -175,19 +175,19 @@ declare enum RenderExitReason { PROCESS_WAS_KILLED, /** - * SIGKILL or task manager kill. + * Segmentation fault. * @since 8 */ PROCESS_CRASHED, /** - * SIGKILL or task manager kill. + * Out of memory. * @since 8 */ PROCESS_OOM, /** - * SIGKILL or task manager kill. + * Unkown reason. * @since 8 */ PROCESS_EXIT_UNKNOWN, @@ -763,7 +763,7 @@ declare class WebAttribute extends CommonMethod { * Sets whether javaScript running in the context of a file URL can access content from other file URLs. * @param fileFromUrlAccess {@code true} means enable a file URL can access other file URLs; * {@code false} otherwise. - * + * * @since 8 */ fileFromUrlAccess(fileFromUrlAccess: boolean): WebAttribute; @@ -890,6 +890,14 @@ declare class WebAttribute extends CommonMethod { */ userAgent(userAgent: string): WebAttribute; + /** + * Sets the Web's debugging access. + * @param webDebuggingAccess {@code true} means the Web access to remote debugging; {@code false} otherwise. + * + * @since 9 + */ + webDebuggingAccess(webDebuggingAccess: boolean): WebAttribute; + /** * Triggered at the end of web page loading. * @param callback The triggered function at the end of web page loading. @@ -1042,7 +1050,7 @@ declare class WebAttribute extends CommonMethod { * * @since 8 */ - onFileSelectorShow(callback: (event?: { result: FileSelectorResult, + onFileSelectorShow(callback: (event?: { result: FileSelectorResult, fileSelector: FileSelectorParam }) => void): WebAttribute; }