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

Side by Side Diff: LayoutTests/http/tests/inspector/styles/resources/stylesheet-tracking-iframe.html

Issue 14821010: DevTools: Do not unbind stylesheets in multiframe documents (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Add test files left behind Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <style type="text/css" media="screen">
4 body { background:green; }
5 </style>
6 <script>
7 function handleMessage(event)
8 {
9 switch (event.data) {
10 case "addStyleSheet":
11 var style = document.createElement("style");
12 style.textContent = "body { background-color: yellow; }";
13 document.head.appendChild(style);
14 break;
15 case "removeStyleSheet":
16 document.head.removeChild(document.head.children[0]);
17 break;
18 }
19 }
20
21 window.addEventListener("message", handleMessage, false);
22 </script>
23 </head>
24
25 <body>
26 </body>
27
28 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698