Changeset 44115 in webkit


Ignore:
Timestamp:
May 24, 2009 9:34:52 AM (15 years ago)
Author:
Darin Adler
Message:

2009-05-24 Darin Adler <Darin Adler>

Reviewed by Dan Bernstein and Tim Hatcher.

<rdar://problem/6913045> New console message spewed by automator CLI after installing JetstreamLeo40B21a

  • Misc/WebNSObjectExtras.mm: (-[WebMainThreadInvoker initWithTarget:]): Tweaked argument name. (-[WebMainThreadInvoker forwardInvocation:]): Removed call to retainArguments. This was unneeded and in the case of a newly created but not yet fully initialized NSView object it caused the abovementioned bug. (-[WebMainThreadInvoker handleException:]): Tweaked argument name. Added assertion. (-[NSInvocation _webkit_invokeAndHandleException:]): Tweaked name of local variable that holds the exception.
Location:
trunk/WebKit/mac
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebKit/mac/ChangeLog

    r44096 r44115  
     12009-05-24  Darin Adler  <darin@apple.com>
     2
     3        Reviewed by Dan Bernstein and Tim Hatcher.
     4
     5        <rdar://problem/6913045> New console message spewed by automator CLI after installing JetstreamLeo40B21a
     6
     7        * Misc/WebNSObjectExtras.mm:
     8        (-[WebMainThreadInvoker initWithTarget:]): Tweaked argument name.
     9        (-[WebMainThreadInvoker forwardInvocation:]): Removed call to retainArguments.
     10        This was unneeded and in the case of a newly created but not yet fully initialized
     11        NSView object it caused the abovementioned bug.
     12        (-[WebMainThreadInvoker handleException:]): Tweaked argument name. Added assertion.
     13        (-[NSInvocation _webkit_invokeAndHandleException:]): Tweaked name of local variable
     14        that holds the exception.
     15
    1162009-05-23  David Kilzer  <ddkilzer@apple.com>
    217
  • trunk/WebKit/mac/Misc/WebNSObjectExtras.mm

    r40100 r44115  
    11/*
    2  * Copyright (C) 2008 Apple Inc. All rights reserved.
     2 * Copyright (C) 2008, 2009 Apple Inc. All rights reserved.
    33 *
    44 * Redistribution and use in source and binary forms, with or without
     
    2929#import "WebNSObjectExtras.h"
    3030
     31#import <wtf/Assertions.h>
    3132
    3233@interface WebMainThreadInvoker : NSProxy
     
    3940@implementation WebMainThreadInvoker
    4041
    41 - (id)initWithTarget:(id)theTarget
     42- (id)initWithTarget:(id)passedTarget
    4243{
    43     target = theTarget;
     44    target = passedTarget;
    4445    return self;
    4546}
     
    4849{
    4950    [invocation setTarget:target];
    50     [invocation retainArguments];
    5151    [invocation performSelectorOnMainThread:@selector(_webkit_invokeAndHandleException:) withObject:self waitUntilDone:YES];
    5252    if (exception) {
     
    6262}
    6363
    64 - (void)handleException:(id)e
     64- (void)handleException:(id)passedException
    6565{
    66     exception = [e retain];
     66    ASSERT(!exception);
     67    exception = [passedException retain];
    6768}
    6869
    6970@end
    70 
    7171
    7272@implementation NSInvocation (WebMainThreadInvoker)
     
    7676    @try {
    7777        [self invoke];
    78     } @catch (id e) {
    79         [exceptionHandler handleException:e];
     78    } @catch (id exception) {
     79        [exceptionHandler handleException:exception];
    8080    }
    8181}
    8282
    8383@end
    84 
    8584
    8685@implementation NSObject (WebNSObjectExtras)
Note: See TracChangeset for help on using the changeset viewer.