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

Side by Side Diff: chrome/test/data/extensions/api_test/sandboxed_pages_csp/local_frame.js

Issue 2563843002: Restrict app sandbox's CSP to disallow loading web content in them. (Closed)
Patch Set: sync @tott Created 3 years, 11 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 2016 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 onmessage = function(e) {
6 var data = JSON.parse(e.data);
7 if (data[0] != 'sandboxed frame msg')
8 return;
9 var param = data[1];
10 e.source.postMessage(JSON.stringify(['local frame msg', param]), '*');
11 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698