Page MenuHomePhabricator

Unit test ext.popups.disablenavpop.js
Closed, InvalidPublic

Description

No coverage whatsoever. Unit test properly.

Just a function, 22LOC. Relies in a lot of global state.

Also, please remove // HACK: This is a temporary fix, because it clearly is not. Disabling navigation popups in hovercards is a feature, at least while navigation popups exists.

Event Timeline

Also, please remove // HACK: This is a temporary fix, because it clearly is not. Disabling navigation popups in hovercards is a feature, at least while navigation popups exists.

I heavily encourage followup patches after testing to refactor this little piece of code. Could be a good exercise for offsite.

phuedx subscribed.

This code was removed during T149801: [EPIC] Refactor Hovercards (née Popups). Since the rewrite branch has been merged, this task is now invalid.

For posterity, T151058: Allow users who have navigational popups to use hovercards tracked ensuring that NavPopups and Page Previews played nicely together in the rewrite branch.