已合并
fix(web): add text share eligibility check for web selection #77573
fix(web): add text share eligibility check for web selection #77573
已合并
jerrywangxmu创建于 2025年12月9日
jerrywangxmu
jerrywangxmu
2025年12月9日

IssueNo:
Description: (提交描述)
Sig: SIG_ApplicationFramework
Binary Source: No(涉及则Yes)

请勿修改以下选项内容,仅需保存后点击复选框,或在编辑时将对应项前面的[ ]改为[x]

Do not modify the following option content. Simply save and click the checkbox, or when editing, change [ ] to [x] for the relevant item.

Feature or Bugfix

是否涉及非兼容变更/Whether it involves incompatible changes

TDD自验结果/TDD Self-Verification Results

XTS自验结果/XTS Self-Verification Results

检视意见是否都已闭环/Have all review comments been resolved

是否已执行L0用例

likedislike
Pull Request已成功合入, 合并人@openharmony_ci
(感谢 jerrywangxmu 的贡献)
arkui-feature-manager
arkui-feature-manager成员
2025年12月9日 评论:

修改责任田 @arkweb-committer-group 相关代码, 请根据修改内容联系以下人员检视后评论"pass"后消分:
[web-交互安全 libing] @libing23232323
[web-渲染 lvjunmao] @LongLie
[web-渲染性能 wudefeng] @defeng2020
[web-事件交互 zhufenghao] @zhufenghao
[web-性能优化 qianliangfang] @qianlf
[web-性能优化 liurongliang] @bc_yx
[web-稳定性&DFX chenshijun] @hjoksky
[web-南向 zhangyinglie] @zhang-yinglie
[web-多媒体 liweiyang] @whuqincheng
[web-网络加载 chenjiadong] @chenjiadong

您可通过评论"list commands"来查询命令列表。
You can leave a "list commands" comment to get commands list.

likedislike
arkui-feature-manager
arkui-feature-manager成员
2025年12月9日 评论:

check type result details
TDD检查/TDD check pass -
检视意见检查/Review Comments Check fail
🔍 点击查看详情/click to show details
检视意见检查(Review Comments Check)
code additions result review comments count(actual/expect)
123 fail 0/3

检视意见数量未达标(详情见上述表格),请联系组内成员积极进行代码检视。

The count of review comments falls short of the target (as detailed in the table above).Please contact your team to actively review your code.

提交信息检查/Commit Message Check pass -
头文件引用计数检查/Header File Check fail
🔍 点击查看详情/click to show details头文件引用检查中,稍后返回结果。

Check result will return as a comment soon.

多线程映射检查/Multi-Thread Mapping Check pass -

新开PR检查失败。
Check PR When Open failed.

您可通过评论"list commands"来查询命令列表。
You can leave a "list commands" comment to get commands list.

likedislike
openharmony_ciopenharmony_ci成员
2025年12月9日 添加了label:waiting_on_author
openharmony_ci
openharmony_ci成员
2025年12月9日 评论:

感谢提交 Pull Requests!如果您提交的PR已经开发完毕,请评论 "start build" 触发门禁,更多交互操作,请访问OpenHarmony社区支持命令清单。如果需要调整订阅PR、Issue的变更状态,请访问订阅链接


Thanks for submitting the pull request. If your Pull Request has already been developed, you can leave a "start build" comment to trigger the gated system. For more commands, please visit OpenHarmony Command List. If you need to change the subscription of a Pull Request or Issue, please visit the link.

likedislike
openharmony_ciopenharmony_ci成员
2025年12月9日 添加了label:dco检查成功
arkui-feature-manager
arkui-feature-manager成员
2025年12月9日 评论:

check header file pass

likedislike
jerrywangxmujerrywangxmu
2025年12月9日 关联了issue:[Bug]: web超大文本触发AI识别时概率主线程卡死
jerrywangxmu
jerrywangxmu
2025年12月9日 评论:

start build

likedislike
openharmony_ci
openharmony_ci成员
2025年12月9日 评论:

首次触发
门禁构建开始,包含静态检查、代码编译和测试【dayu200_xts_static编译, hap_build编译, arkui_tdd编译, master_inner_build编译, part_compile编译, dayu200编译, dayu200测试, hap_build-codearts编译, dayu200_xts编译, dayu200_xts_acts编译, arkui_tdd-codearts编译, ohos-sdk编译, mac-sdk编译】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/6937f40164650f998b48db9d/runlist

likedislike
openharmony_ciopenharmony_ci成员
2025年12月9日 添加了label:编译成功
openharmony_ciopenharmony_ci成员
2025年12月9日 添加了label:静态检查成功
openharmony_ciopenharmony_ci成员
2025年12月9日 添加了label:冒烟测试成功
openharmony_ciopenharmony_ci成员
2025年12月9日 通过测试
openharmony_ci
openharmony_ci成员
2025年12月9日 评论:

代码门禁通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/6937f40164650f998b48db9d/runlist

静态检查:

# check type result report
1 codeCheck pass >>>

编译测试:
# Device build result test result package
1 ohos-sdk success NA >>>
2 dayu200 success success >>>
3 dayu200_xts success NA >>>
4 hap_build success NA >>>
5 arkui_tdd success NA >>>
6 part_compile success NA >>>
7 dayu200_xts_acts success NA >>>
8 dayu200_xts_static success NA >>>
9 master_inner_build failed(IGNORE)(联合门禁失败) NA >>>
10 hap_build-codearts failed(IGNORE)(compile failed) NA >>>
11 mac-sdk success NA >>>
12 arkui_tdd-codearts success(IGNORE) NA >>>

likedislike
openharmony_ciopenharmony_ci成员
2025年12月9日 删除了label:waiting_on_author
openharmony_ciopenharmony_ci成员
2025年12月9日 添加了label:waiting_for_review
openharmony_ci
openharmony_ci成员
2025年12月9日 评论:

您好,Committer @sunbees @zhoutianer @zhanghaibo0 @zhou-chaobo @liyi0309 @Armstrong15 @sunfei2021 @cc520bf @jyj-0306 @uniquexch @jiangdayuan @yangfan229 @lixingchi1 @ZhangYu-Home @zcdqs @caoruihong @piggyguy @carnivore233 @fenglinbailu @forantar @korobeinikovevgeny @zakalyukinalexander_ac40 @yylong @hwliujinwei @lushi871202 @yan_shuifeng @HeSu6 @shiyu_huang_plus ,请分配检视人员检视该PR,可以通过命令"assign [@someone_id]"分配检视人员,也可以直接评论"assign"分配给自己进行检视。


Hello, Committer @sunbees @zhoutianer @zhanghaibo0 @zhou-chaobo @liyi0309 @Armstrong15 @sunfei2021 @cc520bf @jyj-0306 @uniquexch @jiangdayuan @yangfan229 @lixingchi1 @ZhangYu-Home @zcdqs @caoruihong @piggyguy @carnivore233 @fenglinbailu @forantar @korobeinikovevgeny @zakalyukinalexander_ac40 @yylong @hwliujinwei @lushi871202 @yan_shuifeng @HeSu6 @shiyu_huang_plus . Please assign someone to review the PR. You can assign a reviewer by using the command "assign [@someone_id]", or you can comment "assign" to review the PR by yourself.

likedislike
zhufenghao
zhufenghao成员2025年12月10日进行代码检视2
frameworks/core/components_ng/pattern/web/web_select_overlay.cpp
@@ -1289,0 +1296,4 @@
1296+ }
1297+ const auto end = sv.find_last_not_of(ws);
1298+ const auto trimmedLen = end - start + 1;
1299+ const auto maxShareLength = static_cast<size_t>(TextShareAdapter::GetMaxTextShareLength());
zhufenghao
zhufenghao2025年12月10日评论:

转换是否必要,是因为下面判断的静态告警吗

likedislike
jerrywangxmu
jerrywangxmu
2025年12月11日 评论:

如果返回的是负数(比如 -1),说明接口设计有问题,但至少:
显式转换,代码意图清晰。
编译器不会因隐式转换静默出错,可以通过日志或断言发现异常。

zhufenghao
zhufenghao成员2025年12月10日进行代码检视1
test/unittest/core/pattern/web/web_select_overlay_test.cpp
@@ -7092,0 +7127,4 @@
7127+ ASSERT_NE(stack, nullptr);
7128+ auto nodeId = stack->ClaimNodeId();
7129+ auto frameNode =
7130+ FrameNode::GetOrCreateFrameNode(V2::WEB_ETS_TAG, nodeId, []() { return AceType::MakeRefPtr<WebPattern>(); });
zhufenghao
zhufenghao2025年12月10日评论:

已review

likedislike
zhufenghaozhufenghao成员
2025年12月10日 解决了最后一个问题
zhufenghao
zhufenghao成员
2025年12月10日 评论:

pass

likedislike
arkui-feature-manager
arkui-feature-manager成员
2025年12月10日 评论:

@arkweb-committer-group 加分已记录。

若本次加分失败,请您在所有管控项通过后,评论"self check"可恢复加分,无需再找CodeOwner进行加分。

If the current review fails, you can restore the review by commenting 'self check' once all check items are passed. No further action from the CodeOwner is required.

您可通过评论"list commands"来查询命令列表。
You can leave a "list commands" comment to get commands list.

likedislike
arkui-feature-manager
arkui-feature-manager成员
2025年12月10日 评论:

check type result details
提交信息检查/Commit Message Check pass -
TDD检查/TDD check pass -
检视意见检查/Review Comments Check fail
🔍 点击查看详情/click to show details
检视意见检查(Review Comments Check)
code additions result review comments count(actual/expect)
123 fail 2/3

检视意见数量未达标(详情见上述表格),请联系组内成员积极进行代码检视。

The count of review comments falls short of the target (as detailed in the table above).Please contact your team to actively review your code.

头文件引用计数检查/Header File Check pass -
多线程映射检查/Multi-Thread Mapping Check pass -

加分失败。
Review failed.

您可通过评论"list commands"来查询命令列表。
You can leave a "list commands" comment to get commands list.

likedislike
zhufenghao
zhufenghao成员2025年12月10日进行代码检视1
test/unittest/core/pattern/web/web_select_overlay_test.cpp
@@ -7091,0 +7116,4 @@
7116+}
7117+ 
7118+/**
7119+ * @tc.name: IsNeedMenuShareForWeb_TrimInvariant
zhufenghao
zhufenghao2025年12月10日评论:

TDD结果附一下

likedislike
zhufenghaozhufenghao成员
2025年12月10日 解决了最后一个问题
zhufenghao
zhufenghao成员
2025年12月10日 评论:

pass

likedislike
Aarkweb-committer-group成员
2025年12月10日 通过审查
arkui-feature-manager
arkui-feature-manager成员
2025年12月10日 评论:
check type result details
提交信息检查/Commit Message Check pass -
TDD检查/TDD check pass -
检视意见检查/Review Comments Check pass -
头文件引用计数检查/Header File Check pass -
多线程映射检查/Multi-Thread Mapping Check pass -

@zhufenghao 已评审通过, 责任田 @arkweb-committer-group 已加分, 满足合入条件后请联系Commiter审核加分

您可通过评论"list commands"来查询命令列表。
You can leave a "list commands" comment to get commands list.

likedislike
jerrywangxmujerrywangxmu
2025年12月11日 修改了pull request 的描述
ZhangYu-HomeZhangYu-Home成员
2025年12月13日 通过审查
openharmony_ci
openharmony_ci成员
2025年12月13日 评论:

验证结果已超过12小时,之前验证结果无效,自动重新触发构建,请关注最新验证结果

likedislike
openharmony_ci
openharmony_ci成员
2025年12月13日 评论:

start build

likedislike
openharmony_ciopenharmony_ci成员
2025年12月13日 删除了label:静态检查成功
openharmony_ciopenharmony_ci成员
2025年12月13日 删除了label:编译成功
openharmony_ciopenharmony_ci成员
2025年12月13日 删除了label:冒烟测试成功
openharmony_ci
openharmony_ci成员
2025年12月13日 评论:

本地或库上代码有更新,全量重新构建,重置所有关联PR的验证状态
门禁构建开始,包含静态检查、代码编译和测试【arkui_tdd-codearts编译, dayu200_xts_acts编译, arkui_tdd编译, ohos-sdk编译, dayu200测试, dayu200编译, hap_build-codearts编译, mac-sdk编译, part_compile编译, master_inner_build编译, dayu200_xts_static编译, hap_build编译, dayu200_xts编译】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/693d086864650f998b0f55fe/runlist

likedislike
openharmony_ciopenharmony_ci成员
2025年12月13日 添加了label:编译成功
openharmony_ciopenharmony_ci成员
2025年12月13日 添加了label:静态检查成功
openharmony_ciopenharmony_ci成员
2025年12月13日 添加了label:冒烟测试成功
openharmony_ciopenharmony_ci成员
2025年12月13日 通过测试
openharmony_ci
openharmony_ci成员
2025年12月13日 评论:

代码门禁通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/693d086864650f998b0f55fe/runlist

静态检查:

# check type result report
1 codeCheck pass >>>

编译测试:
# Device build result test result package
1 ohos-sdk success NA >>>
2 dayu200 success success >>>
3 dayu200_xts success NA >>>
4 hap_build success NA >>>
5 arkui_tdd success NA >>>
6 part_compile success NA >>>
7 dayu200_xts_acts success NA >>>
8 dayu200_xts_static success NA >>>
9 master_inner_build success(IGNORE) NA >>>
10 hap_build-codearts failed(IGNORE)(skip build) NA >>>
11 mac-sdk success NA >>>
12 arkui_tdd-codearts success(IGNORE) NA >>>

likedislike
openharmony_ci
openharmony_ci成员
2025年12月13日 评论:

您好,Committer @sunbees @zhoutianer @zhanghaibo0 @zhou-chaobo @liyi0309 @Armstrong15 @sunfei2021 @cc520bf @jyj-0306 @uniquexch @jiangdayuan @yangfan229 @lixingchi1 @ZhangYu-Home @zcdqs @caoruihong @piggyguy @carnivore233 @fenglinbailu @forantar @korobeinikovevgeny @zakalyukinalexander_ac40 @yylong @hwliujinwei @lushi871202 @yan_shuifeng @HeSu6 @shiyu_huang_plus ,请分配检视人员检视该PR,可以通过命令"assign [@someone_id]"分配检视人员,也可以直接评论"assign"分配给自己进行检视。


Hello, Committer @sunbees @zhoutianer @zhanghaibo0 @zhou-chaobo @liyi0309 @Armstrong15 @sunfei2021 @cc520bf @jyj-0306 @uniquexch @jiangdayuan @yangfan229 @lixingchi1 @ZhangYu-Home @zcdqs @caoruihong @piggyguy @carnivore233 @fenglinbailu @forantar @korobeinikovevgeny @zakalyukinalexander_ac40 @yylong @hwliujinwei @lushi871202 @yan_shuifeng @HeSu6 @shiyu_huang_plus . Please assign someone to review the PR. You can assign a reviewer by using the command "assign [@someone_id]", or you can comment "assign" to review the PR by yourself.

likedislike
openharmony_ciopenharmony_ci成员
2025年12月13日 关闭了关联的issue
openharmony_ciopenharmony_ci成员
2025年12月13日 合入了pull request,合并节点 SHA:1098c9e8b906c7f6cb14e2ba0b9dbb5f04cf7796
openharmony_ciopenharmony_ci成员
2025年12月13日 删除了label:waiting_for_review
openharmony_ciopenharmony_ci成员
2025年12月13日 添加了label:merged