Last modified: 2014-03-31 20:59:16 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T65208, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 63208 - VisualEditor: Link inspector icon appears after deleting the content of the page and closing the inspector causes an error in the console: Uncaught Error: Offset could not be translated to a DOM element and offset: 65
VisualEditor: Link inspector icon appears after deleting the content of the p...
Status: RESOLVED FIXED
Product: VisualEditor
Classification: Unclassified
Data Model (Other open bugs)
unspecified
All All
: Normal normal
: VE-deploy-2014-04-03
Assigned To: Ed Sanders
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-03-27 22:39 UTC by Rummana Yasmeen
Modified: 2014-03-31 20:59 UTC (History)
7 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Screenshot (158.09 KB, image/png)
2014-03-27 22:39 UTC, Rummana Yasmeen
Details

Description Rummana Yasmeen 2014-03-27 22:39:04 UTC
Created attachment 14946 [details]
Screenshot

Steps to reproduce:

1.Open this page: https://en.wikipedia.org/wiki/User:RYasmeen_%28WMF%29/sandbox?veaction=edit

2.Select all the content 

3.Delete it.

4.A link inspector icon appears in the page.

5.Open the link inspector

6.Close it 

Observed Result:
The links inspector gets all blank and an error appears in the console:
Uncaught Error: Offset could not be translated to a DOM element and offset: 65
Comment 1 Ed Sanders 2014-03-28 23:01:57 UTC
Deleting everything results in an empty document but for the internalList, i.e. [{'type':'internalList'...}, ...]. The popup tool is then look for annotations at range 0 which is then going inside the internal list and finding the link.
Comment 2 Gerrit Notification Bot 2014-03-31 20:56:13 UTC
Change 122556 had a related patch set uploaded by Esanders:
Fix handlesOwnChildren check in getRelativeOffset

https://gerrit.wikimedia.org/r/122556
Comment 3 Gerrit Notification Bot 2014-03-31 20:59:06 UTC
Change 122556 merged by jenkins-bot:
Fix handlesOwnChildren check in getRelativeOffset

https://gerrit.wikimedia.org/r/122556

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links