https://bugzilla.wikimedia.org/show_bug.cgi?id=68915

            Bug ID: 68915
           Summary: VisualEditor: Triggering context on link after defocus
                    throws "TypeError: Cannot read property 'isCollapsed'
                    of null"
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: Editing Tools
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]
       Web browser: ---
   Mobile Platform: ---

1. Click on a link to show the context menu.
2. Right click on the description of the link in the context menu (eg. name of
page the link points to).
3. Choose "Inspect element" which will defocus the page.
4. Click on the link again, thus putting the cursor back in the page; somewhere
in the linked word.

After the context menu re-appears, a callback from AnnotagionInspector run via
a OO.ui.Process throws:

Uncaught TypeError: Cannot read property 'isCollapsed' of null 
> ve.ui.AnnotationInspector.prototype.getSetupProcess = function () {
>   ..
>   .. fragment.getRange().isCollapsed()
 (anonymous function) ve.ui.AnnotationInspector.js:159
 (anonymous function) oojs-ui.js:3030
 (anonymous function)
 jQuery.extend.Deferred
 promise.then
 OO.ui.Process.execute oojs-ui.js:3067
 OO.ui.Window.setup oojs-ui.js:1902

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to