WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
Bug 32938
Cleanup: XSSAuditor passes too many parameters to XSSAuditor::findInRequest
https://bugs.webkit.org/show_bug.cgi?id=32938
Summary
Cleanup: XSSAuditor passes too many parameters to XSSAuditor::findInRequest
Daniel Bates
Reported
2009-12-25 11:52:49 PST
Extracted from the changes in the patch for
bug #27895
. We should clean up the XSSAuditor so that we don't need to pass as many parameters around. Currently, we pass various parameters through to XSSAuditor::findInRequest that are used to determine how to decode the HTTP input parameters so that we can perform a match against the script source.
Attachments
Patch
(12.28 KB, patch)
2009-12-25 11:55 PST
,
Daniel Bates
no flags
Details
Formatted Diff
Diff
Patch
(12.28 KB, patch)
2009-12-25 12:02 PST
,
Daniel Bates
abarth
: review+
abarth
: commit-queue-
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Daniel Bates
Comment 1
2009-12-25 11:55:46 PST
Created
attachment 45495
[details]
Patch No functionality was changed. So, no new tests.
WebKit Review Bot
Comment 2
2009-12-25 11:59:48 PST
Attachment 45495
[details]
did not pass style-queue: Failed to run "WebKitTools/Scripts/check-webkit-style" exit_code: 1 WebCore/page/XSSAuditor.cpp:356: One space before end of line comments [whitespace/comments] [5] WebCore/page/XSSAuditor.cpp:361: One space before end of line comments [whitespace/comments] [5] Total errors found: 2
Daniel Bates
Comment 3
2009-12-25 12:02:52 PST
Created
attachment 45496
[details]
Patch Fix style-bot errors.
WebKit Review Bot
Comment 4
2009-12-25 12:05:10 PST
style-queue ran check-webkit-style on
attachment 45496
[details]
without any errors.
Adam Barth
Comment 5
2009-12-25 12:43:53 PST
Comment on
attachment 45496
[details]
Patch This looks great. One nit: 147 task.decodeEntities = true; You don't need these assignments because decodeEntities defaults to true. We needed them originally because the parameters were in a fixed order. Other than that, looks great. Thanks Dan.
Daniel Bates
Comment 6
2009-12-25 13:59:42 PST
Will remove before I land. (In reply to
comment #5
)
> (From update of
attachment 45496
[details]
) > This looks great. One nit: > > 147 task.decodeEntities = true; > > You don't need these assignments because decodeEntities defaults to true. We > needed them originally because the parameters were in a fixed order. > > Other than that, looks great. Thanks Dan.
Daniel Bates
Comment 7
2009-12-25 15:33:24 PST
Committed in <
http://trac.webkit.org/changeset/52561
>.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug