Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(388)

Issue 14327009: XSSAuditor performance regression in M26 (Closed)

Created:
7 years, 8 months ago by abarth-chromium
Modified:
7 years, 8 months ago
Reviewers:
tonyg, eseidel
CC:
blink-reviews, eseidel
Visibility:
Public.

Description

XSSAuditor performance regression in M26 The refactoring we did for the threaded parser introduced a performance regression in innerHTML because we'd boot up the XSSAuditor for fragment parsing. This CL returns to our earlier behavior of not booting up the XSSAuditor when parsing fragments. BUG=230504 TBR=eseidel Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=148792

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -0 lines) Patch
M Source/core/html/parser/HTMLDocumentParser.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/parser/XSSAuditor.h View 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/html/parser/XSSAuditor.cpp View 1 chunk +10 lines, -0 lines 2 comments Download

Messages

Total messages: 8 (0 generated)
abarth-chromium
7 years, 8 months ago (2013-04-17 21:03:22 UTC) #1
eseidel
How did you perf test this? This looks great otherwise.
7 years, 8 months ago (2013-04-17 21:05:27 UTC) #2
abarth-chromium
On 2013/04/17 21:05:27, Eric Seidel (Google) wrote: > How did you perf test this? This ...
7 years, 8 months ago (2013-04-17 21:22:44 UTC) #3
abarth-chromium
I've confirmed that this CL is a speedup on tiny-innerHTML.html when run from a web ...
7 years, 8 months ago (2013-04-21 17:13:33 UTC) #4
abarth-chromium
Eric gave this an LGTM over email. I'm going to mark it as TBR=eseidel to ...
7 years, 8 months ago (2013-04-21 19:07:36 UTC) #5
abarth-chromium
Committed patchset #1 manually as r148792 (presubmit successful).
7 years, 8 months ago (2013-04-21 19:08:18 UTC) #6
tonyg
lgtm Thanks for taking care of this. Just one question to consider if you feel ...
7 years, 8 months ago (2013-04-22 16:06:00 UTC) #7
abarth-chromium
7 years, 8 months ago (2013-04-22 18:14:55 UTC) #8
Message was sent while issue was closed.
https://codereview.chromium.org/14327009/diff/1/Source/core/html/parser/XSSAu...
File Source/core/html/parser/XSSAuditor.cpp (right):

https://codereview.chromium.org/14327009/diff/1/Source/core/html/parser/XSSAu...
Source/core/html/parser/XSSAuditor.cpp:337: if (!m_isEnabled || m_xssProtection
== ContentSecurityPolicy::AllowReflectedXSS)
On 2013/04/22 16:06:01, tonyg wrote:
> Would it be cleaner to flip the order of the !m_isEnabled and
> m_state==Initialized checks here rather than to lie about m_state in
> initForFragment()?

Yeah, that makes a lot of sense.

Powered by Google App Engine
This is Rietveld 408576698