Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit c718b02

Browse files
committed
[[ Bug 22855 ]] Fix hang in EvaluateJavaScript on iOS
This patch fixes a hang in `_SyncEvaluateJavaScript` on iOS by calling `MCBrowserBreakWait` at the end of the evaluation completion handler.
1 parent 208cdd1 commit c718b02

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

docs/notes/bugfix-22855.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix hang executing `do in <browser widget>` on iOS

libbrowser/src/libbrowser_wkwebview.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1042,6 +1042,7 @@ void _SyncEvaluateJavaScript(WKWebView *p_view, NSString *p_javascript, id &r_re
10421042
}
10431043

10441044
t_evaluating = false;
1045+
MCBrowserRunloopBreakWait();
10451046
}];
10461047
});
10471048

0 commit comments

Comments
 (0)