Skip to content

webFrame.executeJavaScriptInIsolatedWorld isn't well documented. #14288

@TheGoddessInari

Description

@TheGoddessInari
  • Output of node_modules/.bin/electron --version: 2.0.8
  • Operating System (Platform and Version): Windows 10 x64

Expected Behavior
executeJavaScriptInIsolatedWorld should be well documented

Actual behavior
executeJavaScriptInIsolatedWorld is barely documented

To Reproduce
Read the webFrame documentation.
Additional Information
If I enable contextIsolation in my app, how do I execute javascript into the correct context for a specific webview?

I understand that the JS needs to be akin to [{code: 'blahblahblah' }], but world_id doesn't seem to be the id from webContents, so what is it? Where do I obtain the correct id?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions