• andersca@apple.com's avatar
    Remove unsafe uses of AtomicallyInitializedStatic · 22910079
    andersca@apple.com authored
    https://bugs.webkit.org/show_bug.cgi?id=126838
    
    Reviewed by Andreas Kling.
    
    AtomicStrings are per thread so any static initialization of them is potentially dangerous
    unless it's certain that they're only ever used from the same thread.
    
    This goes against using them with AtomicallyInitializedStatic, so just create AtomicStrings where needed.
    (This is highly unlikely to have any real negative performance impact since these two functions
    aren't called very frequently).
    
    * loader/CrossOriginAccessControl.cpp:
    (WebCore::passesAccessControlCheck):
    * page/PerformanceResourceTiming.cpp:
    (WebCore::passesTimingAllowCheck):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@161812 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    22910079