Changeset 223934 in webkit


Ignore:
Timestamp:
Oct 24, 2017 3:23:12 PM (7 years ago)
Author:
achristensen@apple.com
Message:

Selecting and right-clicking URL-like strings with IDNA-disallowed characters in host or authority causes rendering engine crash
https://bugs.webkit.org/show_bug.cgi?id=174267

Reviewed by Tim Horton.

Source/WebKit:

  • WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:

(WKBundlePageCanHandleRequest):

Tools:

  • TestWebKitAPI/Tests/WebKit/CanHandleRequest_Bundle.cpp:

(TestWebKitAPI::runTest):

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r223922 r223934  
     12017-10-24  Alex Christensen  <achristensen@webkit.org>
     2
     3        Selecting and right-clicking URL-like strings with IDNA-disallowed characters in host or authority causes rendering engine crash
     4        https://bugs.webkit.org/show_bug.cgi?id=174267
     5
     6        Reviewed by Tim Horton.
     7
     8        * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp:
     9        (WKBundlePageCanHandleRequest):
     10
    1112017-10-24  Chris Dumez  <cdumez@apple.com>
    212
  • trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp

    r222392 r223934  
    423423bool WKBundlePageCanHandleRequest(WKURLRequestRef requestRef)
    424424{
     425    if (!requestRef)
     426        return false;
    425427    return WebPage::canHandleRequest(toImpl(requestRef)->resourceRequest());
    426428}
  • trunk/Tools/ChangeLog

    r223929 r223934  
     12017-10-24  Alex Christensen  <achristensen@webkit.org>
     2
     3        Selecting and right-clicking URL-like strings with IDNA-disallowed characters in host or authority causes rendering engine crash
     4        https://bugs.webkit.org/show_bug.cgi?id=174267
     5
     6        Reviewed by Tim Horton.
     7
     8        * TestWebKitAPI/Tests/WebKit/CanHandleRequest_Bundle.cpp:
     9        (TestWebKitAPI::runTest):
     10
    1112017-10-24  Eric Carlson  <eric.carlson@apple.com>
    212
  • trunk/Tools/TestWebKitAPI/Tests/WebKit/CanHandleRequest_Bundle.cpp

    r177506 r223934  
    5757static bool runTest()
    5858{
    59     return canHandleURL("about:blank") && canHandleURL("emptyscheme://") && !canHandleURL("notascheme://");
     59    return !WKBundlePageCanHandleRequest(nullptr) && canHandleURL("about:blank") && canHandleURL("emptyscheme://") && !canHandleURL("notascheme://");
    6060}
    6161
Note: See TracChangeset for help on using the changeset viewer.