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

Changeset 280999 in webkit


Ignore:
Timestamp:
Aug 12, 2021, 5:08:04 PM (5 years ago)
Author:
Chris Dumez
Message:

Regression(r273194) Exception being thrown in [WebMainThreadInvoker forwardInvocation] should be autoreleased
https://bugs.webkit.org/show_bug.cgi?id=229056

Reviewed by Geoffrey Garen.

Exception being thrown in [WebMainThreadInvoker forwardInvocation] should be autoreleased. I got this wrong
in r273194.

  • Misc/WebNSObjectExtras.mm:

(-[WebMainThreadInvoker forwardInvocation:]):

Location:
trunk/Source/WebKitLegacy/mac
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKitLegacy/mac/ChangeLog

    r280961 r280999  
     12021-08-12  Chris Dumez  <cdumez@apple.com>
     2
     3        Regression(r273194) Exception being thrown in [WebMainThreadInvoker forwardInvocation] should be autoreleased
     4        https://bugs.webkit.org/show_bug.cgi?id=229056
     5
     6        Reviewed by Geoffrey Garen.
     7
     8        Exception being thrown in [WebMainThreadInvoker forwardInvocation] should be autoreleased. I got this wrong
     9        in r273194.
     10
     11        * Misc/WebNSObjectExtras.mm:
     12        (-[WebMainThreadInvoker forwardInvocation:]):
     13
    1142021-08-12  Youenn Fablet  <youenn@apple.com>
    215
  • trunk/Source/WebKitLegacy/mac/Misc/WebNSObjectExtras.mm

    r273194 r280999  
    6464    if (exception) {
    6565        auto exceptionToThrow = std::exchange(exception, nil);
    66         @throw exceptionToThrow.get();
     66        @throw exceptionToThrow.autorelease();
    6767    } else if (returnTypeIsObject(invocation)) {
    6868        // _webkit_invokeAndHandleException retained the return value on the main thread.
Note: See TracChangeset for help on using the changeset viewer.