[Koha-bugs] [Bug 23601] New: Middle clicking a title from search results creates two tabs or a new tab and a new window in Firefox

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 12 23:42:20 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=23601

            Bug ID: 23601
           Summary: Middle clicking a title from search results creates
                    two tabs or a new tab and a new window in Firefox
 Change sponsored?: ---
           Product: Koha
           Version: 18.11
          Hardware: All
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P5 - low
         Component: Staff Client
          Assignee: koha-bugs at lists.koha-community.org
          Reporter: bdaeuber at cityoffargo.com
        QA Contact: testopia at bugs.koha-community.org
                CC: gmcharlt at gmail.com

When middle-clicking or ctrl-clicking a title in the results screen of the
staff client, Firefox opens two new tabs.

To reproduce:

1. Use a relatively recent version of Firefox (I've tested this on 68esr and
69)
2. Search for an item in the staff interface
3. From the results screen, middle click or control click a title. 
4. Depending on your Firefox settings, Firefox will open an new window and a
new tab or two new tabs. The popup blocker may also block the opening of these
tabs.

This appears to be related to the preventdefault() being used here, which
Firefox handles differently than other browsers.

There's the broader discussion of whether there's any need to use
preventdefault() here at all. From the comments in the jquery it appears that
someone thought it wasn't a good idea.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list