[M120 Migration] Possible fix for crash during shutdown insideSelectionControllerEfl... 12/308812/4
authorManjeet <manjeet.1@partner.samsung.com>
Mon, 1 Apr 2024 10:26:36 +0000 (15:56 +0530)
committerBot Blink <blinkbot@samsung.com>
Wed, 3 Apr 2024 18:03:25 +0000 (18:03 +0000)
commit8c5304a938ae05f64b9544d9606cf8c4edce476c
tree4cc70941d87774f7161bea991c48a208a638c259
parent01fc296558a3f86fbea32546ff8f4db8f2f70c4b
[M120 Migration] Possible fix for crash during shutdown insideSelectionControllerEfl::CancelContextMenu

In pre-aura, WebContentViewEfl was owned by RWHVEfl, so the order of destruction
was guaranteed. But in post-aura, WCVAHelper is owned by WCVA, so during shutdown,
sometimes due to destruction sync issue, WCVAHelper may not be a valid pointer
in SelectionControllerEfl (which is a member of RWHVHelper). So instead of using
WCVAHelper, use WebContentsEflDelegate directly to show and cancel context menu in
SelectionControllerEfl class.

Reference:
https://review.tizen.org/gerrit/295842

Change-Id: Ic01aa40000567e8605af47a46163462e3196e57e
tizen_src/chromium_impl/content/browser/selection/selection_controller_efl.cc