| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 function getStyleURL() { | 5 function getStyleURL() { |
| 6 // This is not a style sheet, but it must still be classified as "stylesheet" | 6 // This is not a style sheet, but it must still be classified as "stylesheet" |
| 7 // because it is loaded as a style sheet. | 7 // because it is loaded as a style sheet. |
| 8 return getServerURL('empty.html?as-style'); | 8 return getServerURL('empty.html?as-style'); |
| 9 } | 9 } |
| 10 | 10 |
| (...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 699 [['onBeforeRequest', 'onBeforeSendHeaders', 'onSendHeaders', | 699 [['onBeforeRequest', 'onBeforeSendHeaders', 'onSendHeaders', |
| 700 'onHeadersReceived', 'onResponseStarted', 'onCompleted']], { | 700 'onHeadersReceived', 'onResponseStarted', 'onCompleted']], { |
| 701 urls: ['<all_urls>'], types: ['csp_report'] | 701 urls: ['<all_urls>'], types: ['csp_report'] |
| 702 }); | 702 }); |
| 703 | 703 |
| 704 var frame = document.createElement('iframe'); | 704 var frame = document.createElement('iframe'); |
| 705 frame.src = | 705 frame.src = |
| 706 getServerURL('extensions/api_test/webrequest/csp/violation.html'); | 706 getServerURL('extensions/api_test/webrequest/csp/violation.html'); |
| 707 document.body.appendChild(frame); | 707 document.body.appendChild(frame); |
| 708 }, | 708 }, |
| 709 |
| 710 // Note: The 'websocket' type is tested separately in 'test_websocket.js' and |
| 711 // 'test_websocket_auth.js'. |
| 709 ]); | 712 ]); |
| OLD | NEW |