Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

SecurityError: The operation is insecure message is displayed when trying to lock screen orientation #24320

Closed
LaurentiuApahideanSV opened this issue Mar 17, 2022 · 9 comments
Labels
🐞 bug Crashes, Something isn't working, .. needs:gv GeckoView bug required to fix the issue. See bugzilla.mozilla.org needs:triage Issue needs triage 🙅 waiting Issues that are blocked or has dependencies that are not ready

Comments

@LaurentiuApahideanSV
Copy link

LaurentiuApahideanSV commented Mar 17, 2022

Steps to reproduce

  1. Go to https://usefulangle.com/demos/105/screen.html
  2. Tap the "Lock to landscape Mode"
  3. Go to https://bug1681572.bmoattachments.org/attachment.cgi?id=9192275
  4. Tap the "Lock" button
  5. Go to https://w3c-test.org/screen-orientation/lock-basic.html
  6. Perform the test.

Expected behaviour

No error message should be displayed when trying to lock screen orientation.

Actual behaviour

The SecurityError: The operation is insecure message is displayed on all 3 websites when trying to lock screen orientation.

Device name

Google Pixel 6

Android version

Android 12

Firefox release type

Firefox Nightly

Firefox version

100.0a1 2022-03-17

Device logs

No response

Additional information

1647532552115
1647532551936
Screenshot_20220317-175828

┆Issue is synchronized with this Jira Task

@Mugurell
Copy link
Contributor

@calumozilla I see the same on GVE. Are this results expected?

@calumozilla
Copy link
Contributor

Yes, it's expected as of now. The corresponding bug for GV is https://bugzilla.mozilla.org/show_bug.cgi?id=1744288.

@Mugurell Mugurell added 🙅 waiting Issues that are blocked or has dependencies that are not ready needs:gv GeckoView bug required to fix the issue. See bugzilla.mozilla.org labels Mar 18, 2022
@robovoice1
Copy link

This are the results:
Screenshot_20220318-145118
Screenshot_20220318-150120
Screenshot_20220318-150207

Google Pixel 6 pro
Android 12 GrapheneOS (latest beta channel release)
Firefox nightly mobile android
100.0a1 (Build #2015869419), 55c707a+
AC: 100.0.20220317143136, 57163139b4
GV: 100.0a1-20220317092857
AS: 91.1.0

@robovoice1
Copy link

robovoice1 commented Mar 18, 2022

Vanadium (chromium based GrapheneOS) browser:
Screenshot_20220318-154421
Screenshot_20220318-154521
Screenshot_20220318-153646
Screenshot_20220318-153223

@makotokato
Copy link

I think that this issue may be https://bugzilla.mozilla.org/show_bug.cgi?id=1763052

@Mugurell
Copy link
Contributor

I think that this issue may be https://bugzilla.mozilla.org/show_bug.cgi?id=1763052

Tested on the current Nightly which should include that fix and the SecurityError popup still shows.

@makotokato
Copy link

makotokato commented May 27, 2022

I think that this issue may be https://bugzilla.mozilla.org/show_bug.cgi?id=1763052

Tested on the current Nightly which should include that fix and the SecurityError popup still shows.

My comment is for WPT failure.

I guess that your issue is out of scope of screen orientation API (https://w3c.github.io/screen-orientation/#locking-the-screen-orientation) spec. Blink is that "pre-lock conditions" includes fullscreen request is pending too. But Gecko doesn't. It will be https://bugzilla.mozilla.org/show_bug.cgi?id=1744288. We will fix it for web compatibility.

@stale
Copy link

stale bot commented Nov 23, 2022

See: #17373 This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 23, 2022
@Mugurell Mugurell removed the wontfix label Nov 23, 2022
@csadilek csadilek changed the title [Bug]: SecurityError: The operation is insecure message is displayed when trying to lock screen orientation SecurityError: The operation is insecure message is displayed when trying to lock screen orientation Jan 13, 2023
@csadilek
Copy link
Contributor

Moved to bugzilla: https://bugzilla.mozilla.org/show_bug.cgi?id=1810199

Change performed by the Move to Bugzilla add-on.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞 bug Crashes, Something isn't working, .. needs:gv GeckoView bug required to fix the issue. See bugzilla.mozilla.org needs:triage Issue needs triage 🙅 waiting Issues that are blocked or has dependencies that are not ready
Projects
None yet
Development

No branches or pull requests

6 participants