Changeset 37868 in webkit for trunk/JavaScriptCore


Ignore:
Timestamp:
Oct 24, 2008, 3:16:09 PM (17 years ago)
Author:
[email protected]
Message:

Suggested and rubber-stamped by Geoff Garen.

Fix a crash when opening Font Picker.

The change also hopefully fixes this bug, which I could never reproduce:
https://bugs.webkit.org/show_bug.cgi?id=20241
<rdar://problem/6290576> Safari crashes at JSValueUnprotect() when fontpicker view close

  • API/JSContextRef.cpp: (JSContextGetGlobalObject): Use lexical global object instead of dynamic one.
Location:
trunk/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSContextRef.cpp

    r37845 r37868  
    121121
    122122    // It is necessary to call toThisObject to get the wrapper object when used with WebCore.
    123     return toRef(exec->dynamicGlobalObject()->toThisObject(exec));
     123    return toRef(exec->lexicalGlobalObject()->toThisObject(exec));
    124124}
    125125
  • trunk/JavaScriptCore/ChangeLog

    r37861 r37868  
     12008-10-24  Alexey Proskuryakov  <[email protected]>
     2
     3        Suggested and rubber-stamped by Geoff Garen.
     4
     5        Fix a crash when opening Font Picker.
     6
     7        The change also hopefully fixes this bug, which I could never reproduce:
     8        https://bugs.webkit.org/show_bug.cgi?id=20241
     9        <rdar://problem/6290576> Safari crashes at JSValueUnprotect() when fontpicker view close
     10
     11        * API/JSContextRef.cpp: (JSContextGetGlobalObject): Use lexical global object instead of
     12        dynamic one.
     13
    1142008-10-24  Cameron Zwarich  <[email protected]>
    215
Note: See TracChangeset for help on using the changeset viewer.