Bug 107694 - [Qt][WK1] Remember denied permission for notifications
Summary: [Qt][WK1] Remember denied permission for notifications
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit Qt (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Allan Sandfeld Jensen
URL:
Keywords:
Depends on:
Blocks: 107449
  Show dependency treegraph
 
Reported: 2013-01-23 07:50 PST by Allan Sandfeld Jensen
Modified: 2013-01-30 01:29 PST (History)
2 users (show)

See Also:


Attachments
Patch (7.68 KB, patch)
2013-01-23 08:00 PST, Allan Sandfeld Jensen
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Allan Sandfeld Jensen 2013-01-23 07:50:21 PST
We currently only remember granted permissions for notifications. While the basic permission level for the application is the same without a user permission, it means the webpage can ask over and over after the user specifically denied it.
Comment 1 Allan Sandfeld Jensen 2013-01-23 08:00:46 PST
Created attachment 184236 [details]
Patch
Comment 2 Jocelyn Turcotte 2013-01-24 06:15:49 PST
Comment on attachment 184236 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=184236&action=review

> Source/WebKit/qt/WebCoreSupport/NotificationPresenterClientQt.cpp:424
> -            callback->handleEvent(Notification::permissionString(NotificationClient::PermissionAllowed));
> +            callback->handleEvent(Notification::permissionString(permission));

Is this a patch split artifact?
Comment 3 Jocelyn Turcotte 2013-01-24 06:22:38 PST
Comment on attachment 184236 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=184236&action=review

>> Source/WebKit/qt/WebCoreSupport/NotificationPresenterClientQt.cpp:424
>> +            callback->handleEvent(Notification::permissionString(permission));
> 
> Is this a patch split artifact?

Looks good to me otherwise, please remove this before landing.
Comment 4 Allan Sandfeld Jensen 2013-01-24 06:34:52 PST
(In reply to comment #2)
> (From update of attachment 184236 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=184236&action=review
> 
> > Source/WebKit/qt/WebCoreSupport/NotificationPresenterClientQt.cpp:424
> > -            callback->handleEvent(Notification::permissionString(NotificationClient::PermissionAllowed));
> > +            callback->handleEvent(Notification::permissionString(permission));
> 
> Is this a patch split artifact?

No that is correct. This method was renamed to be able to both approve and reject permissions.
Comment 5 WebKit Review Bot 2013-01-24 06:41:07 PST
Comment on attachment 184236 [details]
Patch

Rejecting attachment 184236 [details] from commit-queue.

Failed to run "['/mnt/git/webkit-commit-queue/Tools/Scripts/webkit-patch', '--status-host=queues.webkit.org', '--bot-id=gce-cq-04', 'apply-attachment', '--no-update', '--non-interactive', 184236, '--port=chromium-xvfb']" exit_code: 2 cwd: /mnt/git/webkit-commit-queue

Last 500 characters of output:
 create file /tmp/pp3OGHLx : No space left on device
patch: **** Can't create file /tmp/ppNkY7VA : No space left on device
patch: **** Can't create file /tmp/ppR4mo8A : No space left on device
patch: **** Can't create file /tmp/pp1eYnHA : No space left on device
patch: **** Can't create file /tmp/ppzAoqwB : No space left on device

Failed to run "[u'/mnt/git/webkit-commit-queue/Tools/Scripts/svn-apply', '--force', '--reviewer', 'Jocelyn Turcotte']" exit_code: 2 cwd: /mnt/git/webkit-commit-queue

Full output: http://queues.webkit.org/results/16110081
Comment 6 Jocelyn Turcotte 2013-01-24 06:49:00 PST
(In reply to comment #4)
> No that is correct. This method was renamed to be able to both approve and reject permissions.

Alright, I see it now.
Comment 7 Allan Sandfeld Jensen 2013-01-30 01:29:50 PST
Comment on attachment 184236 [details]
Patch

Clearing flags on attachment: 184236

Committed r141233: <http://trac.webkit.org/changeset/141233>
Comment 8 Allan Sandfeld Jensen 2013-01-30 01:29:54 PST
All reviewed patches have been landed.  Closing bug.