ohos: share the sub window creation context


makeWindowProxyDataForSubWindowInJsThread() creates the sub window
with createSubWindowWithOptions() and falls back to createSubWindow()
when that is unavailable or fails. The second fallback runs in the
onCatch handler, after the onThen handler has already taken the
creation context by value, so nothing the fallback learns can reach
the rest of the creation.

Create the context before the creation promise and share it between
the handlers. This prepares for recording in the context whether the
fallback was taken. No change in behavior.

Task-number: QTBUG-151677
Change-Id: Id3c4e69b8b172731d7cc9bad0049b52b49700678
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
commit3da58b37b8709904284f9fac413d9c40940fc9db
parent78d3f16824158fe503ab7805c2effb28e6f67517
authorZbigniew Chyla <zbigniew.chyla@qt.io>
committerZbigniew Chyla <zbigniew.chyla@qt.io>
commit timeTue, 20 Oct 2026 10:41:23 +0000