From b5da718e2e4a2004a36cf23cad555e1fc3b50333 Mon Sep 17 00:00:00 2001
From: jrandolf <101637635+jrandolf@users.noreply.github.com>
Date: Tue, 16 Aug 2022 08:22:45 +0200
Subject: [PATCH] fix: deprecate `ExecutionContext` (#8792)
---
docs/api/index.md | 4 +--
docs/api/puppeteer.executioncontext.md | 6 +++-
docs/api/puppeteer.frame.evaluate.md | 8 ++---
docs/api/puppeteer.frame.evaluatehandle.md | 8 ++---
docs/api/puppeteer.frame.executioncontext.md | 4 +++
docs/api/puppeteer.frame.isoopframe.md | 2 +-
docs/api/puppeteer.frame.md | 14 +++++---
docs/api/puppeteer.frame.waitforselector.md | 2 +-
package-lock.json | 2 +-
src/common/ExecutionContext.ts | 2 ++
src/common/FrameManager.ts | 38 ++++++++++++--------
11 files changed, 57 insertions(+), 33 deletions(-)
diff --git a/docs/api/index.md b/docs/api/index.md
index aab590d9573af..8a4e32d92b336 100644
--- a/docs/api/index.md
+++ b/docs/api/index.md
@@ -21,9 +21,9 @@ sidebar_label: API
| [Dialog](./puppeteer.dialog.md) | Dialog instances are dispatched by the [Page](./puppeteer.page.md) via the dialog
event. |
| [ElementHandle](./puppeteer.elementhandle.md) | ElementHandle represents an in-page DOM element. |
| [EventEmitter](./puppeteer.eventemitter.md) | The EventEmitter class that many Puppeteer classes extend. |
-| [ExecutionContext](./puppeteer.executioncontext.md) | Represents a context for JavaScript execution. |
+| [ExecutionContext](./puppeteer.executioncontext.md) | |
| [FileChooser](./puppeteer.filechooser.md) | File choosers let you react to the page requesting for a file. |
-| [Frame](./puppeteer.frame.md) | At every point of time, page exposes its current frame tree via the [page.mainFrame](./puppeteer.page.mainframe.md) and [frame.childFrames](./puppeteer.frame.childframes.md) methods. |
+| [Frame](./puppeteer.frame.md) |
Represents a DOM frame.
To understand frames, you can think of frames as <iframe>
elements. Just like iframes, frames can be nested, and when JavaScript is executed in a frame, the JavaScript does not effect frames inside the ambient frame the JavaScript executes in.