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

Security Error thrown when trying to take a Screenshot on Firefox with an iFrame in focus #2068

Open
AutomatedTester opened this issue Dec 13, 2022 · 2 comments

Comments

@AutomatedTester
Copy link
Contributor

AutomatedTester commented Dec 13, 2022

System

  • Version:
  • Platform:
  • Firefox:
  • Selenium: 4.5

Testcase

Testcase available on the Nightwatch repo nightwatchjs/nightwatch#3512

Stacktrace

Error
     Response 500 GET /session/97e7684a-f42d-45f0-9428-5f957de28cc4/screenshot (3ms)
   {
     value: {
       error: 'unknown error',
       message: 'SecurityError: Permission denied to access property "pageXOffset" on cross-origin object',
       stacktrace: ''
     }
  }
    Error   Error while running .getScreenshot() protocol action: SecurityError: Permission denied to access property "pageXOffset" on cross-origin object

  Error

Trace-level log

None provided

@minhdoan159
Copy link

@AutomatedTester, other Any updates on this item? Do you have any work around to overcome it, because it seems Gecko team has not put this item into the fixing plan.
Many thanks in advance.

@whimboo
Copy link
Collaborator

whimboo commented May 26, 2023

This most likely happens because of https://bugzilla.mozilla.org/show_bug.cgi?id=1493650.

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

No branches or pull requests

3 participants