question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Window features are ignored

See original GitHub issue

I can’t find any way to set window features. I submit an object as the features property, and none of the mappings in that object are set as window features. That includes numeric values, like left or top, and boolean values like titlebar or scrollbars (I tried a boolean value and also string “yes/no”). I also tried setting the name property to “_blank” or leaving it out, since the JS API says strWindowFeatures will be ignored if opening an existing window. No matter what I do, all window features are ignored. EDIT: I found that width and height features are respected. But no others AFAICT.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
MidnightJavacommented, Aug 17, 2020

Thanks for your reply. In that case, there is at least an issue with the library’s API, correct? I was trying to do what the API said I could do, and it was silently ignored. If most modern browsers override this behavior, then perhaps it should be removed from the API. Or at least a note should be added saying that this will not work on most browsers.

1reaction
DerekSteinkecommented, Aug 17, 2020

I agree completely. At the least, a note in the docs should be included to make users aware of likely compatibility issues. I think there could still some cases where Window features are usable; like native applications running browser engines (stuff like Electron app). Even then, I’d think there are better options.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Features and functionality removed in Windows client
Feature Details and mitigation Support removed HomeGroup 1803 XPS Viewer 1803 Tile Data Layer To be replaced by the Tile Store. 1709
Read more >
The 10 Most Overlooked Windows 10 Features - MakeUseOf
The 10 Most Overlooked Windows 10 Features · 1. Windows Sonic Surround Sound · 2. Virtual Desktops · 3. Storage Sense · 4....
Read more >
Why do Windows Feature Updates Ignore the After ...
Windows Feature Updates (e.g. 1903, 1909, 2004, 20H2) ignore the After Deployment 'do not reboot' option and restart the server anyway.
Read more >
Do browsers ignore window parameters when opening new ...
By placing these restrictions on script-opened windows, the Window Restrictions security feature prevents malicious code from hiding information ...
Read more >
OBN - Popups ignore Window Features - SAP Community
When my application opens the page via Object Based Navigation, the folloiwng properties seem to be ignored. - Height of External Window =...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found