Closed Bug 1426350 Opened 6 years ago Closed 6 years ago

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

Categories

(Firefox :: Tabbed Browser, enhancement, P1)

enhancement

Tracking

()

RESOLVED FIXED
Firefox 59
Tracking Status
firefox59 --- fixed

People

(Reporter: dao, Assigned: dao)

Details

Attachments

(1 file)

      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: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 59
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: