Open ruegenbfr opened 10 months ago
Debugging notes:
display:none
from actual input
.click()
called in toolbar-action.component
in onSelectModelFile(type: ModelFileType) { ... }
(before emitting), finder opens.click()
called in toolbar-action-container.component
in onSelectModelFile(type: ModelFileType) { ... }
, finder opens.click()
called in checkConditionsAndLoadFile
callback inside .then()
, EventListener detects click, BUT finder does NOT open --> .then()
may be the problemPromise ... .then(() => {click})
does not seem cause problems in Safariasync... .then(() => {click})
seems to cause a problem in Safari=> Probable explanation: If we trigger a click programmatically within an async function, it becomes an untrusted event. For security reasons, browsers should block (popup) windows from opening. I therefore assume, that this is also true for triggering the opening of a finder window. Safari seems to stick to these security rules, whereas the other Browsers seem to ignore them.
See for example
=> Suggested solution: Refactor code, so we don't violate browser security policies.
Possible solutions:
What we could do:
@bfrgottscma @afalenski could we talk about this real quick today? I'd have to change the behaviour of the upload buttons a bit to fix this bug and I'd like to confer with you on that.
Oct 17, 2024: Decision PO: trigger the async data-altered-check and subsequent the proceed-dialog on click on 'upload data' button rather than on proxy file upload button and only open the menu containing the proxy file upload buttons after this has been sorted
The model upload in safari browser (version 15.4 [17613.1.17.1.13]) is not working properly.
This problem is not present in:
Reproduce: