Changeset 206881 in webkit


Ignore:
Timestamp:
Oct 6, 2016 2:03:54 PM (8 years ago)
Author:
andersca@apple.com
Message:

Crash when ApplePaySession.completeMerchantValidation is not passed a dictionary
https://bugs.webkit.org/show_bug.cgi?id=163074
rdar://problem/27824842

Reviewed by Tim Horton.

Raise a type error on a null initializer object.

  • Modules/applepay/ApplePaySession.cpp:

(WebCore::ApplePaySession::completeMerchantValidation):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r206880 r206881  
     12016-10-06  Anders Carlsson  <andersca@apple.com>
     2
     3        Crash when ApplePaySession.completeMerchantValidation is not passed a dictionary
     4        https://bugs.webkit.org/show_bug.cgi?id=163074
     5        rdar://problem/27824842
     6
     7        Reviewed by Tim Horton.
     8
     9        Raise a type error on a null initializer object.
     10
     11        * Modules/applepay/ApplePaySession.cpp:
     12        (WebCore::ApplePaySession::completeMerchantValidation):
     13
    1142016-10-06  Antti Koivisto  <antti@apple.com>
    215
  • trunk/Source/WebCore/Modules/applepay/ApplePaySession.cpp

    r206252 r206881  
    844844    }
    845845
     846    if (!merchantSessionDictionary.initializerObject()) {
     847        ec = TypeError;
     848        return;
     849    }
     850
    846851    auto& document = *downcast<Document>(scriptExecutionContext());
    847852    auto& window = *document.domWindow();
Note: See TracChangeset for help on using the changeset viewer.