MCPcopy
hub / github.com/google/tamperchrome / postMessage

Method postMessage

v2/ui/e2e/src/app.po.ts:46–51  ·  view source on GitHub ↗
(msg: any, portIds: Array<number>)

Source from the content-addressed store, hash-verified

44 }
45
46 async postMessage(msg: any, portIds: Array<number>) {
47 await browser.executeScript((msgParam, portIdsParam) => {
48 const ports = portIdsParam.map(id=>window['.ports'][id]);
49 postMessage(msgParam, location.origin, ports);
50 }, msg, portIds);
51 }
52
53 async navigateTo() {
54 await browser.driver.sendChromiumCommand('Accessibility.enable', {});

Callers 9

background.tsFile · 0.80
sendRequestMethod · 0.80
getResponseBodyMethod · 0.80
sendResponseMethod · 0.80
startListeningMethod · 0.80
postMessageToPortMethod · 0.80
app.e2e-spec.tsFile · 0.80
tamper.jsFile · 0.80
createIgnoreOptionsFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected