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

Block postbacks for 5s after redirects #1853

Merged
merged 1 commit into from
Sep 7, 2024
Merged

Commits on Sep 7, 2024

  1. Block postbacks for 5s after redirects

    The page does not unload right after we  perform
    a navigation, and allows the user to hit the submit
    button a second time. In the past, we used to disable
    all postbacks after a redirect, but that also blocks
    the page after a file is returned. There probably isn't
    a 100% reliable way to detect if the location change
    is a navigation or a file return.
    
    With this patch, we will block the page again, but only
    for a limited time (5 seconds). We also only only block
    the postback queue, which means that only postbacks
    with Concurrency=Deny or Queue will be affected.
    
    Standard file returns as provided by DotVVM are
    excluded from this, but it should also work acceptably
    with custom file returns (some buttons will not work
    for 5 seconds after the file return)
    exyi committed Sep 7, 2024
    Configuration menu
    Copy the full SHA
    4746085 View commit details
    Browse the repository at this point in the history