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

Changeset 203442 in webkit


Ignore:
Timestamp:
Jul 19, 2016, 8:23:18 PM (10 years ago)
Author:
BJ Burg
Message:

Web Automation: WebAutomationSessionProxy's HashMaps should support '0' as valid keys
https://bugs.webkit.org/show_bug.cgi?id=159957
<rdar://problem/27376446>

Reviewed by Joseph Pecoraro.

  • WebProcess/Automation/WebAutomationSessionProxy.h:

Use UnsignedWithZeroKeyHashTraits to avoid problems with zero as a key.

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r203414 r203442  
     12016-07-19  Brian Burg  <bburg@apple.com>
     2
     3        Web Automation: WebAutomationSessionProxy's HashMaps should support '0' as valid keys
     4        https://bugs.webkit.org/show_bug.cgi?id=159957
     5        <rdar://problem/27376446>
     6
     7        Reviewed by Joseph Pecoraro.
     8
     9        * WebProcess/Automation/WebAutomationSessionProxy.h:
     10        Use UnsignedWithZeroKeyHashTraits to avoid problems with zero as a key.
     11
    1122016-07-19  Anders Carlsson  <andersca@apple.com>
    213
  • trunk/Source/WebKit2/WebProcess/Automation/WebAutomationSessionProxy.h

    r203245 r203442  
    7272    String m_sessionIdentifier;
    7373
    74     HashMap<uint64_t, JSObjectRef> m_webFrameScriptObjectMap;
    75     HashMap<uint64_t, Vector<uint64_t>> m_webFramePendingEvaluateJavaScriptCallbacksMap;
     74    HashMap<uint64_t, JSObjectRef, DefaultHash<uint64_t>::Hash, WTF::UnsignedWithZeroKeyHashTraits<uint64_t>> m_webFrameScriptObjectMap;
     75    HashMap<uint64_t, Vector<uint64_t>, DefaultHash<uint64_t>::Hash, WTF::UnsignedWithZeroKeyHashTraits<uint64_t>> m_webFramePendingEvaluateJavaScriptCallbacksMap;
    7676};
    7777
Note: See TracChangeset for help on using the changeset viewer.