Skip to content

headless mode is not staying invisible #6513

Closed
@umurpza

Description

@umurpza

NWJS Version : 0.29.0
Operating System : Windows 10

Expected behavior
headless mode should be invisible

Actual behavior
when win.maximize() is called, an outline of the window is shown with a solid black middle.

How to reproduce

index.js
nw.Window.open(ssUrl, { 'new_instance': false, 'id': 'screenshot-webkit2', 'frame': false, 'transparent': false, 'show_in_taskbar': false, 'fullscreen': false, 'resizable': false, 'show': false }, function (win) { win.maximize(); win.capturePage(function (buffer) { console.log('capturing page'); try { fs.writeFile(pngPath.toString(), buffer, {}, function (err) { if (err) throw err; console.log('File saved.'); res.send(pngPath); }); } catch (e) { console.log(e.stack); res.send(e.stack); } finally { win.close(); } }, {format: 'png', datatype: 'buffer'}); }

package.json
"chromium-args": "--headless --disable-gpu",

Note: I have to call win.maximize() to get the full screenshot.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions