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

Side by Side Diff: chrome/test/data/extensions/api_test/webrequest_extensions/extension/framescript.js

Issue 1267183003: Hide requests in an extension from other extensions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update tests (processed review comments #8). Created 5 years, 4 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
(Empty)
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
3 // found in the LICENSE file.
4
5 // |baseUrl| will be equivalent to 'http://example.com:PORT';
6 var baseUrl = location.ancestorOrigins[0];
7
8 var x = new XMLHttpRequest();
9 x.open('GET', baseUrl + '/extensions/test_file.txt?framescript');
10 x.onloadend = function() {
11 // Sanity check.
12 chrome.test.assertEq('Hello!', x.responseText);
13
14 chrome.test.sendMessage('framescript_done');
15 };
16 x.send();
not at google - send to devlin 2015/08/04 23:12:03 For the record, the ideal test factoring would pro
robwu 2015/08/05 16:38:08 Good to know for the future. I'll keep the current
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698