Comments (5)
I don't think that I use any site that uses popups to confirm or show any relevant information. As such, I have personally always considered the lack of popup support more a feature than a bug. I'm curious as to which site this might be and what your view on popups are, given that you clearly have more use for them than I have.
On the other hand, you could also ask the website to stop using popups to confirm a password reset. Other browsers such as Firefox have popups blocked by default, which to me is a good thing, although it would also be great if Vieb offered the same level of customization for the popup blocker as Firefox. The difference here being that Vieb isn't explicitly blocking them, but it's more of a default for Electron webviews. I'll just check if this webview flag can be changed for existing webviews, if so, we could think of adding settings related to popups.
from vieb.
I'll do some research on this and try to understand it better. Thanks @Jelmerro
from vieb.
I ran into this ticket again, and after some experimentation I noticed that there is no way to allow popups while also running Vieb's code in the popup window. It just opens the page itself in a new window, without any options or configuration to change this. This means that none of Vieb's features will be able to run in a popup window.
It makes more and more sense to just keep redirecting these popups to new tabs. I keep seeing this as the recommended option everywhere when they mention anything about popups, including the window.open MDN page and the previously mentioned sources.
It's for the reasons above that Vieb will not be receiving a popup permission or allow any kind of popups in the near future. I'll close this ticket as wont fix. For those that for some reason still want to enable popups in Vieb, you'll have to download the source and make your own Vieb build which permanently allows popups by adding: webview.setAttribute("allowpopups", "")
below this line.
from vieb.
I hate to bring some bad news regarding this ticket, but I can't exactly reproduce the popup behavior with some of the sites that do apparently use popups (in Firefox). My experience has actually been that those will open in a new tab without issue. In addition to that, it appears that webviews do not allow this "allowpopups" flag to be changed after the webview was created. As a result, I don't think it's possible to make this a setting without requiring a restart, or at the very least require tabs to be re-opened. Having said that, I don't think I'll be making in effort to work on this myself. If you understand Javascript you can make your own Vieb build which permanently allows popups by going to this line and adding this: webview.setAttribute("allowpopups", "")
. Keep in mind that this will permanently allow popups for every single page you visit, which might not be what you want, which is exactly why I don't see this making it's way into Vieb anytime soon. Though if anyone knows a better way to integrate the popups into Vieb's permission system, go ahead.
from vieb.
Upon inspecting the official Electron security docs, I noticed that they also recommend to leave popups disabled. Although they go into little detail as to why, I suspect that it's similar to my previous reasons listed. With more and more reasons to keep the popups blocked, I would recommend to get in touch with website owners that still use them, and to keep blocking them with Vieb. I'll update the ticket title to better reflect the changes needed, which would be a permission setting to OPTIONALLY allow popups.
from vieb.
Related Issues (20)
- [Enhancement] Rebase using Ungoogled-Chromium and Thorium's performance patches HOT 1
- Youtube player performance degradation HOT 24
- Enough State Export+Import to Build Live Sync HOT 8
- Android Port HOT 2
- Proposal for design of CLI HOT 4
- Issue trying to load Mozilla Hubs HOT 1
- [Windows-only] Vieb does not fully quit on Windows because deleting files freezes the entire app HOT 14
- Nextjs onClick won't work HOT 2
- [toc] when showing the toc for the first time, show it expanded instead of collapsed HOT 7
- [markdown] Add the possibility to load local resources HOT 11
- :set mouse= does not change it's value HOT 3
- Support for NT 6.1 HOT 3
- Add the ability to group tabs by tagging them HOT 1
- Not working on raspberry pi HOT 1
- Add a setting to customize the `action.editWithVim` filename
- libuuid error on opensuse tumbleweed HOT 2
- userstyle not applying to local files HOT 1
- Double quotes are escaped and included in string HOT 2
- Command history like in vim HOT 3
- Vieb 12.0.0 adblocker prevents some sites from loading HOT 4
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 vieb.