GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — gh-102871: Remove obsolete browsers from webbrowser by DBJim · Pull Request #102872 · python/cpython

Conversation

@DBJim

@DBJim DBJim commented Mar 21, 2023

Copy link
Copy Markdown
Contributor

#102871

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@DBJim
Remove obsolete browsers and test from webbrowser
b04087c
@bedevere-bot bedevere-bot mentioned this pull request Mar 21, 2023
Cleanup and Modernize webbrowser #102871
Closed
@bedevere-bot bedevere-bot added the awaiting review label Mar 21, 2023
@blurb-it
📜🤖 Added by blurb_it.
cf7209d
@terryjreedy
terryjreedy requested review from corona10, merwok and sobolevn March 21, 2023 20:04
@terryjreedy

terryjreedy commented Mar 21, 2023

Copy link
Copy Markdown
Member

Do any of these removals need deprecation?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

sobolevn
sobolevn reviewed Mar 21, 2023
View reviewed changes

@sobolevn sobolevn left a comment •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is literally the first time I hear about most of them.
Even https://browsersl.ist/ and https://caniuse.com/ do not list them anywhere.

I don't think that using Python3.12 and Netscape at the same time is even possible in this reality :)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
eendebakpt
eendebakpt reviewed Mar 21, 2023
View reviewed changes
Comment thread Misc/NEWS.d/next/Library/2023-03-21-15-17-07.gh-issue-102871.U9mchn.rst Resolved

Uh oh!

There was an error while loading. Please reload this page.

@arhadthedev arhadthedev added the stdlib Standard Library Python modules in the Lib/ directory label Mar 22, 2023
DBJim added 2 commits March 22, 2023 21:28
@DBJim
Small comment fix
aee1f91
@DBJim
Remove Skipstone
ee7c864
merwok
merwok reviewed Mar 22, 2023
View reviewed changes
Comment thread Lib/webbrowser.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@DBJim
Merge branch 'python:main' into main
5eeb10a
@ghost

ghost commented Mar 26, 2023 •
edited by ghost
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

All commit authors signed the Contributor License Agreement.
CLA signed

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@merwok merwok changed the title gh-102871: Remove obsolete browsers and test from webbrowser gh-102871: Remove obsolete browsers from webbrowser Mar 26, 2023
@merwok

merwok commented Mar 26, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

I propose to merge this for 3.12 with a note in what’s new and module docs, no deprecation warning, and no backports.

serhiy-storchaka reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@terryjreedy

terryjreedy commented Mar 26, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

The test failure is a patchcheck whitespace failure in webbrowser.py. James, please run patchcheck in your local repository with the branch checked out. Either make patchcheck on non-windows or python tools/scripts/patchcheck.py on windows. If something is changed, which there should be, commit and push as usual.

DBJim reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

merwok
merwok reviewed Mar 26, 2023
View reviewed changes
Comment thread Lib/webbrowser.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

@DBJim
Fix whitespace test failure and spacing between classes
798f439
merwok
merwok requested changes Mar 26, 2023
View reviewed changes

@merwok merwok left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Name the removed browsers in the news note, and in a versionchanged note in the module docs.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

DBJim reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@bedevere-bot bedevere-bot added awaiting changes and removed awaiting review labels Mar 26, 2023
@bedevere-bot

bedevere-bot commented Mar 26, 2023

Copy link
Copy Markdown

A Python core developer has requested some changes be made to your pull request before we can consider merging it. If you could please address their requests along with any other requests in other reviews from core developers that would be appreciated.

Once you have made the requested changes, please leave a comment on this pull request containing the phrase I have made the requested changes; please review again. I will then notify any core developers who have left a review that you're ready for them to take another look at this pull request.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@DBJim
Name the removed browsers in News and Module docs
21bcde7
@DBJim

DBJim commented Mar 27, 2023

Copy link
Copy Markdown
Contributor Author

I have made the requested changes; please review again.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-bot bedevere-bot added awaiting change review and removed awaiting changes labels Mar 27, 2023
@bedevere-bot

bedevere-bot commented Mar 27, 2023

Copy link
Copy Markdown

Thanks for making the requested changes!

@merwok: please review the changes made to this pull request.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@bedevere-bot
bedevere-bot requested a review from merwok March 27, 2023 00:20
@merwok

merwok commented Mar 27, 2023

Copy link
Copy Markdown
Member

I don’t get the note about Firefox older than version 35, can you explain?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@DBJim

DBJim commented Mar 27, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor Author

I don’t get the note about Firefox older than version 35, can you explain?

Sure! 'Netscape' class was used as an alias for Firefox until 2015. The current Firefox handling was added to webbrowser in 2015 because support for the -raise, -remote and other arguments used by the 'Netscape' class were dropped from Firefox v36+. The discussion is here: https://bugs.python.org/issue23262

There was discussion to drop the old 'Netscape' class in that issue, but it was decided to keep for backwards compatibility for old browsers which may have still had a user base then. Since it's been another 7 years, I suggest that's no longer true and the class is not required in future versions of Python.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@DBJim
Register epiphany by name to match surrounding code
90fa6d2
merwok
merwok approved these changes Mar 27, 2023
View reviewed changes
@bedevere-bot bedevere-bot added awaiting merge and removed awaiting change review labels Mar 27, 2023
@merwok
merwok requested review from serhiy-storchaka and terryjreedy March 27, 2023 14:36
serhiy-storchaka
serhiy-storchaka reviewed Mar 27, 2023
View reviewed changes

@serhiy-storchaka serhiy-storchaka left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

It may be worth to add also a What's New entry (in the "Removed" section).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

DBJim reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
Comment thread Lib/webbrowser.py Resolved

Uh oh!

There was an error while loading. Please reload this page.

DBJim and others added 2 commits March 28, 2023 08:05
@DBJim @serhiy-storchaka
Fix typo
bdab968
Co-authored-by: Serhiy Storchaka <[email protected]>
@DBJim
Add 'whatsnew' entry
7b1d4f9
serhiy-storchaka
serhiy-storchaka approved these changes Mar 31, 2023
View reviewed changes
@merwok
merwok merged commit b0422e1 into python:main Mar 31, 2023
@bedevere-bot bedevere-bot removed the awaiting merge label Mar 31, 2023
warsaw pushed a commit to warsaw/cpython that referenced this pull request Apr 11, 2023
@DBJim @warsaw
pythongh-102871: Remove obsolete browsers from webbrowser (python#102872
5887ff6
)
@vstinner

vstinner commented Jun 13, 2023

Copy link
Copy Markdown
Member

This issue broke the Konqueror class which still uses the _remote() method, removed by this PR:

$ ./python -m webbrowser https://www.google.com/
Traceback (most recent call last):
  File "/home/vstinner/python/main/Lib/runpy.py", line 198, in _run_module_as_main
    return _run_code(code, main_globals, None,
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vstinner/python/main/Lib/runpy.py", line 88, in _run_code
    exec(code, run_globals)
  File "/home/vstinner/python/main/Lib/webbrowser.py", line 631, in <module>
    main()
  File "/home/vstinner/python/main/Lib/webbrowser.py", line 626, in main
    open(url, new_win)
  File "/home/vstinner/python/main/Lib/webbrowser.py", line 86, in open
    if browser.open(url, new, autoraise):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/vstinner/python/main/Lib/webbrowser.py", line 398, in open
    ok = self._remote("LOAD " + url)
         ^^^^^^^^^^^^
AttributeError: 'Konqueror' object has no attribute '_remote'

By the way, webbrowser.Konqueror defines twice its open() method!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@sobolevn sobolevn mentioned this pull request Jun 13, 2023
webbrowsers.Konqueror is broken #105745
Closed
@sobolevn

sobolevn commented Jun 13, 2023

Copy link
Copy Markdown
Member

@vstinner seems like a bad merge conflict resolution, PR is here: #105745

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@terryjreedy terryjreedy mentioned this pull request Jun 22, 2023
gh-105983: Add private mode support to webbrowser #105984
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@eendebakpt eendebakpt eendebakpt left review comments
@sobolevn sobolevn sobolevn left review comments
@merwok merwok merwok approved these changes
@serhiy-storchaka serhiy-storchaka serhiy-storchaka approved these changes
@corona10 corona10 Awaiting requested review from corona10
@terryjreedy terryjreedy Awaiting requested review from terryjreedy

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

stdlib Standard Library Python modules in the Lib/ directory

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

9 participants

@DBJim @terryjreedy @merwok @bedevere-bot @vstinner @sobolevn @eendebakpt @serhiy-storchaka @arhadthedev
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.