Closed Bug 2012690 Opened 7 months ago Closed 4 months ago

Ensure felt cannot open new window

Categories

(Enterprise Products :: General, enhancement)

x86_64
Linux
enhancement

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: gerard-majax, Assigned: gerard-majax)

References

(Blocks 1 open bug)

Details

Attachments

(4 files)

openWIndow() needs to be blocked more than in remote/shared/WindowManager.sys.mjs like it is done right now.

Blocks: 2012076
No longer blocks: firefox-enterprise-cp
Blocks: 2013303
No longer blocks: 2012076
Blocks: firefox-client-cp
No longer blocks: 2013303

I assume you mean openBrowserWindow but can you be more clear what you mean? There are already isFeltUI() checks in there:
https://searchfox.org/enterprise-main/source/remote/shared/WindowManager.sys.mjs#357

Flags: needinfo?(lissyx+mozillians)

(In reply to Gian-Carlo Pascutto [:gcp] from comment #1)

I assume you mean openBrowserWindow but can you be more clear what you mean? There are already isFeltUI() checks in there:
https://searchfox.org/enterprise-main/source/remote/shared/WindowManager.sys.mjs#357

Yes, there is this check but it's only for the remote webdriver things. I filed the issue while doing it, to make sure we dont let other ways to open new window in felt doable. This needs to be done carefully as e.g. we want to allow browser console etc.

Flags: needinfo?(lissyx+mozillians)

We may want to be able to open new windows, for e.g. jsconsole when needed. There is also the SSO/Duo flow that may have documenation the user has to read. We can probably mitigate escape risks here by making any window open being a minimalist popup

Assignee: nobody → lissyx+mozillians
Attachment #9568523 - Attachment description: image.png → Duo documentation opened with fix
Duplicate of this bug: 2026683

Authored by Alexandre Lissy
https://github.com/mozilla/enterprise-firefox/commit/417d9aa57b37fc4c6b87838917f30390e82225ce
[enterprise-main] Bug 2012690 - Enterprise: limit new windows on FELT

Authored by https://github.com/lissyx
https://github.com/mozilla/enterprise-firefox/commit/efe2bcb0cfa294843b1433340af6f5ad5d1d91f1
[enterprise-main] Merge pull request #710 from lissyx/enterprise-bug2012690_limit_new_windows

Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Duplicate of this bug: 2014739
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: