Bug 1348124 Update RemotePageManager to expose portId on public interface r=mossop

MozReview-Commit-ID: BYCI9zi6YLh

--HG--
extra : rebase_source : ba6cef5cb137138d786d932464bddc9466a889cc
This commit is contained in:
k88hudson 2017-03-17 12:57:30 -04:00
parent 6ec248d32c
commit a01488052d

View File

@ -169,6 +169,12 @@ function publicMessagePort(port) {
clean[property] = port[property].bind(port);
}
Object.defineProperty(clean, "portID", {
get() {
return port.portID;
}
});
if (port instanceof ChromeMessagePort) {
Object.defineProperty(clean, "browser", {
get() {