Open Bug 426686 Opened 13 years ago Updated 6 years ago

Allow option to deny all cookies from a page

Categories

(SeaMonkey :: UI Design, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: realgrouchy, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080313 SeaMonkey/1.1.9

(Note: this is not the same as Bug 91784 or 129318)

When your cookie settings are set so that you are prompted for each one, you can tell the browser to deny all cookies from a certain site. However, there are some pages which set cookies for many different sites, and each one must be denied separately.

On more than one occasion, I have been delayed from viewing content (or closing the window) because I've been inundated with a half-dozen or more cookie prompts. There is no way to stop them once the page has started to load, especially if you're not fast enough to close the window or stop the page loading immediately after clicking the "deny" button on a prompt.

Conceivably, a web page could try to set cookies for dozens--or even hundreds--of domains (or sub-domains), each one prompting the user for action. This effectively (though not technically) 'crashes' the browser.

I would suggest that in addition to the "Allow", "Allow for Session", and "Deny" buttons, that a "Deny all cookies from this page" option be added. I would be so very happy if it were!

I do not want to deny all cookies globally.

Reproducible: Always
Blocks: 426830
No longer blocks: 426830
I'm not sure how this would work with a page with (i)frames.  A better solution would be to provide some level of interaction with the window when modal dialog is up (it's easier to DOS the user with alerts) (see bug 123913, bug 59314 and bug 61098).
Assignee: general → nobody
Component: General → XP Apps: GUI Features
QA Contact: general → guifeatures
Version: unspecified → Trunk
Component: XP Apps: GUI Features → UI Design
Are these cookie prompts still modal? If not then the menu option could be used as a workaround (Tools -> Cookie Manager -> Block Cookies from This Website).
(In reply to chAlx from comment #2)
> Are these cookie prompts still modal? If not then the menu option could be
> used as a workaround (Tools -> Cookie Manager -> Block Cookies from This
> Website).

Modal? Were they ever? Often I to see a number of cookie prompts appearing on top of each other before I have the time to answer them (usually, in such a case, by "deny"ing cookies from advertisers). This runs the gamut from Firefox 31.2.1esrpre (and, I think, earlier) to SeaMonkey 2.33a1.
(In reply to Tony Mechelynck [:tonymec] from comment #3)
> Modal? Were they ever?

They were (see comment 1). Now they are not. So "Block Cookies from This Website" should be available from Tools menu while alerts are popping-up on top of the page.

realgrouchy, could You reproduce the reported behavior and try this workaround? Not sure if it is the solution.
Flags: needinfo?(realgrouchy)
This is not a workaround and this will not work. I am talking about interrupting a page that generates dozens of cookie dialogs; the cookies are not necessarily all from the same website. 

- Multiple dialog boxes may already be open for a page, which may have cookies from the same site and/or from different sites

- If a page has six open dialog boxes asking me to accept cookies for "Microsoft.com", I will have to click each of them; clicking the first one will not dismiss the other open ones (even if I selected "remember my selection"). It will, however, prevent other dialogs from opening.

- If a page has six open dialog boxes asking me to accept cookies for "1.microsoft.com", "2.microsoft.com" ... "6.microsoft.com" I must dismiss them separately. As more are generated from "{x+1}.microsoft.com", I cannot stop them from being generated if they are generated too quickly for me to be able to escape. This is the main situation I am talking about. I want to stop new cookie dialogs associated with this *page*, not necessarily whether the URL they are asking about is the same as the URL for the *site* the page is on. A page could effectively hang your browser by generating an infinite loop of cookie dialogs for "{x+1}.domain.com" with no ability for the user to close the page or prevent the page from loading since the cookie dialogs would have to each be dismissed.

- When I have a dialog box open asking me to accept cookies, I don't seem to be able to access the menus (I am running SM 2.32)

I also reported a consequence of when I'm trying to rapidly dismiss cookie dialogs (in hope of being able to hit "esc" to stop the page from loading more before the next dialog is generated): see bug 615687 (which includes attachment 570592 [details] showing cookie dialogs for different URLs being generated by the same page)

I hope this answers your questions. Apologies for the delay in replying.
- RG>
Flags: needinfo?(realgrouchy)
(In reply to realgrouchy from comment #5)
> - When I have a dialog box open asking me to accept cookies, I don't seem to
> be able to access the menus (I am running SM 2.32)

Well, they are not actually modal. The background is darken but all controls are still working: page links, menu options etc (SM2.32.1 @Linux).

AFAIK cookie permissions are not related to the page it was asked for. (Even these annoying dialogs are still visible after closing the related page tab.) Thus it is not possible to deny cookies from some source targeted for one site only. Actually there should be no cookies from another sites because of the cross-domain restrictions.

Maybe the issue would be more clear if we could check a testcase url. There are not so much sites using dozens of subdomain content with cookies.
You need to log in before you can comment on or make changes to this bug.