Skip to content

Interacting with contents before they're set up. #3

Open

Description

@Kilian

There is a sort of "race condition" between loading and webcontents being available:

  • you want to set some settings before loading anything
  • You can only set those settings on webcontents, which don't exist before you load something

I currently solve that with a load step of about:blank to instantiate the webContents, and only then setting what I need to set and loading whatever I want to load. Having either webcontents available or promise-able would really simplify the API + potentially speed up this process.

Activity

  1. robbiemc commented on Mar 4, 2025

    @robbiemc
    Collaborator

    Some configuration such as addContentScripts should work before the has been navigated or embedded into the page. What are some examples of things you'd like to be able to configure before the frame has navigated?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions