WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
Bug 240788
Freeze closing pdf rendered in non active tab
https://bugs.webkit.org/show_bug.cgi?id=240788
Summary
Freeze closing pdf rendered in non active tab
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
Details
View All
Add attachment
proposed patch, testcase, etc.
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
<
rdar://problem/94106116
>
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug