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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/serviceworker/resources/navigation-redirect-scope1.php

Issue 2785123002: Make no-location redirect response to be "opaque redirect" when redirect mode is manual. (Closed)
Patch Set: add link to crbug.com/707185 Created 3 years, 8 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
OLDNEW
1 <?php 1 <?php
2 if (isset($_GET['url'])) { 2 if (isset($_GET['url'])) {
3 header("HTTP/1.1 302"); 3 header("HTTP/1.1 302");
4 $url = $_GET['url']; 4 $url = $_GET['url'];
5 header("Location: $url"); 5 header("Location: $url");
6 exit; 6 exit;
7 } 7 }
8 if (isset($_GET['noLocationRedirect'])) {
9 header("HTTP/1.1 302");
10 }
8 ?> 11 ?>
9 <!DOCTYPE html> 12 <!DOCTYPE html>
10 <script> 13 <script>
11 window.parent.postMessage( 14 window.parent.postMessage(
12 { 15 {
13 id: 'last_url', 16 id: 'last_url',
14 result: location.href 17 result: location.href
15 }, '*'); 18 }, '*');
16 </script> 19 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698