mozilla / geckodriver

WebDriver for Firefox
https://firefox-source-docs.mozilla.org/testing/geckodriver/
Mozilla Public License 2.0
7.21k stars 1.53k forks source link

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

Open AutomatedTester opened 1 year ago

AutomatedTester commented 1 year ago

System

Testcase

Testcase available on the Nightwatch repo https://github.com/nightwatchjs/nightwatch/issues/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 commented 1 year ago

@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 commented 1 year ago

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