diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-09-02 11:18:27 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-02 11:18:27 (GMT) |
commit | bf0d8bb30197a10867e48814a1b0595d50e02695 (patch) | |
tree | 546720322137c1a6aedbbae43fba245100803f8d /Python/sysmodule.c | |
parent | 1af74fa652b40d5ce67875ebfefd2f5a1cc28a2f (diff) | |
download | cpython-bf0d8bb30197a10867e48814a1b0595d50e02695.zip cpython-bf0d8bb30197a10867e48814a1b0595d50e02695.tar.gz cpython-bf0d8bb30197a10867e48814a1b0595d50e02695.tar.bz2 |
[3.13] gh-108172: do not override OS preferred browser if it is a super-string of a known browser (GH-113011) (#123527)
gh-108172: do not override OS preferred browser if it is a super-string of a known browser (GH-113011)
When checking if the registering browser is the "OS preferred browser", do not use a substring search - that makes no sense: one can have a preferred browser that looks like a super-string of a known browser, e.g. "firefox-nightly" vs "firefox".
https://github.com/python/cpython/issues/108172 explains in more detail, and lays out a potential better future enhancement for this case of just using xdg-open. We'll go with this for now.
---------
(cherry picked from commit 10bf615bab9f832971a098f0a42b0d617aea6993)
Co-authored-by: Oded Arbel <oded@geek.co.il>
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Diffstat (limited to 'Python/sysmodule.c')
0 files changed, 0 insertions, 0 deletions