Comments (6)
Looks like a bug in Jailed, I will have to investigate on this by installing Electron.
The disconnect event should not fire first, upon connection it fires either connection event, or failure..
from jailed.
Thank you very much - let me know if i can help you.
from jailed.
Well actually you can, if you try to debug it yourself ;-)
I will have a look at the issue, but cannot promise when, since I am not familiar with Electron, and besides there is a bunch of tickets for the project, and I have only limited amount of time..
from jailed.
Can you maybe include the callstack of the mentioned exception?
from jailed.
Sure, i will debug it as soon as i have a clue what the reason may be.
Uncaught TypeError: this._connect is not a function(…)DynamicPlugin @ .../jailed.js:612
(anonymous function) @ VM189:2
InjectedScript._evaluateOn @ VM184:875
InjectedScript._evaluateAndWrap @ VM184:808
InjectedScript.evaluate @ VM184:664
It is worth mentioning that this happens only in the live dev-console after live requiring jailed and executing just a plugin (without any special arguments).
Intercepting the constructor of DynamicPlugin
(with debugger;
in the jailed.js:611) showed that all methods and attributes were missing at this point besides from this._code
and this._initialInterface
.
I will try to do some more investigations on this issue (if any promising further tests come in mind).
from jailed.
1st Update - running jailed in the Node-REPL (5.5.0) works:
> var code = "application.remote.log('Hello from the plugin!');";
undefined
> var api = { log: console.log };
undefined
> var plugin = new jailed.DynamicPlugin(code, api);
undefined
> Hello from the plugin!
from jailed.
Related Issues (20)
- unable to find application object
- Dom manipulation in jailed HOT 1
- Write code without application.remote HOT 2
- Just tried the base example - Getting permission issue HOT 5
- Why is the Web Worker inside an iframe? HOT 4
- Exposing values from the app to the jailed worker. HOT 1
- Best way to pass large data set into jailed script (browser)?
- Cannot read property 'whenEmitted' of undefined
- Add setting for "fallback to iframe jailing only" functionality, and timeout value
- Improve Jail Isolation via Content-Security-Policy HOT 1
- CVE-2022-23923 HOT 2
- Pass values to jailed code HOT 2
- Passing interface with sub functions not working
- Sandbox Escape Bug in jailed with Node.js
- Sandbox Escape Bug in jailed with Node.js
- Sandbox Escape in jailed with Node.js
- Sandbox Escape Bug in jailed with Node.js
- Sandbox Escape Bug in jailed with Node.js
- Sandbox Escape Bug in jailed with Node.js
- Sandbox Escape Bug in jailed with Node.js
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 jailed.