⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 249245 in webkit


Ignore:
Timestamp:
Aug 28, 2019, 11:26:38 PM (7 years ago)
Author:
Fujii Hironori
Message:

[Win] MiniBrowser crashes in WKURLCopyString if WKPageCopyActiveURL returns null
https://bugs.webkit.org/show_bug.cgi?id=201215

Reviewed by Don Olmstead.

MiniBrowser crashed if it was going to go to a unreachable page
because WKPageCopyActiveURL returned a nullptr.

  • MiniBrowser/win/WebKitBrowserWindow.cpp:

(createString): Added null checking of the argument.

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r249230 r249245  
     12019-08-28  Fujii Hironori  <Hironori.Fujii@sony.com>
     2
     3        [Win] MiniBrowser crashes in WKURLCopyString if WKPageCopyActiveURL returns null
     4        https://bugs.webkit.org/show_bug.cgi?id=201215
     5
     6        Reviewed by Don Olmstead.
     7
     8        MiniBrowser crashed if it was going to go to a unreachable page
     9        because WKPageCopyActiveURL returned a nullptr.
     10
     11        * MiniBrowser/win/WebKitBrowserWindow.cpp:
     12        (createString): Added null checking of the argument.
     13
    1142019-08-28  Tim Horton  <timothy_horton@apple.com>
    215
  • trunk/Tools/MiniBrowser/win/WebKitBrowserWindow.cpp

    r249039 r249245  
    5050std::wstring createString(WKURLRef wkURL)
    5151{
     52    if (!wkURL)
     53        return { };
    5254    WKRetainPtr<WKStringRef> url = adoptWK(WKURLCopyString(wkURL));
    5355    return createString(url.get());
Note: See TracChangeset for help on using the changeset viewer.