Closed Bug 1719985 Opened 3 years ago Closed 3 years ago

Port bug 1717680: Remove document.popupNode and document.tooltipNode

Categories

(Thunderbird :: Upstream Synchronization, task)

Tracking

(thunderbird_esr78 unaffected)

RESOLVED FIXED
91 Branch
Tracking Status
thunderbird_esr78 --- unaffected

People

(Reporter: Paenglab, Assigned: Paenglab)

References

Details

Attachments

(3 files, 2 obsolete files)

No description provided.

This works almost, I think. Except the goCopyImage() function in utilityOverlay.js which gives a undefined back.

Attachment #9230594 - Attachment is patch: true

This patch should be ready except for the MsgComposeCommands.js. An earlier try https://treeherder.mozilla.org/jobs?repo=try-comm-central&revision=6b48f24b956fb3dcf3dd125d0ab86dba2b4f1e77 which had eslint errors that are fixed, except again the MsgComposeCommands.js. I removed the change because it didn't fix the issue.

Geoff, could you help me and fix this part? I don't know how to fix this.

Assignee: nobody → richard.marti
Attachment #9230594 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #9230599 - Flags: review?(geoff)

Added something to MsgComposeCommands.js but I still get this error: JavaScript error: resource://gre/modules/InlineSpellChecker.jsm, line 472: TypeError: can't access property "ownerGlobal", element is null. I don't know how to fix this.

Attachment #9230599 - Attachment is obsolete: true
Attachment #9230599 - Flags: review?(geoff)
Attachment #9230626 - Flags: review?(geoff)
Keywords: leave-open
Target Milestone: --- → 91 Branch
Comment on attachment 9230626 [details] [diff] [review]
1719985-remove-popupnode-tooltipnode.patch

Review of attachment 9230626 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good to me, I'll land in a sec! r=mkmelin
Attachment #9230626 - Flags: review?(geoff) → review+
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/47085882a29d
Port bug 1717680: Remove document.popupNode and document.tooltipNode. r=mkmelin

Geoff, please can you still look at the issue with MsgComposeCommands.js?

Flags: needinfo?(geoff)

(In reply to Richard Marti (:Paenglab) from comment #4)

Created attachment 9230626 [details] [diff] [review]
1719985-remove-popupnode-tooltipnode.patch

Added something to MsgComposeCommands.js but I still get this error: JavaScript error: resource://gre/modules/InlineSpellChecker.jsm, line 472: TypeError: can't access property "ownerGlobal", element is null. I don't know how to fix this.

Does document.popupRangeParent get you the right node? This is how firefox currently gets the word that was context-clicked for spellchecking.

(In reply to Neil Deakin from comment #8)

Does document.popupRangeParent get you the right node? This is how firefox currently gets the word that was context-clicked for spellchecking.

This works, but I still get the error.

Neil's proposal to use document.popupRangeParent.

Attachment #9230637 - Flags: review?(geoff)
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/32bb960b0759
follow-up - Use triggerNode of tabContextMenu even for submenus. rs=bustage-fix

Comment on attachment 9230637 [details] [diff] [review]
1719985-change-MsgComposeCommands.patch

You're right, it doesn't work either. I've found a way.

Flags: needinfo?(geoff)
Attachment #9230637 - Flags: review?(geoff)
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/735244108b31
Fix context menu in compose window editor. rs=me
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Keywords: leave-open
Resolution: --- → FIXED

This time also working on Mac, which for some unknown reason has popup.screenX/Y equal to editor.screenX/Y.

Patch doesn't apply at all (possibly due to something else lined up.)

Oh, ignore me...

Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/cbe00a747440
Fix context menu in compose window editor, take 2. r=mkmelin
Regressed by: 1882725
No longer regressed by: 1882725
Regressions: 1882725
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: