diff options
author | Euclid Ye <yezhizhenjiakang@gmail.com> | 2025-03-19 02:36:33 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-18 18:36:33 +0000 |
commit | 86957be5f0ce387830fdd133e53837a57cc774ce (patch) | |
tree | 3188eddfa1ecf3d17e641acaccc460656dbb8398 /support/openharmony | |
parent | 9f93ccd9427265f39f1a2de38389fec0e80f7bea (diff) | |
download | servo-86957be5f0ce387830fdd133e53837a57cc774ce.tar.gz servo-86957be5f0ce387830fdd133e53837a57cc774ce.zip |
Create `config_dir` if none exist for caching (#35761)
* Create config_dir if none exist for caching
Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
* remove specialized behaviour for ohos; copy prefs.json if necessary
Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
* downgrade the log to trace verbosity
Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
* update wpt-test
Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
---------
Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>
Diffstat (limited to 'support/openharmony')
-rw-r--r-- | support/openharmony/entry/src/main/ets/pages/Index.ets | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/support/openharmony/entry/src/main/ets/pages/Index.ets b/support/openharmony/entry/src/main/ets/pages/Index.ets index ed67d36cb3b..1d84d4478db 100644 --- a/support/openharmony/entry/src/main/ets/pages/Index.ets +++ b/support/openharmony/entry/src/main/ets/pages/Index.ets @@ -17,6 +17,7 @@ interface InitOpts { deviceType: string, osFullName: string, resourceDir: string, + cacheDir: string, displayDensity: number, commandlineArgs: string, } @@ -109,13 +110,16 @@ struct Index { .onLoad((xComponentContext) => { this.xComponentContext = xComponentContext as ServoXComponentInterface; let resource_dir: string = this.context.resourceDir; - console.debug("Resources are located at %{public}s", resource_dir); + let cache_dir: string = this.context.cacheDir; + console.debug("resourceDir: ", resource_dir); + console.debug("cacheDir: ", cache_dir); let init_options: InitOpts = { url: this.urlToLoad, deviceType: get_device_type(), osFullName: deviceInfo.osFullName, displayDensity: get_density(), resourceDir: resource_dir, + cacheDir: cache_dir, commandlineArgs: this.CommandlineArgs } this.xComponentContext.initServo(init_options) |