Summary: | Don't create access error strings if there is no access error | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Filip Pizlo <fpizlo> | ||||
Component: | WebCore JavaScript | Assignee: | Filip Pizlo <fpizlo> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | abarth, barraclough, eric, ggaren, mhahnenberg, msaboff, oliver, sam | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | All | ||||||
OS: | All | ||||||
Bug Depends on: | 93407 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
Filip Pizlo
2012-09-02 00:50:50 PDT
Created attachment 161839 [details]
the patch
Comment on attachment 161839 [details]
the patch
I would just remove the |result| temporary and just early return if shouldAllowAccessToFoo returns true. Thanks for fixing my regression.
(In reply to comment #2) > (From update of attachment 161839 [details]) > I would just remove the |result| temporary and just early return if shouldAllowAccessToFoo returns true. Thanks for fixing my regression. Good point! I will do that instead. Thanks for the quick review! Landed in http://trac.webkit.org/changeset/127387 |