author Carsten "Tomcat" Book <>
Mon, 12 Jan 2015 09:02:13 +0100
changeset 249072 4583ade26b7e1af024bccacfaa3bccb9a9051e1d
parent 159749 c1780559f076ed3f6b114855c407b864fb6cbe78
child 308875 c2cefe6f9f0a0218a159cefb1880ebaf88fb0f1c
permissions -rw-r--r--
Backed out changeset df960e299bcd (bug 1108096) for m1 test failures

/* 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 */

// TODO Bug 907060 Per off-line discussion, after the MessagePort is done
// at Bug 643325, we will start to refactorize the common logic of both
// Inter-App Communication and Shared Worker. For now, we hope to design an
// MozInterAppMessagePort to meet the timeline, which still follows exactly
// the same interface and semantic as the MessagePort is. In the future,
// we can then align it back to MessagePort with backward compatibility.

 Constructor(DOMString messagePortID),
interface MozInterAppMessagePort : EventTarget {
  void postMessage(any message);

  void start();

  void close();

  attribute EventHandler onmessage;