Closed asgdf closed 7 years ago
I tested and reproduced this issue on Windows10/Opera 44(x64)
After more research I confirmed that the problem is the following code:
navigator.storage.persisted()
This crashes Opera but works in all other browsers. This seems like an issue in Opera, not this repo.
@FelixRilling asgdf already stated that in the issue
Yes, I just wanted to confirm the stated problem.
@FelixRilling ah makes sense although it seems kinda redundant to just reiterate what was already said.
If someone wants to rig up an Opera detector?
Would checking the user agent for "OPR" or "opera" be enough?
I'd actually only detect a specific version of Opera, the version that crashes.
Seems to have been fixed in Opera 46 (tested on touch screen GNOME tablet)? I cannot get Opera to crash even when changing user agent, when I was able to do this before with changed user agent.
@xfix feel free to update the test in #912
There have been multiple reports of Opera crashing when opening/using the teambuilder. I am able to reproduce this using Opera's newest version. The issue seems to be calling
navigator.storage.persist()
(as introduced by https://github.com/Zarel/Pokemon-Showdown-Client/commit/b3b2eea2f218745b20f56dc135b2445e0c0c9af2), which immediately crashes the browser for me (this happens regardless of how or where it's called, even in the browser console of a blank tab). I've submitted a bug report for Opera, until that gets fixed I suppose we might want to prevent Opera users from executing that part of the code? I'd do it, but I don't know the extent of the issue, maybe it's just the windows version or the 32 bit version or something.