Last modified: 2014-02-24 15:37:27 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 T36756, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34756 - SimpleSearch should use native event handling (open link in or submit form to a new tab)
SimpleSearch should use native event handling (open link in or submit form to...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
unspecified
All All
: Low major (vote)
: 1.23.0 release
Assigned To: Bartosz Dziewoński
:
Depends on:
Blocks: 27411
  Show dependency treegraph
 
Reported: 2012-02-27 18:43 UTC by badon
Modified: 2014-02-24 15:37 UTC (History)
7 users (show)

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


Attachments

Description badon 2012-02-27 18:43:47 UTC
Tested in Opera.

Shift + Enter does not work to popup a wiki search in a new browser page or tab on WMF sites. I think it's because of the Vector extension's changes the search box. I've lost a lot of work on Wikipedia when I try to find a cite or other info, and then the Vector search box causes my browser to leave my work unsaved, and lost forever.

This seems to be related, but describes slightly different phenomena for a different extension:

https://bugzilla.wikimedia.org/show_bug.cgi?id=23866
Comment 1 Mark A. Hershberger 2012-02-28 01:50:04 UTC
This is browser specific behavior as far as I can tell.  For instance, here on bugzilla, a similarly styled search box doesn't open a new window in FF, but does in Opera on shift-enter.

But, you're right, the behavior is different in opera on enwiki.  Since I can see this on enwiki, it definitely isn't a 1.19 problem.
Comment 2 Daniel Friesen 2012-02-28 02:06:06 UTC
My guess is this is to do with the code around here: http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/resources/jquery/jquery.suggestions.js?view=markup#l492

If the search box is visible when you hit enter that code does and runs preventDefault, likely killing Opera's feature. My guess is the intent was to capture enters that are pressed when one of the suggestion entries are given, but it isn't looking for the actual case when they are actually selected like it should be.
Comment 3 badon 2012-02-28 03:25:24 UTC
Chrome is affected too. There may be other browsers with issues also. I tested MSIE, but it does not seem to have the shift + enter feature.
Comment 4 badon 2012-06-26 05:44:04 UTC
Bug 23866 was just closed by me. It reports a similar issue that is apparently specific to a now-obsolete version of Opera. However, I tested this bug again with Opera 12.00, Google Chrome 19.0.1084.56 m, and whatever random browsers I had sitting around, and I'm certain it is a problem with Vector, not the browsers. 

I also decided to upgrade this bug to "major" because it unexpectedly causes loss of work when editors try to check their facts with a Wikipedia search.

Vector 0.3.0 at Wikipedia is the version I tested again today.
Comment 5 Timeshifter 2012-08-08 19:34:30 UTC
If you are interested, there is a JavaScript import to open search in a new tab via Ctrl-click (PC) and Command-click (Mac). The Command key is the Apple key on Apple keyboards. See: 
http://commons.wikimedia.org/wiki/User_talk:Timeshifter/Open_search_in_new_tab.js

A related feature request is bug 35974. Preference or default setting to open search results and suggestions in new tab.
Comment 6 Gerrit Notification Bot 2013-09-14 10:49:42 UTC
Change 48252 had a related patch set uploaded by Bartosz Dziewoński:
jquery.suggestions, mediawiki.searchSuggest: Fix form submission

https://gerrit.wikimedia.org/r/48252
Comment 7 Gerrit Notification Bot 2014-02-24 15:31:18 UTC
Change 48252 merged by jenkins-bot:
jquery.suggestions, mediawiki.searchSuggest: Fix form submission

https://gerrit.wikimedia.org/r/48252
Comment 8 Bartosz Dziewoński 2014-02-24 15:36:20 UTC
This should work now (the fix is not deployed on Wikimedia wikis yet). Please report any problems that might seem related. :)

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


Navigation
Links