Bug 94390

Summary: REGRESSION (r125912): Crashes in worker tests
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: WebCore JavaScriptAssignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, beidson
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 94220    
Bug Blocks:    
Attachments:
Description Flags
proposed fix beidson: review+

Description Alexey Proskuryakov 2012-08-17 16:06:17 PDT
Not every global object is a window.
Comment 1 Alexey Proskuryakov 2012-08-17 16:08:54 PDT
Created attachment 159220 [details]
proposed fix
Comment 2 Sam Weinig 2012-08-17 16:15:44 PDT
Comment on attachment 159220 [details]
proposed fix

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

> Source/WebCore/bindings/js/JSDOMBinding.cpp:167
> +    ScriptExecutionContext* scriptExecutionContext = globalObject->scriptExecutionContext();
> +    scriptExecutionContext->reportException(ustringToString(errorMessage), lineNumber, ustringToString(exceptionSourceURL), 0);

I think this can go on one line.
Comment 3 Alexey Proskuryakov 2012-08-17 16:28:12 PDT
Committed <http://trac.webkit.org/changeset/125946>.