Open kanatapple opened 1 month ago
I can reproduce this, seems like any __TAURI_INTERNALS__.invoke("")
call on DOMContentLoaded
would crash on this site, doesn't seem to happen if I put this call inside a setTimeout
with 10ms delay inside or outside DOMContentLoaded
event listener, doesn't seem to happen on a few other sites I tested
I don't have a clue on the cause to be honest
I can reproduce this, seems like any
__TAURI_INTERNALS__.invoke("")
call onDOMContentLoaded
would crash on this site, doesn't seem to happen if I put this call inside asetTimeout
with 10ms delay inside or outsideDOMContentLoaded
event listener, doesn't seem to happen on a few other sites I testedI don't have a clue on the cause to be honest
We can just add a timeout to the implementation of that window invoke I guess?
I don't think we can just simply wrap invoke
in a setTimeout
, still need more digging to understand why this is happening
But for a user side workaround, this should work for now
Describe the bug
The WebView crashes when you load the certain page by doing the following in initialization script(
WebviewWindowBuilder::initialization_script
).Initialization script
URL
https://st.id.softbank.jp/sbid_auth/type1/2.0/authorization.php?response_type=code&client_id=yPXPPaM2ccrUxdLtHV5VEgbJ3jGeDGic&redirect_uri=https://bff-top.crth.st.bene-st.jp/v1/top/sb-pre-auth-start&state=36eaf7a1-5103-45cf-93ba-97cb642519f2&scope=openid+cdp&nonce=0797f0f2-c821-4f19-8502-ccd789673704&acr_value=1
I don't know if it will crash with other URLs, but it will definitely crash with the above URL.
Reproduction
https://github.com/kanatapple/tauri-status-access-violation.git
Expected behavior
The page loads without crashing.
Full
tauri info
outputStack trace
No response
Additional context
No response