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

Commit 4f70c2f

Browse files
committed
[[ Bug 21608 ]] Remove second break wait from invoke handler block
This patch removes the call to `MCBrowserRunloopBreakWait` as we are already using the LCB `post` command which does `MCEngineRunloopBreakWait`. On iOS 12 this second break wait causes an app lockup that has been hard to diagnose. Perhaps breaking an `MCFiberDispatch` `pthread_cond_wait` that should not be broken.
1 parent 117740b commit 4f70c2f

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

docs/notes/bugfix-21608.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Fix application lockup when invoking a handler from the browser widget on iOS 12

libbrowser/src/libbrowser_uiwebview.mm

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,6 @@ inline void MCBrowserRunBlockOnMainFiber(void (^p_block)(void))
416416
OnJavaScriptCall([p_handler cStringUsingEncoding: NSUTF8StringEncoding], t_args);
417417

418418
MCBrowserListRelease(t_args);
419-
420-
// IM-2016-09-30: [[ Bug 18406 ]] Wake main thread to process handler call
421-
MCBrowserRunloopBreakWait();
422419
}
423420
};
424421
}

0 commit comments

Comments
 (0)