Bug 240788

Summary: Freeze closing pdf rendered in non active tab
Product: WebKit Reporter: Kimmo Kinnunen <kkinnunen>
Component: WebKit Process ModelAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: bart.corremans, sabouhallawa, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
See Also: https://bugs.webkit.org/show_bug.cgi?id=237674
Attachments:
Description Flags
Repro none

Kimmo Kinnunen
Reported 2022-05-23 01:08:32 PDT
Created attachment 459665 [details] Repro From Bart Corremans 2022-05-19 03:17:35 PDT bart.corremans@gmail.com bug 237674 > I can confirm that in the current Technology Preview (17614.1.11.6), .... > However, in this build, I still experience issues when closing a non-focused tab where a pdf is rendered. This is resolved with noopener, but I am unsure whether this is a new issue, or if it is caused by this one (and the Technology Preview build does not contain the fix for this issue yet - implying our canvas issue was resolved in another way).
Attachments
Repro (3.24 KB, application/zip)
2022-05-23 01:08 PDT, Kimmo Kinnunen
no flags
Kimmo Kinnunen
Comment 1 2022-05-23 01:17:07 PDT
Bart, could you describe the repro steps? E.g. - does the problem repro with file urls or with http urls only? - what exactly you do after clicking "click me"? - which window should be closed for repro? - what problems do you see, how do you observe them? One sequence that doesn't seem to work correctly: 1. open the index.html 2. click click me 3. observe new tab focusing 4. close the original tab that is now inactive 5. observe the new tab not being able to load the pdf, rather it shows safari network error page
Bart Corremans
Comment 2 2022-05-23 02:12:42 PDT
Thanks for following up on this. Using the attached repro, the issue consistently triggers: - Open index.html - Click the button. - Before the pdf loads (it's on a timeout), return to the first tab and click the button again. Remain on the newly opened tab this time. - When the inactive tab finishes loading the PDF, close it without making it active. This can be either before or after the PDF in the current tab finishes loading. Sometimes it happens more quickly with just the following steps: - Open index.html - Click the button. Return to the first tab before the pdf loads. - When the pdf is loaded in the inactive tab, the browser may already be frozen (button will no longer be work).
Bart Corremans
Comment 3 2022-05-23 02:16:51 PDT
(In reply to Kimmo Kinnunen from comment #1) > Bart, could you describe the repro steps? > E.g. > - does the problem repro with file urls or with http urls only? > - what exactly you do after clicking "click me"? > - which window should be closed for repro? > - what problems do you see, how do you observe them? > > > One sequence that doesn't seem to work correctly: > 1. open the index.html > 2. click click me > 3. observe new tab focusing > 4. close the original tab that is now inactive > 5. observe the new tab not being able to load the pdf, rather it shows > safari network error page I wrote my previous comment before seeing this one. I have listed two repro scenarios there. The sequence you mention with the network error is not something I had tested myself, but I can also reproduce that. This seems like a separate issue?
Radar WebKit Bug Importer
Comment 4 2022-05-30 01:09:13 PDT
Note You need to log in before you can comment on or make changes to this bug.