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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/loader/stateobjects/spam-pushstate-then-throttled.html

Issue 2972073002: Mitigate the pushState IPC storm DoS. (Closed)
Patch Set: Make the test work (thanks dcheng!), move the flooding test per kinuko. Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/History.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script src="../../../resources/testharness.js"></script>
4 <script src="../../../resources/testharnessreport.js"></script>
5 </head>
6 <body>
7 <script>
8 'use strict';
9
10 // This value must match that in Source/core/frame/History.cpp.
11 const kStateUpdateLimit = 50;
12 for (let i = 0; i < kStateUpdateLimit; ++i) {
13 history.pushState("SpammyHistoryItem", "" + i);
14 }
15 assert_equals(kStateUpdateLimit, history.length);
16
17 history.pushState("DiscardedSpamItem", "51");
kinuko 2017/07/11 00:38:04 I wanted to say this discarsion is impl-specific b
18 assert_equals(kStateUpdateLimit, history.length);
19
20 done();
21 </script>
22 </body>
23 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/History.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698