Open huanzhiNB opened 5 months ago
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
https://github.com/prebid/prebid-mobile-ios/assets/83240596/33bb16c9-31a2-43a6-89f4-1c34b0d76974
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
Expected behavior app freeze with the loading icon keep displaying
https://github.com/prebid/prebid-mobile-ios/assets/83240596/33bb16c9-31a2-43a6-89f4-1c34b0d76974