Bug 773934 followup: add license headers to new files, and remove unused code

--HG--
extra : transplant_source : %91%7C%F2r%1B%A9%94%A1Q%85%5E%F7N76%83%9C%F80%D7
This commit is contained in:
Gavin Sharp 2012-07-18 17:16:58 -07:00
parent 71c6312f0b
commit cb9faf6363
3 changed files with 8 additions and 4 deletions

View File

@ -159,10 +159,6 @@ FrameWorker.prototype = {
workerWindow.removeEventListener("load", loadListener);
// the iframe has loaded the js file as text - first inject the magic
// port-handling code into the sandbox.
function getProtoSource(ob) {
let raw = ob.prototype.toSource();
return ob.name + ".prototype=" + raw + ";"
}
try {
Services.scriptloader.loadSubScript("resource://gre/modules/MessagePortBase.jsm", sandbox);
Services.scriptloader.loadSubScript("resource://gre/modules/MessagePortWorker.js", sandbox);

View File

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// Code that is shared between clients and workers.
const EXPORTED_SYMBOLS = ["AbstractPort"];

View File

@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
// Note: this is never instantiated in chrome - the source is sent across
// to the worker and it is evaluated there and created in response to a
// port-create message we send.