Skip to content

Support test_driver.set_permission() inside .any.js (for workers) #197

Description

@saschanaz

test_driver is only designed to work on the window context. Which is fine as many webdriver commands like moving pointers only makes sense there, but set_permission is often required also for workers to enable certain features there, e.g. service worker-specific showNotification() behind notification permission.

Perhaps we can:

  • Provide some way to tunnel the test_driver requests to the main thread as service_worker_test() does?
  • Or provide a way to run a script on the main window before starting the tests in the worker context?

Activity

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