openharmony_ci f492851cbc !73 merge fws into master
llt test构建配置修改

Created-by: qq_35037212
Commit-by: fangwusheng
Merged-by: openharmony_ci
Description: ### 一、内容说明(相关的Issue)

https://gitcode.com/openharmony/arkweb_arkweb_cangjie_wrapper/issues/41

### 二、建议测试周期和提测地址  
  建议测试完成时间:xxxx.xx.xx  
  投产上线时间:xxxx.xx.xx  
  提测地址:CI环境/压测环境  
  测试账号:  无

### 三、变更内容
  * 3.1 关联PR列表
https://gitcode.com/openharmony/arkweb_arkweb_cangjie_wrapper/pull/73
  * 3.2 数据库和部署说明  
    1. 常规更新 
    2. 重启unicorn
    3. 重启sidekiq
    4. 迁移任务:是否有迁移任务,没有写 "无"
    5. rake脚本:`bundle exec xxx RAILS_ENV = production`;没有写 "无"
 无
  * 3.4 其他技术优化内容(做了什么,变更了什么)
  
    根据仓上对应分支修改用例工程构建配置,Dev/Trunk分支修改为6.1.0-APILevel23,Cangjie-build-support同样匹配对应版本构建方式
	主要修改:
		hvigor-config.json5文件
		test目录下build-profile.json5文件
		检查module.json5中的设备类型HarmonyOS工程为"phone",OpenHarmony工程对应为"default"


  * 3.5 废弃通知(什么字段、方法弃用?)
不涉及



  * 3.6  后向不兼容变更(是否有无法向后兼容的变更?)

不涉及

  
### 四、研发自测点(自测哪些?冒烟用例全部自测?)
  自测测试结论:
测试通过



### 五、测试关注点(需要提醒QA重点关注的、可能会忽略的地方)
  检查点:

| 需求名称 | 是否影响xx公共模块 | 是否需要xx功能 | 需求升级是否依赖其他子产品 |
|------|------------|----------|---------------|
| xxx  | 否          | 需要       | 不需要           |
|      |            |          |               |

  接口测试:不涉及

  性能测试:不涉及

  并发测试:不涉及

  其他:



See merge request: openharmony/arkweb_arkweb_cangjie_wrapper!73
2026-04-09 12:15:44 +08:00
2025-09-25 21:50:29 +08:00
2025-10-07 18:33:50 +08:00
2026-01-27 11:09:52 +08:00
2026-03-12 11:22:58 +08:00
2026-03-28 11:24:03 +08:00
2025-08-08 16:06:27 +08:00
2025-11-21 14:48:32 +00:00
2025-11-28 11:47:19 +08:00
2025-08-13 14:56:53 +08:00
2025-08-14 15:36:51 +08:00
2025-10-07 18:33:50 +08:00
2025-10-07 18:33:50 +08:00

arkweb_cangjie_wrapper(beta feature)

Introduction

The Web Cangjie Interface is a Cangjie API encapsulated on OpenHarmony based on ArkWeb capabilities. It provides the capabilities of Web component control, Cookie management, and historical information list. Developers can control the behavior of web components, query web browsing history records, and set cookie information through the provided capabilities. The currently open ArkWeb Cangjie api only supports standard devices.

Architecture

Figure 1 Architecture of the web subsystem

Architecture of the web subsystem

As shown in the architecture:

interface: Provides APIs for developers

  • WebviewController: Provides the capability to control various behaviors of Web components (including behaviors such as page navigation, lifecycle status, and JavaScript interaction).
  • WebCookieManager: Provides the capability to control various behaviors of cookies in Web components.
  • BackForwardList: Provides the capability to obtain information about the historical record item at a specified index in the historical list.

frameworks:

  • WebviewController wrapper: Encapsulates the Cangjie Web component controller, providing the WebviewController class to implement control capabilities for the Web component.
  • WebCookieManager wrapper: Encapsulates Cangjie Cookie management, providing the WebCookieManager class to implement Cookie management capabilities.
  • BackForwardList wrapper: Encapsulates Cangjie history information list, providing the BackForwardList class to implement the capability to obtain information about the historical record item at a specified index in the historical list.

Dependency Component Introduction in Architecture:

  • webview: Responsible for providing basic webview functions, and encapsulates C interfaces for Cangjie to conduct interoperation.
  • multimedia_cangjie_wrapper: Provides the capability to use media resources. The BackForwardList depends on PixelMap from this module.
  • arkui_cangjie_wrapper: Provides Cangjie UI component interfaces and basic types. The WebviewController depends on the definition and parsing of basic types from this module.
  • cangjie_ark_interop: Responsible for providing APILevel definitions, used for annotating APIs. Also provides the BusinessException exception class definition that is thrown to users.
  • hiviewdfx_cangjie_wrapper: Responsible for providing HiLog APIs, used for printing logs at critical paths.

Directory Structure

base/web/arkweb_cangjie_wrapper
├── figures                                 # architecture pictures
├── kit                                     # Cangjie ArkWeb kit code
│   └── ArkWeb
├── ohos                                    # Cangjie ArkWeb code
│   └── web
│       └── webview
│           ├── back_forward_list.cj        # BackForwardList
│           ├── web_cookie_manager.cj       # WebCookieManager
│           └── webview_controller.cj       # WebviewController
└── test                                    # Cangjie ArkWeb test cases
    └── webview                             # Cangjie ArkWeb test cases

Usage Guidelines

The following features are provided:

For ArkWeb-related APIs, please refer to ohos.web.webview. For relevant guidance, please refer to ArkWeb Development Guide.

Constraints

The following features are not provided yet:

  • AdsBlockManagerAd Blocking Configuration
  • BackForwardCacheOptionsForward/Backward Cache Configuration
  • BackForwardCacheSupportedFeaturesForward/Backward Cache Feature Configuration
  • GeolocationPermissions: Geolocation Permission Configuration
  • JsMessageExt: Result of Executing JavaScript Scripts
  • MediaSourceInfo: Media Source Information Configuration
  • NativeMediaPlayerSurfaceInfo: Rendering Information When the App Takes Over Media Playback
  • PdfData: Generated PDF Output Data
  • ProxyConfig: Network Proxy Configuration
  • ProxyController: Network Proxy Controller
  • WebDataBase: Web Database Management
  • WebDownloadDelegate: Download Task Status Events
  • WebDownloadItem: Download Task
  • WebDownloadManager: Download Task Management
  • WebHttpBodyStream: HTTP Request Body
  • WebMessageExt: Data Object for Communication Between Frontend and App
  • WebResourceHandler: Resource Loading Control
  • WebSchemeHandler: Request Interceptor for Specified Scheme
  • WebSchemeHandlerRequest: Request Intercepted by the Interceptor
  • WebSchemeHandlerResponse: Custom Response Created for the Intercepted Request
  • WebStorageOrigin: Web Component Storage Operation Interface
  • NativeMediaPlayerBridge: Hosted Web Page Media Player Bridging Interface
  • NativeMediaPlayerHandler: Event Interface for Hosted Web Page Media Player
  • WebMessagePort: Message Port Between Web Frontend and App

Code Contribution

Developers are welcome to contribute code, documentation, etc. For specific contribution processes and methods, please refer to Code Contribution.

Repositories Involved

web_webview

arkcompiler_cangjie_ark_interop

arkui_arkui_cangjie_wrapper

multimedia_multimedia_cangjie_wrapper

hiviewdfx_hiviewdfx_cangjie_wrapper

S
Description
web组件仓颉封装层
Readme 4.1 MiB
Languages
Cangjie 96.1%
JavaScript 1.7%
Python 0.8%
TypeScript 0.8%
HTML 0.6%