Copy link to clipboard
Copied
Is it possible to access the underlying features of nw.js (node-webkit) in a CEP panel? For example, nw.js exposes the Chrome extension API to view cookies.
https://nwjs.readthedocs.io/en/latest/References/Chrome%20Extension%20APIs/
The CEP-Resources docs indicate that CEP 11.1 uses nw.js 0.50.1. https://github.com/Adobe-CEP/CEP-Resources/blob/master/CEP_11.x/Documentation/CEP%2011.1%20HTML%20Ex...
Thanks so much for any guidance.
nw.js features are not available as in CEP there is no global nw object that exposes the nw window api, it's disabled/removed and instead the global CEP object is provided which provides Adobe Host apis, you can't neither use nw dom features like nwdirectory.
Copy link to clipboard
Copied
Sounds encouraging; haven't tried it. Let us know what you find, in your testing!
Copy link to clipboard
Copied
I see that window.chrome does not have the properties that nw.js affords:
window.chrome
// > {loadTimes: f, csi: f}
window.chrome.cookies
// > undefined
I poked around a fair amount to see if nw.js's version of chrome is stashed away somewhere but haven't come up with anything.
Copy link to clipboard
Copied
Potentially relevant:
https://medium.com/adobetech/how-to-build-a-node-js-server-in-a-panel-ba1d63ea67e2
Copy link to clipboard
Copied
nw.js features are not available as in CEP there is no global nw object that exposes the nw window api, it's disabled/removed and instead the global CEP object is provided which provides Adobe Host apis, you can't neither use nw dom features like nwdirectory.