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

App freeze in loading screen after dismiss the ad #972

Open
huanzhiNB opened this issue Apr 26, 2024 · 0 comments
Open

App freeze in loading screen after dismiss the ad #972

huanzhiNB opened this issue Apr 26, 2024 · 0 comments

Comments

@huanzhiNB
Copy link
Contributor

huanzhiNB commented Apr 26, 2024

Describe the bug
If a creative tries to launch a page multiple times, then the app will freeze in the loading screen spinner after close the page.

To Reproduce
hard code this test html in prebid in app banner ad to reproduce the issue

<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Navigation Example</title>
    <style>
        body {
            background-color: red;
            width: 320px;
            height: 50px;
            margin: 0 auto; /* Center the content horizontally */
            display: flex; /* Align content vertically */
            justify-content: center; /* Center the content vertically */
            align-items: center; /* Center the content vertically */
        }
    </style>
</head>
<body>
    <h1>Click the link below to trigger delegate twice</h1>
    <a id="dynamic-link" href="https://www.example.com">Click Me</a>

    <script>
        document.getElementById('dynamic-link').addEventListener('click', function() {
            var link = this;
            link.click(); // First trigger
            link.click(); // Second trigger after a short delay
        });
    </script>
</body>
</html>

Expected behavior
app freeze with the loading icon keep displaying

Simulator.Screen.Recording.-.iPhone.15.Pro.-.2024-04-26.at.16.28.36.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Triage
Development

No branches or pull requests

1 participant