// Copyright 2016 The Chromium Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
onmessage = function(e) { | |
var data = JSON.parse(e.data); | |
if (data[0] != 'sandboxed frame msg') | |
return; | |
var param = data[1]; | |
e.source.postMessage(JSON.stringify(['local frame msg', param]), '*'); | |
}; |