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

"This action is restricted" Internet Explorer dialog when opening browser in Windows with no default browser #102520

Open
JasonWeill opened this issue Mar 8, 2023 · 4 comments
Labels
OS-windows type-bug An unexpected behavior, bug, or error

Comments

@JasonWeill
Copy link

JasonWeill commented Mar 8, 2023

Moved from jupyterlab/jupyterlab#14142, per this comment that suggests that the fault is in this file in CPython.

Description

On a Windows 10 computer with Firefox set as the default browser, running jupyter lab causes a dialog box to appear: "Internet Explorer / This action is restricted. For more information, please contact your system administrator."

ie-popup

After I dismiss the dialog, Microsoft Edge pops up with the JupyterLab URL specified in the terminal.

On this Windows machine, there is no default browser set.

image (4)

Reproduce

  1. Set up a new Windows 10 machine with no default browser.
  2. Install JupyterLab via Conda (conda install jupyterlab).
  3. Run JupyterLab from the terminal (jupyter lab)
  4. See behavior shown above.

Expected behavior

If no default browser is selected, the jupyter executable does not attempt to launch any browser, but instead displays the URL to load with no further action. This would be similar behavior to when the user runs jupyter lab with the --no-browser parameter.

Linked PRs

@JasonWeill JasonWeill added the type-bug An unexpected behavior, bug, or error label Mar 8, 2023
@terryjreedy
Copy link
Member

webbrowser still considers InternetExplorer to be the default Windows browser. I believe that it is mostly gone. Does the code to find IExplorer somehow find Edge instead, or need it be changed?

@DBJim
Copy link
Contributor

DBJim commented Mar 12, 2023

On my Windows 10 and 11 installs, the file C:\Program Files\Internet Explorer\IEXPLORE.EXE still exists but opens Microsoft Edge when executed. I assume the file is only there for backwards compatibility as Windows 11 doesn't ship with a functioning IE browser and it was removed from existing Windows 10 installations through updates.

I do not know the cause of the dialog, but I gather the redirection to Edge doesn't work correctly in all scenarios.

All windows versions supported by Python should have Microsoft Edge installed and most (all?) would no longer have Internet Explorer. Would it now make sense for webbrowser.py to point directly to Microsoft Edge as the fallback browser on windows and any references to IE updated?

@arhadthedev
Copy link
Member

Should we backport gh-102690 and close this issue as fixed?

@DBJim
Copy link
Contributor

DBJim commented Apr 3, 2023

That should fix the dialog, but it doesn't deliver the expected behavior listed in the issue.

It might benefit to document that webbrowser will try to fall back to other browsers if the user hasn't set a default, do you agree?

I'll make a PR with my suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OS-windows type-bug An unexpected behavior, bug, or error
Projects
None yet
Development

No branches or pull requests

4 participants