Open Bug 1549487 Opened 6 years ago Updated 1 year ago

[meta] Runtime.addBinding

Categories

(Remote Protocol :: CDP, task)

task

Tracking

(Not tracked)

People

(Reporter: ato, Unassigned)

References

(Depends on 1 open bug, )

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
You need to log in before you can comment on or make changes to this bug.