Bug 95249 - [Mac] Add iconURL to WebNotification
Summary: [Mac] Add iconURL to WebNotification
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.8
: P2 Normal
Assignee: Jon Lee
URL:
Keywords: InRadar
Depends on:
Blocks: 77969 95232
  Show dependency treegraph
 
Reported: 2012-08-28 14:46 PDT by Jon Lee
Modified: 2012-08-29 10:12 PDT (History)
3 users (show)

See Also:


Attachments
Patch (1.82 KB, patch)
2012-08-28 14:51 PDT, Jon Lee
jberlin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jon Lee 2012-08-28 14:46:50 PDT
On the WK1 side WebNotification was missing an accessor to the notification's iconURL. It is already available on WK2.
Comment 1 Radar WebKit Bug Importer 2012-08-28 14:47:02 PDT
<rdar://problem/12192060>
Comment 2 Jon Lee 2012-08-28 14:51:38 PDT
Created attachment 161065 [details]
Patch
Comment 3 Alexey Proskuryakov 2012-08-29 09:32:39 PDT
Comment on attachment 161065 [details]
Patch

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

> Source/WebKit/mac/WebView/WebNotification.mm:118
> +    ASSERT(core(self));
> +    return core(self)->iconURL();

I'm not sure if this kind of ASSERT is useful. We'd get a very unambiguous crash in actual code, so there is no need to help debugging by adding the assertion.
Comment 4 Jon Lee 2012-08-29 10:06:16 PDT
(In reply to comment #3)
> (From update of attachment 161065 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=161065&action=review
> 
> > Source/WebKit/mac/WebView/WebNotification.mm:118
> > +    ASSERT(core(self));
> > +    return core(self)->iconURL();
> 
> I'm not sure if this kind of ASSERT is useful. We'd get a very unambiguous crash in actual code, so there is no need to help debugging by adding the assertion.

I can remove it, as well as all the other instances in the file.
Comment 5 Jon Lee 2012-08-29 10:12:06 PDT
Committed r127009: <http://trac.webkit.org/changeset/127009>