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

Side by Side Diff: LayoutTests/fast/css/get-matched-css-rules-set-selector-text.html

Issue 49093005: Fix memory error during selector matching due to getMatchedCSSRules. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: address review comments Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/css/get-matched-css-rules-set-selector-text-expected.html » ('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 <!DOCTYPE html>
2 <style>
3 html, img { border: 5px solid salmon; }
4 </style>
5 <script>
6 function eventhandler() {
7 window.getMatchedCSSRules(document.documentElement)[0].selectorText = 'div';
8 document.documentElement.offsetHeight; // Crash under ASAN was here in updat eStyleIfNeeded
9 }
10 </script>
11 <img>
12 <iframe onbeforeload="eventhandler()"></iframe>
13 <div>This div should be the only element with a 5px border.</div>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/get-matched-css-rules-set-selector-text-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698