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

Changeset 211106 in webkit


Ignore:
Timestamp:
Jan 24, 2017, 1:22:59 PM (10 years ago)
Author:
matthew_hanson@apple.com
Message:

Merge r211065. rdar://problem/29784295

Location:
branches/safari-603-branch
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-603-branch/LayoutTests/ChangeLog

    r211100 r211106  
     12017-01-24  Matthew Hanson  <matthew_hanson@apple.com>
     2
     3        Merge r211065. rdar://problem/29784295
     4
     5    2017-01-23  Filip Pizlo  <fpizlo@apple.com>
     6
     7            SharedArrayBuffer plus WebGL should not equal CRASH
     8            https://bugs.webkit.org/show_bug.cgi?id=167329
     9
     10            Reviewed by Saam Barati.
     11
     12            This test used to crash and now it doesn't. It throws some exception.
     13
     14            * js/shared-array-buffer-webgl-expected.txt: Added.
     15            * js/shared-array-buffer-webgl.html: Added.
     16
    1172017-01-24  Matthew Hanson  <matthew_hanson@apple.com>
    218
  • branches/safari-603-branch/Source/JavaScriptCore/ChangeLog

    r211102 r211106  
     12017-01-24  Matthew Hanson  <matthew_hanson@apple.com>
     2
     3        Merge r211065. rdar://problem/29784295
     4
     5    2017-01-23  Filip Pizlo  <fpizlo@apple.com>
     6
     7            SharedArrayBuffer plus WebGL should not equal CRASH
     8            https://bugs.webkit.org/show_bug.cgi?id=167329
     9
     10            Reviewed by Saam Barati.
     11
     12            DOM unwrapping methods should return null rather than crashing. The code expects an
     13            unshared buffer, so we should return null when it's shared. The caller can then decide
     14            if they like null or not.
     15
     16            * runtime/JSArrayBufferViewInlines.h:
     17            (JSC::JSArrayBufferView::toWrapped):
     18
    1192017-01-24  Matthew Hanson  <matthew_hanson@apple.com>
    220
  • branches/safari-603-branch/Source/JavaScriptCore/runtime/JSArrayBufferViewInlines.h

    r208209 r211106  
    9292inline RefPtr<ArrayBufferView> JSArrayBufferView::toWrapped(JSValue value)
    9393{
    94     if (JSArrayBufferView* view = jsDynamicCast<JSArrayBufferView*>(value))
    95         return view->unsharedImpl();
     94    if (JSArrayBufferView* view = jsDynamicCast<JSArrayBufferView*>(value)) {
     95        if (!view->isShared())
     96            return view->unsharedImpl();
     97    }
    9698    return nullptr;
    9799}
Note: See TracChangeset for help on using the changeset viewer.