Changeset 232397 in webkit


Ignore:
Timestamp:
Jun 1, 2018 9:12:14 AM (6 years ago)
Author:
Michael Catanzaro
Message:

[GTK] Crash in WebKitFaviconDatabase when pageURL is unset
https://bugs.webkit.org/show_bug.cgi?id=186164

Reviewed by Carlos Garcia Campos.

PageURL can legitimately be null here if JavaScript does something silly with window.open.

  • UIProcess/API/glib/WebKitFaviconDatabase.cpp:

(webkitFaviconDatabaseSetIconURLForPageURL):
(webkitFaviconDatabaseSetIconForPageURL):

Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r232396 r232397  
     12018-06-01  Michael Catanzaro  <mcatanzaro@igalia.com>
     2
     3        [GTK] Crash in WebKitFaviconDatabase when pageURL is unset
     4        https://bugs.webkit.org/show_bug.cgi?id=186164
     5
     6        Reviewed by Carlos Garcia Campos.
     7
     8        PageURL can legitimately be null here if JavaScript does something silly with window.open.
     9
     10        * UIProcess/API/glib/WebKitFaviconDatabase.cpp:
     11        (webkitFaviconDatabaseSetIconURLForPageURL):
     12        (webkitFaviconDatabaseSetIconForPageURL):
     13
    1142018-05-31  Brian Burg  <bburg@apple.com>
    215
  • trunk/Source/WebKit/UIProcess/API/glib/WebKitFaviconDatabase.cpp

    r224371 r232397  
    193193        return;
    194194
     195    if (pageURL.isEmpty())
     196        return;
     197
    195198    const String& currentIconURL = priv->pageURLToIconURLMap.get(pageURL);
    196199    if (iconURL == currentIconURL)
     
    317320        return;
    318321
     322    if (pageURL.isEmpty())
     323        return;
     324
    319325    WebKitFaviconDatabasePrivate* priv = database->priv;
    320326    SetForScope<bool> change(priv->isSettingIcon, true);
Note: See TracChangeset for help on using the changeset viewer.