Summary: | [V8] Get rid of delayed exception reporting in V8ConsoleMessage.cpp | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Yury Semikhatsky <yurys> | ||||||
Component: | WebCore Misc. | Assignee: | Yury Semikhatsky <yurys> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | abarth, antonm, pfeldman | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | PC | ||||||||
OS: | OS X 10.5 | ||||||||
Bug Depends on: | 8519 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
Description
Yury Semikhatsky
2010-12-14 10:22:07 PST
Created attachment 76545 [details]
Patch
Comment on attachment 76545 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=76545&action=review Great. I'm glad to be rid of this complexity. > WebCore/bindings/v8/V8DOMWindowShell.cpp:102 > + Document* document = frame->document(); > + if (!document) > + return; document can never be null. > WebCore/bindings/v8/V8DOMWindowShell.cpp:116 > + String resourceNameString = useURL ? frame->document()->url() : toWebCoreString(resourceName); You've already got document in a local variable. No need to go back to the Frame. Created attachment 79578 [details]
Patch that I'm going to land.
All comments have been addressed.
Committed r76224: <http://trac.webkit.org/changeset/76224> |