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

feat: implement chrome.tabs.reload to fix PDF Viewer error #33560

Merged
merged 1 commit into from Apr 11, 2022

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Mar 31, 2022

Description of Change

Closes #33519.

Addresses a failure introduced by CL:3501416, whereby if a PDF failed to load:

Screen Shot 2022-03-31 at 11 06 08 AM

and a user then clicked the Reload button, the following error would be seen in console:

[86492:0331/154624.774205:INFO:CONSOLE(2251)] "Uncaught TypeError: chrome.tabs.reload is not a function", source: chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/pdf_viewer_wrapper.js (2251)

This is fixed by implementing chrome.tabs.reload. Given it's semver-minor as a change, I think we should likely document it as we would if we were implementing it standalone.

Note: needs tests.

Checklist

Release Notes

Notes: Fixed an issue where the PDF Viewer would fail if a user attempted to reload.

@codebytere codebytere added the semver/minor backwards-compatible functionality label Mar 31, 2022
@electron-cation electron-cation bot added api-review/requested 🗳 new-pr 🌱 PR opened in the last 24 hours labels Mar 31, 2022
@codebytere codebytere changed the title feat: implement chrome.tabs.reload to fix PDF Viewer feat: implement chrome.tabs.reload to fix PDF Viewer error Mar 31, 2022
Copy link
Member

@deepak1556 deepak1556 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM on the navigation controller calls, will delegate to @nornagon for the extension api

@nornagon
Copy link
Member

API LGTM

@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Apr 7, 2022
@codebytere codebytere marked this pull request as ready for review April 11, 2022 20:49
@codebytere codebytere merged commit caddc83 into main Apr 11, 2022
@codebytere codebytere deleted the fix-pdf-tab-reload-error branch April 11, 2022 20:51
@release-clerk
Copy link

release-clerk bot commented Apr 11, 2022

Release Notes Persisted

Fixed an issue where the PDF Viewer would fail if a user attempted to reload.

@trop
Copy link
Contributor

trop bot commented Apr 11, 2022

I have automatically backported this PR to "18-x-y", please check out #33711

@trop
Copy link
Contributor

trop bot commented Apr 11, 2022

I have automatically backported this PR to "19-x-y", please check out #33712

@trop trop bot removed the in-flight/19-x-y label Apr 27, 2022
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Apr 27, 2022
bavulapati pushed a commit to bavulapati/electron that referenced this pull request Apr 29, 2022
khalwa pushed a commit to solarwindscloud/electron that referenced this pull request Feb 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api-review/requested 🗳 semver/minor backwards-compatible functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Embedded PDF not displaying
3 participants