Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Browser: Script Injection test pages #185

Merged
merged 3 commits into from
Feb 8, 2024

Conversation

RendijsSmukulis
Copy link
Contributor

Description

This adds a couple of (for now) Window Browser specific test pages that allows testing script injection (e.g. content scope scripts):

  • Validate injection in the main page
  • Validate injection in an iframe
  • Validate injection into a 3rd party iframe

It validates:

  • Whether the scripts were injected
  • Whether posting a message from native code to injected JS works
  • Whether JS can send a message to native and receive a response
  • Whether scripts are isolated from page scripts

Note that this requires running a modified version of Windows Browser that's intended for testing purposes, so the tests will not work with a release version.

Copy link
Member

@muodov muodov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm, just one typo suggestion

windows-browser/script-injection/secureWorld_index.html Outdated Show resolved Hide resolved
@RendijsSmukulis RendijsSmukulis merged commit 581c6a2 into main Feb 8, 2024
1 check passed
@RendijsSmukulis RendijsSmukulis deleted the randy/windows-browser_script_injection_tests branch February 8, 2024 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants