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
Flash SWF content not correctly loaded in Electron 7 #20744
Comments
Introduced with v7.0.0-beta.4 |
This also seems to manifest on Mac. |
Confirmed on Windows and Mac. |
Same in 7.1.2 :( |
some in 7.1.2 not in 6.0.7 |
Same in 8.0.0-beta.3 |
Same in 8.0.0-beta.3 and 7.1.2 |
Anyone here know which version of electron supports flash in MacOS ? |
This is also still broken in 7.1.3 |
If someone here is looking for the last version known to work with flash, it will be 6.1.2 |
Anything before v7 works. v7 and after are broken, since the bug was patched into master. |
The last version it works with is 7.0.0-beta.3, in beta.4 they updated chromium which broke it. |
Could that Chromium commit be the cause? |
Using flash version 32.0.0.270 does not work. |
Can confirm, I also tried and it did not work |
Did you use 7.0.0-beta3 ? |
7.0.0-beta.3 and earlier will work with pretty much any flash version, including 32.0.0.303. |
Any updates? Workaround? The last working version is 6.1.2 for flash 32.0.0.238. |
You're right there was a mistake in my code. |
Updates? |
The problem has nothing to do with the sandboxing problem suggested in #20309. It is actually caused by a bad header :) Chromium added more complex CORS handling that required consumers (like Electron) to register list of 'safe' headers that are exempt from the CORS process. One such header is X-Requested-With which is injected by the Flash plugin. Since that change is missing in Electron, the CORS handler is rejecting the request (because it has an unrecognized header) and you get the The fix is to amend
For more info - check out the relevant Chromium ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=940331 |
Same in 7.1.7 |
Same in v7.1.9 |
I edited electron "system_network_context_manager.cc" as @lkonstantinov said and electron build succeed. I want to testing this electron module embedding on my local project, but I don't know how to change modified electron module to local npm packages... Can anyone help me? |
@JeimeRhee - you can repack electron (instructions are on the build page here - https://electronjs.org/docs/development/build-instructions-gn ) and then just replace it I guess. |
@JeimeRhee you don't need to use it as an npm module, you can use the build version in /out and just modify the asar. Use: |
@lkonstantinov Thx for reply. I'm sorry to late checked your reply. |
Someone an tutorial how to apply the fix? |
Why a tutorial on how to apply a fix rather than a fix being committed? I'd really rather not build a custom version of Electron to use in production code where we are dealing with taking people's money |
This does work in Electron 6.1.7 (32bit at least). |
Can this be prioritized for a fix? We're reverting to Electron 6 as our app still requires flash for some (old) functionality which we can't yet deprecate. |
Indeed |
I've managed to build this locally and can confirm the fix is working. If anyone needs to fix this manually before it gets released you can check out the pull request (#22072) for the required changes. |
* fix: flash plugin Fixes #20744 * cleanup * fix linting issue
* fix: flash plugin Fixes #20744 * cleanup * fix linting issue Co-authored-by: t57ser <seve@live.at>
* fix: flash plugin Fixes #20744 * cleanup * fix linting issue Co-authored-by: t57ser <seve@live.at>
* fix: flash plugin Fixes #20744 * cleanup * fix linting issue Co-authored-by: t57ser <seve@live.at>
Preflight Checklist
Issue Details
Expected Behavior
Loading flash content through an swf file results in the correct visualization of said content
Actual Behavior
An error "GET http://interactive-mirror3.nfb.ca/FrameLoader.swf net::ERR_INVALID_ARGUMENT" appears:
To Reproduce
Try embedding this flash website in an electron project (http://bear71.nfb.ca/#/bear71) following this tutorial: https://electronjs.org/docs/tutorial/using-pepper-flash-plugin
Screenshots
Additional Information
The text was updated successfully, but these errors were encountered: