Closed Bug 1531155 Opened 6 years ago Closed 6 years ago

Support the edit context menu on html textareas in top level windows in the parent process

Categories

(Toolkit :: General, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: bgrins, Assigned: bgrins)

References

Details

Attachments

(2 files, 1 obsolete file)

The basic problem here is that context menus for textareas inside a <browser> are handled by nsContextMenu.js, and context menus for XUL textboxes are handled from the <moz-input-box> element. But they don't currently work for plain HTML input fields.

I'm spinning a fix for this out of Bug 1513343.

Priority: -- → P3
Attachment #9047197 - Attachment description: Bug 1531155 - Support context menus in html:textarea in the parent process → Bug 1531155 - Support context menus in html:textarea in the parent process, r=Neil
Attachment #9048217 - Attachment is obsolete: true

TV fails TEST-UNEXPECTED-FAIL | toolkit/content/tests/chrome/test_edit_contextmenu.html | paste enabled (https://treeherder.mozilla.org/#/jobs?repo=try&revision=b85728bb296c3e1c83517d75ba86a5105782be04&selectedJob=231705567). It runs locally just fine. I suppose that some tests running before this one has to copy something into clipboard, what makes this test fail. Would it be reasonable to remove that line from the test?

Attachment #9047197 - Attachment description: Bug 1531155 - Support context menus in html:textarea in the parent process, r=Neil → Bug 1531155 - Support context menus in html:textarea in the parent process, r=NeilDeakin

(In reply to alexander :surkov (:asurkov) from comment #3)

TV fails TEST-UNEXPECTED-FAIL | toolkit/content/tests/chrome/test_edit_contextmenu.html | paste enabled (https://treeherder.mozilla.org/#/jobs?repo=try&revision=b85728bb296c3e1c83517d75ba86a5105782be04&selectedJob=231705567). It runs locally just fine. I suppose that some tests running before this one has to copy something into clipboard, what makes this test fail. Would it be reasonable to remove that line from the test?

I guess I will disable paste_enabled test for landing to not to hold the whole thing down, and leave it to Brian whether it should be enabled or not. It feels ok to skip it since it looks it is browser state dependent.

Pushed by asurkov@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/71e5f2f8ca11 Support context menus in html:textarea in the parent process, r=NeilDeakin

You could just stick something on the clipboard beforehand if needed using SimpleTest.promiseClipboardChange. You'd need to move the test into the clipboard subsuite as well.

Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
Depends on: 1532483
Pushed by bgrinstead@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/2f068b111006 Remove editmenu.ftl from browser_all_files_referenced.js;r=Gijs
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: