Closed ameshkov closed 7 years ago
Regarding showing the stack trace, it won't help casual users, so there's no need to put it to the regular UI. However, it makes sense to add a "Stack trace" link to the dev and beta builds.
Also, in light of this change, I am no more sure we need to merge the #11. It seems that we can easily cover it with this change in a more user-friendly manner and less false-positive blockings.
What made you think that #11 will cause more false-positives?
More complicated -> more false-positives
@seanl-adg added one more thing to the description:
Also, if pop-up is detected by a "generic" algorithm from the first version of an extension, we should show alert in the collapsed state right away.
I need a description of the following:
Tested on http://code.ptcong.com/demos/bjp/demo.html
When an 'Always allow example.org' is clicked, how are we going to notify that a domain is added to whitelist?
With a confirmation dialog it would be pretty clear. However, we should also reload the page (reload without cache).
How are we going to allow users to manage whitelisted domains, domains to use strict blocking mode, etc?
Will be discussed in another issue.
How can users enable strict blocking mode for a website?
This also should be discussed in another issue.
- Click on the alert window on that demo page triggers pop-up second time;
That's legit, that's how BetterJsPop works. It adds its own masks on each of the document's iframes, including dynamically generated ones, and trigger popup when a user clicks on it.
Testing it on http://oploverz.in
Click does not expand the alert back: https://monosnap.com/file/nraX5KMYZH0ZecC7GPvRt1hjYeunmI
http://
prefix is redundant:
https://monosnap.com/file/6gqO88vcxH77n4jbwd7bmZedTzZ7bd
Here is the task for the alerts layout: https://github.com/AdguardTeam/PopupBlocker/issues/12
Some general notes on the task:
Alert state 1
Alert is shown when you block an attempt to open a window.
example.org
: domain of the pop-up window. Clicking on this link opens the popup.Always allow example.org
: allows all the pop-up windows leading toexample.org
from the current website.Allow all pop-ups on this website
: that's simple.Alert state 2
After some time alert collapses into state 2:
Click on the "pop-up" link expands it back to the state 1.
Also, if pop-up is detected by a "generic" algorithm from the first version of an extension, we should show alert in the collapsed state right away.
How alerts are stack
Basically, they are located one under one: https://monosnap.com/file/PFeTq9dLBERo0DYPbBeadRIcuqg11U
There should be no more than 4 alerts. When fifth emerges, remove the oldest one.
Alert lifecycle
2 seconds in the state 1. 5 seconds in the state 2. Disappears after that.