Bug 122520

Summary: WebProcess crash on SAP WebCycle web app
Product: WebKit Reporter: Anders Carlsson <andersca>
Component: New BugsAssignee: Anders Carlsson <andersca>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch darin: review+

Description Anders Carlsson 2013-10-08 13:08:23 PDT
WebProcess crash on SAP WebCycle web app
Comment 1 Anders Carlsson 2013-10-08 13:37:56 PDT
Created attachment 213714 [details]
Patch
Comment 2 Darin Adler 2013-10-08 13:56:46 PDT
Comment on attachment 213714 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=213714&action=review

> Source/WebKit2/PluginProcess/mac/PluginProcessMac.mm:509
> +    NSEvent *event = [NSEvent otherEventWithType:NSApplicationDefined
> +                                        location:NSMakePoint(0, 0)
> +                                   modifierFlags:0
> +                                       timestamp:0.0
> +                                     windowNumber:0
> +                                         context:nil
> +                                         subtype: 0
> +                                           data1:0
> +                                           data2:0];

Would be nice to format this in a less high-maintenance way without the lined up colons. Also, subtype has a space after it.

> Source/WebKit2/WebProcess/mac/WebProcessMac.mm:224
> +    ASSERT([NSApp isRunning]);
> +    [NSApp stop:nil];
> +    NSEvent *event = [NSEvent otherEventWithType:NSApplicationDefined
> +                                        location:NSMakePoint(0, 0)
> +                                   modifierFlags:0
> +                                       timestamp:0.0
> +                                     windowNumber:0
> +                                         context:nil
> +                                         subtype: 0
> +                                           data1:0
> +                                           data2:0];
> +    [NSApp postEvent:event atStart:true];

Should share this code with PluginProcess::stopRunLoop.
Comment 3 Anders Carlsson 2013-10-08 14:04:48 PDT
Committed r157137: <http://trac.webkit.org/changeset/157137>