Comments (4)
Though even if the viewer never times out, we may still need to communicate nested event loops. If the plugin expects its timers to still fired in a nested event loop, we'll need to be careful about things.
Really, blocking calls are just a terrible terrible idea.
from nspluginwrapper.
This appears to also hit file upload dialogs. From a recent Google search:
flash-plugin and nspluginwrapper have an interesting conflict where
file selection boxes used for flash upload dialogs get closed randomly.
from nspluginwrapper.
Alright, we do have to support a recursive GTK event loop. Disassembling flashplayer suggests it calls gtk_dialog_run when it creates a GtkFileSelector. (Wasn't that been deprecated for GtkFileChooser forever ago.) Alerts probably are a browser-side child event loop to deal with later. For plug-in-side ones, we probably want to detect them (hijack the poll func I guess) and then send the wrapper a message that we wish to recurse. And then the wrapper does a recursive event loop to follow suit and we continue with the sync event stuff. (Which will have to be rewritten AGAIN to use a poll func hack.)
from nspluginwrapper.
One nuisance: what happens when the browser event loop isn't glib? Nested Xt event loops aren't worth supporting (if that's possible), but hopefully the world will move to NPN_PluginThreadAsyncCall. If we do (#17) before Flash does, things may be complicated... likely any "launch recursive event loop" RPC will need to have a fallback of some sort. Also such an RPC probably doesn't quite fit the method call pattern everywhere else as it'll integrate with sync/unsync.
On the other hand, browsers aren't going to stop using the glib event loop before Flash does, so #17 is probably uninteresting.
from nspluginwrapper.
Related Issues (20)
- Adobe Reader Zombies HOT 20
- nspluginwrapper removes symlinks to valid plugins on update HOT 2
- Chrome crashes on wrapper update HOT 2
- Manage viewer binary out-of-band
- Don't execute code from the plugin in config tool HOT 1
- Investigate punting windowed mode indirection
- Cannot compile the project HOT 1
- Wrapper fails to connect to viewer on armel builds?
- NSPlugin Viewer crashes HOT 6
- Viewer lies about NPNVnetscapeWindow HOT 1
- build failure due to including gthread.h directly HOT 1
- Link with gthread-2.0 when using g_thread_init per GLIB API docs HOT 1
- C++ library dependencies not provided
- flash-plugin-11.2.202.233 and nspluginwrapper keep crashing under Fedora 16 HOT 8
- Update of normal browser plugin make nspluginwrapper loose "wrapped" plugin HOT 4
- Should report a native plugin won't be wrapped, when run in verbose mode
- File in the current directory is not found without a leading ./ HOT 3
- Support for merged options
- Newer FireFox Crashes with errors over this plugin. HOT 4
- Android ?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nspluginwrapper.