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

nwjs 0.14.6 use PepperFlash wiLL show a console window and the text is "NOT SANDBOXED" #5278

Closed
teamers opened this issue Sep 7, 2016 · 15 comments
Assignees

Comments

@teamers
Copy link

teamers commented Sep 7, 2016

nwjs version :0.14.6
os:windows 7
In my project,I want support view pages include flash,so i put the plugin files (including ‘manifest.json’ of it) in the ‘PepperFlash’ subdirectory under NW.js binary.
after that, nwjs had loaded PepperFlash.this can be find in
image
but when Visit any flash website
For a split second, a console window is opened with the text NOT SANDBOXED.
image

I had try to use PepperFlash from 14.0.0.177 to 22.0.0.209,the issue always exists.
thank for your reading and looking forward to your reply

@rogerwang
Copy link
Member

@Christywl could you please verify this first?

@Christywl
Copy link
Contributor

@rogerwang , my test results:
Linux: nwjs-sdk-0.20.3 and PepperFlash 24.0.0.221, flash works fine. But there is 'NOT SANDBOXED' in the console .
Windows: nwjs-sdk-0.20.3 and PepperFlash 24.0.0.221, flash doesn't work and it shows 'Couldn't load plugin'
Windows: nwjs-sdk-0.20.3 and PepperFlash 19.0.0.245, this issue reproduced, a console window flickered.

my package.json for Windows

{
  "name": "Test",
  "main": "http://www.adobe.com/software/flash/about",
  "chromium-args": "--ppapi-flash-path=C:\\nwjs\\PepperFlash\\24.0.0.221\\pepflashplayer.dll"
}

my package.json for Linux:

{
  "name": "Test",
  "main": "http://www.adobe.com/software/flash/about/",
  "chromium-args": "--ppapi-flash-path=/home/***/.config/google-chrome/PepperFlash/24.0.0.221/libpepflashplayer.so"
}

@rogerwang
Copy link
Member

@Christywl for the 2nd scenario under which flash doesn't work, could you please try with http://docs.nwjs.io/en/latest/For%20Users/Advanced/Use%20Flash%20Plugin/

@Christywl
Copy link
Contributor

@rogerwang , I referred to the docs, put PepperFlash folder(including manifest.json/pepflashplayer.dll) under the nwjs-sdk-v0.20.3-win-x64, but 'Couldn't load plugin' still occurred. I checked with nw -url="chrome://plugins", and enabled the flash plugin. But it doesn't take effect.
cmd:
nw.exe --url=http://www.adobe.com/software/flash/about
or
nw.exe --url=http://www.adobe.com/software/flash/about --ppapi-flash-path=PepperFlash\pepflashplayer.dll

Environment:
Windows
nwjs-sdk-0.20.3
PepperFlash 24.0.0.221(built-in of Chrome)

1

2

@RohitSharma27
Copy link

RohitSharma27 commented Mar 9, 2017

I can confirm that this issue is still there in 0.14.7 LTS. @Christywl You can place the pepflashplayer.dll along with nw.exe and launch the application with these arguments --ppapi-flash-path=pepflashplayer.dll --ppapi-flash-version=<version>. In my case, a cmd window opens up and closes in a split second which says "not sandboxed". I hope you should be able to load the plugin on windows now.

@Christywl
Copy link
Contributor

@RohitSharma27 , yes, as I mentioned in my first comment(the 3rd scenario), I could reproduce your issue with nwjs-sdk-0.20.3 and PepperFlash 19.0.0.245. But if I used the latest PepperFlash 24.0.0.221, I saw 'Couldn't load plugins'. I thought your PepperFlash version may be lower than 24.0.0.221.

@rogerwang
Copy link
Member

@Christywl I just tried: latest 0.21 works with latest flash plugin 25 under windows.

@rogerwang
Copy link
Member

The console window flicker is fixed in git and will be available in the next nightly build.

@rogerwang
Copy link
Member

reopen since the patch need further review.

@rogerwang rogerwang reopened this Mar 16, 2017
@rogerwang
Copy link
Member

fixed again in git and will be available in the next nightly build.

@icemoegirl
Copy link

The console window still flicker when using webview to load flash website.
nw.js version: 0.22.0
os version: windows 10
flashplayer version: 25.0.0.148

@ghost
Copy link

ghost commented May 22, 2017

@Christywl, Warning!!!
Last picture Couldn't load plugin = It is seen wrong architecture of plugin! And make sure current 64 and 32 Bit version.

PS: It is not bug. And externalinterface always throw SecurityError :/

@josh83abc
Copy link

Hi guys!

I'm using NW.JS v30.5 and PepperFlash v29, all 32 bits, and I still have a flashing console (cmd.exe) window when using Flash content in my app! I got complains from users thinking it is a malware, so I would like to remove this windows.

The flashing console windows appears at the right moment I'm loading Flash content on the HTML page. Basically I do it at startup, but it can also be at another time

The flashing console windows lasts 100ms and don't display any message, or maybe it closes too fast to display anything.

I tried with several flash contents (SWF), some even without actionscript, the flashing window still appear. I also removed the "echo 'NOT SANDBOXED'" in pepflashplayer.dll, no effect too.

Please help, thanks in advanced
Josh

@hoseyjoe
Copy link

hoseyjoe commented Sep 12, 2018

The appearance of command line went away for me when not using SDK release. Oops, this is wrong. Computer was faster than my eyes

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

No branches or pull requests

8 participants