Repository: nvaccess/nvda

Issue:
Edge-based content: Found errors without a plausible explanation
<!--
Please thoroughly read NVDA's wiki article on how to fill in this template, including how to provide the required files.
Issues may be closed if the required information is not present.
https://github.com/nvaccess/nvda/wiki/Github-issue-template-explanation-and-examples
-->

### Steps to reproduce:

This occur in various well-known apps.

1. Open the start menu and write office.
1. Open the "Office" universal app.
1. Wait the app toload and then press <kbd>tab</kbd> key twice.

### Actual behavior:

Error beep is played. See this log chunk

```
ERROR - eventHandler.executeEvent (07:29:06.442) - MainThread (20396):
error executing event: gainFocus on <NVDAObjects.UIA.edge.EdgeNode object at 0x06F213D0> with extra args of {}
Traceback (most recent call last):
  File "eventHandler.pyc", line 155, in executeEvent
  File "eventHandler.pyc", line 92, in __init__
  File "eventHandler.pyc", line 100, in next
  File "browseMode.pyc", line 1513, in event_gainFocus
  File "speech\__init__.pyc", line 1073, in speakTextInfo
  File "textInfos\__init__.pyc", line 529, in getControlFieldSpeech
  File "speech\__init__.pyc", line 1499, in getControlFieldSpeech
KeyError: 'nav'
```

### Expected behavior:

Should behave as normal.

### System configuration
#### NVDA installed/portable/running from source:

Installed and from source, both tested.

#### NVDA version:

Tested with alpha-19523,f25f33d3 and 2019.3 beta branch.

#### Windows version:

Windows 10 Pro x64 (version 1909)

#### 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 PC?
Yes

#### Have you tried any other versions of NVDA? If so, please report their behaviors.

Tried 2019.2.1 without errors.


Discussion:
CC @josephsl @leonardder @michaelDCurran @Adriani90 
Updated description with missing information.
Pressed the wrong button 😂
I don't have the office universal app myself. Is there another app where this happens? It would help to have a list of those.
Hello,


Yes, the issue happen with github web page under classic edge. When you
navigate to the new menu, either by tabbing or with virtual buffer
review. Another is the Twitter universal app.


Cheers,

-- 
Cuando tus fuerzas terminan, las de mi Dios comienzan.



In youtube the issue is reproducible too when you land to the navigation section.

Resolving patch:
diff --git a/source/_UIAHandler.py b/source/_UIAHandler.py
--- a/source/_UIAHandler.py
+++ b/source/_UIAHandler.py
@@ -1,6 +1,6 @@
 # _UIAHandler.py
 # A part of NonVisual Desktop Access (NVDA)
-# Copyright (C) 2011-2019 NV Access Limited, Joseph Lee, Babbage B.V., Leonard de Ruijter
+# Copyright (C) 2011-2020 NV Access Limited, Joseph Lee, Babbage B.V., Leonard de Ruijter
 # This file is covered by the GNU General Public License.
 # See the file COPYING for more details.
 
@@ -149,7 +149,7 @@
 
 UIALandmarkTypeIdsToLandmarkNames: Dict[int, str] = {
 	UIA.UIA_FormLandmarkTypeId: "form",
-	UIA.UIA_NavigationLandmarkTypeId: "nav",
+	UIA.UIA_NavigationLandmarkTypeId: "navigation",
 	UIA.UIA_MainLandmarkTypeId: "main",
 	UIA.UIA_SearchLandmarkTypeId: "search",
 }


Test patch: