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

fix: turn on PdfOopif for PDF viewer #12370

Merged
merged 2 commits into from May 2, 2024
Merged

fix: turn on PdfOopif for PDF viewer #12370

merged 2 commits into from May 2, 2024

Conversation

OrKoN
Copy link
Collaborator

@OrKoN OrKoN commented Apr 30, 2024

OOPIFs are supported by Puppeteer whereas a guest view is not. Chrome plans to eventually move the PDF viewer to OOPIFs and we can already enable it in Puppeteer. This should consistently fix the linked issues except for #10715 which appears to be a general bug with local frames turning OOPIFs.

Refs: #12292, #10696, #12172

@OrKoN OrKoN force-pushed the orkon/fix-pdf-viewer branch 4 times, most recently from f715ed5 to 5d3a2ce Compare April 30, 2024 09:57
@OrKoN OrKoN added the full-ci label Apr 30, 2024
@OrKoN OrKoN force-pushed the orkon/fix-pdf-viewer branch 2 times, most recently from a10f0c7 to 659c5b0 Compare April 30, 2024 10:40
@OrKoN OrKoN changed the title fix: ignore frames removed by PDF viewer fix: ignore frames that are being swapped (by PDF viewer) Apr 30, 2024
@OrKoN OrKoN force-pushed the orkon/fix-pdf-viewer branch 7 times, most recently from 9e76e4c to 2a7319f Compare May 2, 2024 09:20
@OrKoN OrKoN changed the title fix: ignore frames that are being swapped (by PDF viewer) fix: turn on PdfOopi for PDF viewer May 2, 2024
@OrKoN OrKoN changed the title fix: turn on PdfOopi for PDF viewer fix: turn on PdfOopif for PDF viewer May 2, 2024
@OrKoN OrKoN force-pushed the orkon/fix-pdf-viewer branch 3 times, most recently from debf5b0 to 9afe9b1 Compare May 2, 2024 09:38
@OrKoN OrKoN marked this pull request as ready for review May 2, 2024 10:27
@OrKoN OrKoN removed the full-ci label May 2, 2024
@OrKoN OrKoN enabled auto-merge (squash) May 2, 2024 10:43
@OrKoN OrKoN force-pushed the orkon/fix-pdf-viewer branch 2 times, most recently from f689f88 to 2411734 Compare May 2, 2024 11:10
PDF viewer in Chrome replaces the inner iframes
with an extension web view. The iframes are still
observable in Puppeteer up until the point when
they get replaces. In this case, Chrome sends
the frameDetached event with the reason swap.

Unlike the regular swap where a frame is replace with
an OOPIF or vice versa, with PDF viewer the frame is
just gone. This PR works around this issue by
ignoring any frames that are being swapped.
@OrKoN OrKoN disabled auto-merge May 2, 2024 11:20
@OrKoN OrKoN enabled auto-merge (squash) May 2, 2024 11:20
@OrKoN OrKoN merged commit 73d7692 into main May 2, 2024
37 checks passed
@OrKoN OrKoN deleted the orkon/fix-pdf-viewer branch May 2, 2024 11:27
@release-please release-please bot mentioned this pull request May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants