Last modified: 2014-08-13 11:08:48 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T70417, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 68417 - Hovercards removes tooltip and wastes API call on link with href="javascript:void(0);"
Hovercards removes tooltip and wastes API call on link with href="javascript:...
Status: PATCH_TO_REVIEW
Product: MediaWiki extensions
Classification: Unclassified
Popups (Other open bugs)
master
All All
: Unprioritized minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-07-23 02:11 UTC by spage
Modified: 2014-08-13 11:08 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description spage 2014-07-23 02:11:05 UTC
* Open your browser's developer console to the Net tab.
* visit a Flow board like http://en.wikipedia.beta.wmflabs.org/wiki/Talk:Flow
* Hover over the sort indicator ("Newest topics v" or "Recently active topics v")

Result:
1. You don't see the tooltip for the sort.
2. Popups makes its API request for extracts|pageimages|revisions|info for the title "You are currently reading the newest topics first. ...", but there's (probably) no page with that title so it returns "missing".

Expected:
This link is <a href="javascript:void(0);" title="You are currently reading the newest topics first..." ...>.  Popups should not bother with such a link. It looks like ext.popups.core.js setupTriggers() intends to exclude hrefs that start with '#' which is often the target for JavaScript enhancements; it needs similar code for hrefs that start with "javascript:" which fixes 2. However, by the time setupTriggers() is called, removeTooltips() has already blanked the title attribute, so the test needs to happen earlier.
Comment 1 Gerrit Notification Bot 2014-07-23 02:19:44 UTC
Change 148583 had a related patch set uploaded by Spage:
Don't render popup on "javascript:..." links.

https://gerrit.wikimedia.org/r/148583
Comment 2 Gerrit Notification Bot 2014-08-13 11:08:48 UTC
Change 148583 merged by Prtksxna:
Don't render popup on "javascript:..." links.

https://gerrit.wikimedia.org/r/148583

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links