Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed a case of endless loop #2285

Merged
merged 1 commit into from
Sep 30, 2024
Merged

Conversation

swordfishtr
Copy link
Contributor

@swordfishtr swordfishtr commented Sep 25, 2024

It was possible to freeze the tab by importing a team/set containing ] with no | after.

(only if the whole import is 1 line or 2 lines with the 2nd one being blank - this leads to the importer using Storage.unpackTeam() which is intended functionality.)

I took care to not conflict with #2222 . hopefully we can discuss rewriting the packed team format after these prs are resolved ...

credit for finding this bug: #2283 (comment)

@Slayer95
Copy link
Collaborator

Slayer95 commented Sep 25, 2024

rewriting the packed team format after these prs are resolved ...

Team packing originally seemed like a great idea, since teams should be able to be efficiently stored in localStorage to prevent browser-initiated cleanups (some people have thousands of teams.)

However, newer gens have released all sorts of new mechanics that mess with teams formats. Additionally, there has been some developments in data compression, such as:

  • Pokémon Showdown server adopting the per-message deflate websocket extension.
  • Browser vendors implementing CompressionStream and DecompressionStream, exposing native gzip and deflate support.

You can probably bring this discussion to the Smogon Development Discord server.

@KrisXV KrisXV merged commit 0555fa2 into smogon:master Sep 30, 2024
1 check passed
shrianshChari pushed a commit to shrianshChari/pokemon-showdown-client that referenced this pull request Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants