aboutsummaryrefslogtreecommitdiffstats
path: root/support/openharmony
diff options
context:
space:
mode:
authorMukilan Thiyagarajan <mukilan@igalia.com>2024-11-13 18:20:40 +0530
committerGitHub <noreply@github.com>2024-11-13 12:50:40 +0000
commit114cf9a1cc75ea97ce461079519d161981af1a34 (patch)
treecd802bd4eafd76b60670c0fc513ae17b8076d068 /support/openharmony
parent91026444701cfd68658beb21fbf446f6ed8723e6 (diff)
downloadservo-114cf9a1cc75ea97ce461079519d161981af1a34.tar.gz
servo-114cf9a1cc75ea97ce461079519d161981af1a34.zip
ohos: avoid passing some cli arguments to servo (#34237)
These following four OHOS specific arguments are being passed by the OHOS runtime to the EntryAbility, which then passess them on to Servo's argument parsing logic: * `--debugApp=false` * `--send_to_erms_targetAppDistType=os_integration` * `--send_to_erms_targetAppProvisionType=release` * `--send_to_erms_targetBundleType=0` When Servo's argument parsing logic encounters an unrecognized argument, it terminates the process after logging an error to stderr (which is not visible in hilog). This patch simply filters out these arguments so the parsing logic doesn't fail. Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
Diffstat (limited to 'support/openharmony')
-rw-r--r--support/openharmony/entry/src/main/ets/entryability/EntryAbility.ets2
1 files changed, 2 insertions, 0 deletions
diff --git a/support/openharmony/entry/src/main/ets/entryability/EntryAbility.ets b/support/openharmony/entry/src/main/ets/entryability/EntryAbility.ets
index c64c9867391..66ad4c7006f 100644
--- a/support/openharmony/entry/src/main/ets/entryability/EntryAbility.ets
+++ b/support/openharmony/entry/src/main/ets/entryability/EntryAbility.ets
@@ -15,8 +15,10 @@ export default class EntryAbility extends UIAbility {
// Skip some default parameters, since servo is not interested in those
if (key.startsWith("ohos.")
|| key.startsWith("component.")
+ || key.startsWith("send_to_erms_")
|| key === "isCallBySCB"
|| key === "moduleName"
+ || key === "debugApp"
) {
return
}