Closed Bug 1549487 Opened 5 years ago Closed 4 months ago

[meta] Runtime.addBinding

Categories

(Remote Protocol :: CDP, task)

task

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ato, Unassigned)

References

()

Details

(Keywords: meta, Whiteboard: [method=Runtime.addBinding])

No description provided.
Blocks: puppeteer
Keywords: meta
Whiteboard: [method=Runtime.addBinding]

This CDP endpoint is used by Puppeteer in Page.exposeFunction(). Puppeteer examples make use of it in custom-event.js:

  // Define a window.onCustomEvent function on the page.
  await page.exposeFunction('onCustomEvent', e => {
    console.log(`${e.type} fired`, e.detail || '');
  });
Whiteboard: [method=Runtime.addBinding] → [method=Runtime.addBinding][puppeteer-alpha]
Whiteboard: [method=Runtime.addBinding][puppeteer-alpha] → [method=Runtime.addBinding]
Component: CDP: Runtime → CDP
Severity: normal → S3

We are not going to implement this API. One should use WebDriver BiDi instead.

Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.