Bug 152870

Summary: Cleanup: XSS Auditor should avoid re-evaluating the parsed script tag
Product: WebKit Reporter: Daniel Bates <dbates>
Component: WebCore Misc.Assignee: Daniel Bates <dbates>
Status: RESOLVED FIXED    
Severity: Normal CC: cdumez, commit-queue, esprehn+autocc, gyuyoung.kim
Priority: P2 Keywords: BlinkMergeCandidate, XSSAuditor
Version: WebKit Local Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch none

Description Daniel Bates 2016-01-07 16:57:40 PST
Currently the XSS Auditor caches the decoded start tag of a script as an optimization to avoid decoding it again when filtering the character data of the script. We can do reduce memory usage by caching a boolean as to whether HTTP response contains the decoded string instead of caching the decoded string.

Blink Issue: <https://chromiumcodereview.appspot.com/19446002>
Comment 1 Daniel Bates 2016-01-07 16:58:36 PST
Created attachment 268508 [details]
Patch
Comment 2 Brent Fulgham 2016-01-13 12:48:50 PST
Comment on attachment 268508 [details]
Patch

r=me.
Comment 3 WebKit Commit Bot 2016-01-13 13:45:21 PST
Comment on attachment 268508 [details]
Patch

Clearing flags on attachment: 268508

Committed r194982: <http://trac.webkit.org/changeset/194982>
Comment 4 WebKit Commit Bot 2016-01-13 13:45:24 PST
All reviewed patches have been landed.  Closing bug.