Skip to content

Exception in isSamePageURL when parsing malformed url #19125

@Danstiv

Description

@Danstiv

Steps to reproduce

  1. Open the mre.html.
  2. Try to navigate using arrow keys.

Actual behavior

No speech, nvda raises exceptions.

Expected behavior

No exceptions should occur.

NVDA logs, crash dumps and other attachments

ERROR - scriptHandler.executeScript (23:09:43.571) - MainThread (1500):
error executing script: <bound method CursorManager.script_moveByLine_forward of <NVDAObjects.IAccessible.chromium.ChromeVBuf object at 0x0000013D03DB8EC0>> with gesture 'down arrow'
Traceback (most recent call last):
  File "scriptHandler.pyc", line 300, in executeScript
  File "cursorManager.pyc", line 325, in script_moveByLine_forward
  File "cursorManager.pyc", line 189, in _caretMovementScriptHelper
  File "speech\speech.pyc", line 1498, in speakTextInfo
  File "speech\types.pyc", line 47, in __iter__
  File "speech\speech.pyc", line 1538, in getTextInfoSpeech
  File "virtualBuffers\__init__.pyc", line 345, in getTextWithFields
  File "virtualBuffers\__init__.pyc", line 333, in _getFieldsInRange
  File "virtualBuffers\__init__.pyc", line 322, in _normalizeCommand
  File "NVDAObjects\IAccessible\chromium.pyc", line 63, in _normalizeControlField
  File "virtualBuffers\gecko_ia2.pyc", line 176, in _normalizeControlField
  File "browseMode.pyc", line 316, in getLinkTypeInDocument
  File "utils\urlUtils.pyc", line 24, in getLinkType
  File "utils\urlUtils.pyc", line 43, in isSamePageURL
  File "urllib\parse.pyc", line 395, in urlparse
  File "urllib\parse.pyc", line 516, in urlsplit
  File "urllib\parse.pyc", line 447, in _check_bracketed_netloc
ValueError: Invalid IPv6 URL

System configuration

NVDA installed/portable/running from source

Installed

NVDA version

alpha-53165,dfa2ed0a (2026.1.0.53165)

Windows version

Windows 11 24H2 (AMD64) build 26100.6899

Name and version of other software in use when reproducing the issue

Other information about your system

Other questions

Does the issue still occur after restarting your computer?

Yes

Have you tried any other versions of NVDA? If so, please report their behaviors

If NVDA add-ons are disabled, is your problem still occurring?

Yes

Does the issue still occur after you run the COM Registration Fixing Tool in NVDA's tools menu?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug squash targetbug/regressionp2https://github.com/nvaccess/nvda/blob/master/projectDocs/issues/triage.md#prioritytriagedHas been triaged, issue is waiting for implementation.

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions