Bug 1882725 Comment 3 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

This fixes a regression introduced 3 years ago. If the compose window
has lots of text and is scrolled to the bottom, the context menu
will not have all entries and the spellchecker throws:

   `can't access property "ownerGlobal", element is null`

According to MDN, `elementFromPoint()` needs coordinates relative to
the view port, but it currently gets coordinates relative to the document.
This fixes a regression introduced 3 years ago in Bug 1719985. If the
compose window has lots of text and is scrolled to the bottom, the
context menu will not have all entries and the spellchecker throws:

```
can't access property "ownerGlobal", element is null
```

According to MDN, `elementFromPoint()` needs coordinates relative to
the view port, but it currently gets coordinates relative to the document.

Back to Bug 1882725 Comment 3