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

Side by Side Diff: LayoutTests/http/tests/navigation/resources/reload-subframe.pl

Issue 1139273002: Set an explicit object type=text/plain in reload-subframe.pl. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/perl 1 #!/usr/bin/perl
2 2
3 print "Content-type: text/html\r\n"; 3 print "Content-type: text/html\r\n";
4 4
5 @keypairs = split(/&/, $ENV{'QUERY_STRING'}); 5 @keypairs = split(/&/, $ENV{'QUERY_STRING'});
6 6
7 $type = ""; 7 $type = "";
8 8
9 foreach $pair (@keypairs) 9 foreach $pair (@keypairs)
10 { 10 {
(...skipping 28 matching lines...) Expand all
39 } 39 }
40 40
41 $src = "'reload-subframe-content.pl?text=$subframe_content'"; 41 $src = "'reload-subframe-content.pl?text=$subframe_content'";
42 42
43 if ($type eq "iframe") { 43 if ($type eq "iframe") {
44 print "<body>"; 44 print "<body>";
45 print "<iframe src=$src></iframe>"; 45 print "<iframe src=$src></iframe>";
46 print "</body>"; 46 print "</body>";
47 } elsif ($type eq "object") { 47 } elsif ($type eq "object") {
48 print "<body>"; 48 print "<body>";
49 print "<object data=$src></object>"; 49 print "<object type='text/plain' data=$src></object>";
50 print "</body>"; 50 print "</body>";
51 } else { 51 } else {
52 print "<frameset>"; 52 print "<frameset>";
53 print "<frame src=$src>"; 53 print "<frame src=$src>";
54 print "</frameset>"; 54 print "</frameset>";
55 } 55 }
56 56
57 print "</html>"; 57 print "</html>";
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698