Changeset 57103 in webkit


Ignore:
Timestamp:
Apr 5, 2010 4:54:56 PM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-05 John Gregg <johnnyg@google.com>

Reviewed by Darin Adler.

Notifications should not resolve an empty icon parameter as a relative URL
https://bugs.webkit.org/show_bug.cgi?id=36862

  • fast/notifications/notifications-no-icon-expected.txt: Added.
  • fast/notifications/notifications-no-icon.html-disabled: Added.

2010-04-05 John Gregg <johnnyg@google.com>

Reviewed by Darin Adler.

Notifications should not resolve an empty icon parameter as a relative URL
https://bugs.webkit.org/show_bug.cgi?id=36862

  • notifications/Notification.cpp: (WebCore::Notification::Notification):
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r57100 r57103  
     12010-04-05  John Gregg  <johnnyg@google.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Notifications should not resolve an empty icon parameter as a relative URL
     6        https://bugs.webkit.org/show_bug.cgi?id=36862
     7
     8        * fast/notifications/notifications-no-icon-expected.txt: Added.
     9        * fast/notifications/notifications-no-icon.html-disabled: Added.
     10
    1112010-04-05  Sheriff Bot  <webkit.review.bot@gmail.com>
    212
  • trunk/WebCore/ChangeLog

    r57101 r57103  
     12010-04-05  John Gregg  <johnnyg@google.com>
     2
     3        Reviewed by Darin Adler.
     4
     5        Notifications should not resolve an empty icon parameter as a relative URL
     6        https://bugs.webkit.org/show_bug.cgi?id=36862
     7
     8        * notifications/Notification.cpp:
     9        (WebCore::Notification::Notification):
     10
    1112010-04-05  Darin Adler  <darin@apple.com>
    212
  • trunk/WebCore/notifications/Notification.cpp

    r56756 r57103  
    7575    }
    7676
    77     m_iconURL = context->completeURL(contents.icon());
     77    if (!contents.icon().isEmpty())
     78        m_iconURL = context->completeURL(contents.icon());
    7879    if (!m_iconURL.isEmpty() && !m_iconURL.isValid()) {
    7980        ec = SYNTAX_ERR;
Note: See TracChangeset for help on using the changeset viewer.