feat: WebFrameMain.collectJavaScriptCallStack() (#44938)
* feat: WebFrameMain.unresponsiveDocumentJSCallStack Co-authored-by: Samuel Maddock <smaddock@slack-corp.com> * Revert "feat: WebFrameMain.unresponsiveDocumentJSCallStack" This reverts commit e0612bc1a00a5282cba5df97da3c9c90e96ef244. Co-authored-by: Samuel Maddock <smaddock@slack-corp.com> * feat: frame.collectJavaScriptCallStack() Co-authored-by: Samuel Maddock <smaddock@slack-corp.com> * feat: frame.collectJavaScriptCallStack() Co-authored-by: Samuel Maddock <smaddock@slack-corp.com> * Update web-frame-main.md Co-authored-by: Sam Maddock <smaddock@slack-corp.com> --------- Co-authored-by: trop[bot] <37223003+trop[bot]@users.noreply.github.com> Co-authored-by: Samuel Maddock <smaddock@slack-corp.com>
This commit is contained in:
parent
ed0946c880
commit
f383391c0e
5 changed files with 131 additions and 1 deletions
|
@ -36,6 +36,11 @@ template <typename T>
|
|||
class Handle;
|
||||
} // namespace gin
|
||||
|
||||
namespace gin_helper {
|
||||
template <typename T>
|
||||
class Promise;
|
||||
} // namespace gin_helper
|
||||
|
||||
namespace electron::api {
|
||||
|
||||
class WebContents;
|
||||
|
@ -128,6 +133,12 @@ class WebFrameMain final : public gin::Wrappable<WebFrameMain>,
|
|||
std::vector<content::RenderFrameHost*> Frames() const;
|
||||
std::vector<content::RenderFrameHost*> FramesInSubtree() const;
|
||||
|
||||
v8::Local<v8::Promise> CollectDocumentJSCallStack(gin::Arguments* args);
|
||||
void CollectedJavaScriptCallStack(
|
||||
gin_helper::Promise<base::Value> promise,
|
||||
const std::string& untrusted_javascript_call_stack,
|
||||
const std::optional<blink::LocalFrameToken>& remote_frame_token);
|
||||
|
||||
void DOMContentLoaded();
|
||||
|
||||
mojo::Remote<mojom::ElectronRenderer> renderer_api_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue