Closed Bug 1703388 Opened 3 years ago Closed 3 years ago

Failure in browser/modules/test/browser/browser_PageActions_contextMenus.js with proton urlbar

Categories

(Firefox :: Address Bar, defect, P1)

defect
Points:
2

Tracking

()

RESOLVED FIXED
89 Branch
Iteration:
89.2 - Apr 5 - Apr 18
Tracking Status
firefox89 --- fixed

People

(Reporter: mak, Assigned: adw)

References

Details

(Whiteboard: [proton-address-bar])

Attachments

(1 file)

There's failures in browser/modules/test/browser/browser_PageActions_contextMenus.js when graduating the proton urlbar

Priority: -- → P1
Assignee: nobody → adw
Severity: -- → S4
Status: NEW → ASSIGNED
Iteration: --- → 89.2 - Apr 5 - Apr 18
Points: --- → 2

This builds on D111205 by factoring out some initialization into a new
initPageActionsTest() in head.js. I'll need to use it in
browser_PageActions_newWindow.js too (bug 1703389).

Pre-Proton, there are 4 page action context menu items:

  • Add to Address Bar
  • Remove from Address Bar
  • Manage Extension
  • Remove Extension

Regardless of Proton, there are two context menus, one for buttons in the urlbar
and one for items in the page action panel. They're actually the same menu of
course.

This test currently checks each menu item in both context menus for a
non-built-in action except for the Remove Extension menu item. In Proton, we
don't need to check Add or Remove, so I modified the test to skip them. I also
added a check for the Remove Extension menu item. The test now must actually
create an extension with a page action to test the context menu because in
Proton only actions with extension IDs get the context menu (bug 1700364). Since
the test is creating an extension anyway, testing the Remove Extension menu item
isn't too hard.

Depends on D111205

proton is now enabled in nightly fwiw, proton.urlbar is not.

Ah thanks. I need to update my Nightly! And my m-c apparently... although I think I did notice some changes actually.

Pushed by dwillcoxon@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/a655c3f81a83
Fix failures in browser/modules/test/browser/browser_PageActions_contextMenus.js with proton urlbar. r=mak
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 89 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: