Move tab context menu tests to browser/base/content/test/tabs/

RESOLVED FIXED in Firefox 59

Status

()

enhancement
P1
normal
RESOLVED FIXED
2 years ago
2 years ago

People

(Reporter: dao, Assigned: dao)

Tracking

Trunk
Firefox 59
Points:
---

Firefox Tracking Flags

(firefox59 fixed)

Details

Attachments

(1 attachment)

No description provided.
Comment on attachment 8937959 [details]
Bug 1426350 - Move tab context menu tests to browser/base/content/test/tabs/.

https://reviewboard.mozilla.org/r/208670/#review214484

Nice, thanks!

::: browser/base/content/test/sync/browser_contextmenu_sendtab.js:18
(Diff revision 1)
> +  var evt = new Event("");
> +  tab.dispatchEvent(evt);

I know we're kinda cargo-culting this, but seeing as you removed the waiting for the popup to be hidden... what does this event dispatching accomplish? Can we remove that too?
Attachment #8937959 - Flags: review?(gijskruitbosch+bugs) → review+
(In reply to :Gijs from comment #3)
> Comment on attachment 8937959 [details]
> Bug 1426350 - Move tab context menu tests to browser/base/content/test/tabs/.
> 
> https://reviewboard.mozilla.org/r/208670/#review214484
> 
> Nice, thanks!
> 
> ::: browser/base/content/test/sync/browser_contextmenu_sendtab.js:18
> (Diff revision 1)
> > +  var evt = new Event("");
> > +  tab.dispatchEvent(evt);
> 
> I know we're kinda cargo-culting this, but seeing as you removed the waiting
> for the popup to be hidden... what does this event dispatching accomplish?
> Can we remove that too?

It's there so it can be passed to openPopup as the triggering event.
Pushed by dgottwald@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/df5f2fa581c5
Move tab context menu tests to browser/base/content/test/tabs/. r=Gijs
https://hg.mozilla.org/mozilla-central/rev/df5f2fa581c5
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
You need to log in before you can comment on or make changes to this bug.