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

WIP: reimplement PDF viewer #17163

Closed
wants to merge 13 commits into from
Closed

WIP: reimplement PDF viewer #17163

wants to merge 13 commits into from

Conversation

jkleinsc
Copy link
Contributor

@jkleinsc jkleinsc commented Feb 27, 2019

Description of Change

The PDF viewer stopped working in 3-0-x due to changes in Chromium. This PR will reimplement the PDF viewer functionality trying to stay as close as possible to the Chromium implementation.

Resolves #12337

Checklist

Release Notes

Notes:

@electron-cation electron-cation bot added the new-pr 🌱 PR opened in the last 24 hours label Feb 27, 2019
@jkleinsc jkleinsc mentioned this pull request Feb 27, 2019
@electron-cation electron-cation bot removed the new-pr 🌱 PR opened in the last 24 hours label Feb 28, 2019
@jkleinsc jkleinsc force-pushed the add-pdfium-viewer branch 2 times, most recently from 1fcb5e1 to 5c6d014 Compare May 13, 2019 21:19
@leonheess

This comment has been minimized.

John Kleinschmidt and others added 8 commits July 26, 2019 11:03
Include extensions dep

Add AtomExtensionsRenderClient

Add AtomExtensionsClient

Dispatch scripts on document events

Add ExtensionsAPIProvider

Fix compilation errors

Add AtomExtensionsBrowserClient

Add remaining browser extensions boilerplate

Add 'load-extension' command line switch to test loading extensions

Fix ExtensionPrefs runtime error

Fix content::BrowserContext::SetCorsOriginAccessListForOrigin not implemented error

Register 'content_scripts' manifest feature

Register extension dispatcher callbacks

Move extensions files into /extensions subdirectory

Initialize SharedUserScriptMaster

Fix content script injection

Add pref_registry dep for PrefRegistrySyncable

Add disabled-by-default ENABLE_ELECTRON_EXTENSIONS buildflag

Fix preprocessor lint errors with extension additions

Fix build error with including extensions generated code

Conditionally compile extension code files

Move prefs deps behind buildflag

Ignore gn check on extensions deps

Rename all 'shell_' files

Rename Shell to Atom

Fix lint issues with renamed Shell code

Fix compile errors
@godza
Copy link

godza commented Nov 19, 2019

What happened with this pull request? I really hoped this will be reimplemented.

@nornagon
Copy link
Member

We're still intending to one day restore the PDF viewer, but it relies on us first migrating to use Chrome's extensions library instead of our own shim, as the PDF viewer in Chromium is implemented as an extension.

@maestrocoder
Copy link

maestrocoder commented Dec 2, 2019

+1 This is killing me, the flicker issues on electron 2.x make it almost unusable but our need to iframe pdf in app is critical to the UX so we are stuck on electron 2.x. And not able to be on 4.x+

Not getting pdf iframe support continues to keep getting the kick the can down the road...

Is the PR submission here not usable? I don't know the Electron internals (yet).

Pardon my late comment, but I have been following this for 16 months. Without knowing yet the code required to do this, I get it's easy to sit on the sideline and wish for a solution.

  • What is the estimated level of effort to first migrate to Chrome extension library?
  • Is that migration required for other requirements? If so, what branch(es)?
  • Is the migration to Chrome extension library already scheduled? Estimated completion date?
  • Can we get a downstream branch off any partial work on the Chrome extension library? Is there already a Chrome extension library branch in progress?

Thx, in advance.
-m3

@namotco
Copy link

namotco commented Dec 2, 2019 via email

@Sryther
Copy link

Sryther commented Dec 2, 2019

@namotco There is already a BountySource for this feature: https://www.bountysource.com/issues/56240517-enable-pdf-viewer (source: #12337 (comment))

@a1mersnow
Copy link

why was the branch deleted?
give up?

@samuelmaddock
Copy link
Member

@aimergenge The PR was closed as it's blocked by #19447

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable PDF Viewer
9 participants