New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 665459 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner:
Closed: Nov 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , All
Pri: 2
Type: Bug



Sign in to add a comment

Autocomplete menu broken on Atlassian Jira after upgrade from 53.0.2785.143 to 54.x (various)

Reported by nn...@neulinger.org, Nov 15 2016

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.100 Safari/537.36

Example URL:
https://issues.jenkins-ci.org/browse/WEBSITE-240

Steps to reproduce the problem:
1. https://issues.jenkins-ci.org/browse/WEBSITE-240
2. click to make advanced search field display
3. type "tex" and then click on "text" in the autocomplete/suggestion popup.

On 53.x - 'text' will populate in the search. On 54.x - nothing happens.

Above URL is just an example of a publicly accessible jira site you can test with. 

What is the expected behavior?
'text' will populate.

What went wrong?
Nothing happens. 

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? N/A 

Does this work in other browsers? Yes

Chrome version: 54.0.2840.100  Channel: stable
OS Version: UB16
Flash Version: Shockwave Flash 23.0 r0

https://support.atlassian.com/servicedesk/customer/portal/22/JSP-277859

Open issue with Atlassian. I realize this is probably something that they can code around, but it very clearly was a change in behavior from 53 to 54. (I was trying to diagnose/reproduce from my desktop and couldn't, but all other systems were showing the failure. As soon as I updated desktop (ub16 linux) to 54, it started showing same symptom as all the 54 windows boxes.)
 
Labels: Needs-Feedback
Where do I click to "advanced search field display"? Could you provide a screenshot of what this should look like?

Comment 2 by nn...@neulinger.org, Nov 15 2016

Ah, sorry, copied only part of the url, missed parms.

https://issues.jenkins-ci.org/browse/WEBSITE-240?jql=


ss1.png
39.8 KB View Download
ss2.png
58.9 KB View Download

Comment 3 by nn...@neulinger.org, Nov 15 2016

click advanced over to the right of the magnifying glass

Comment 4 by nn...@neulinger.org, Nov 15 2016

FYI, confirmations of this from differnet users in multiple organizations that I support, on multiple platforms. 

Comment 5 by nn...@neulinger.org, Nov 16 2016

Atlassian is also treating as a bug on their side:

https://jira.atlassian.com/browse/JRA-63206
Cc: yosin@chromium.org chongz@chromium.org
Components: -Blink Blink>Editing
Appears they are updating the selection range and then doing a execCommand insertText command but it doesn't update the page.

chongz@ could this be anything caused by you?
specifically I see 

        that.replaceValue = function(start, end, newValue) {
            var jQueryReference = jQuery(that.field);
            jQueryReference.selectionRange(start, end);
            if (jQuery.browser.webkit) {
                document.execCommand("insertText", false, newValue)
            } else {
                jQueryReference.selection(newValue)
            }
            var newEnd = jQueryReference.selectionRange().end;
            jQueryReference.selectionRange(newEnd, newEnd)
        }

execute 
Labels: -Needs-Feedback M-54

Comment 9 by chongz@chromium.org, Nov 17 2016

Cc: dtapu...@chromium.org
Components: -Blink>Editing Blink>Editing>Selection
Labels: -OS-Linux OS-All
Owner: tkent@chromium.org
Status: Assigned (was: Unconfirmed)
Narrow bisect points to:
https://chromium.googlesource.com/chromium/src/+/530015339e3f6572d239432b69f77ebca1492f73

tkent@ can you take a look at this issue please? Thanks!

Comment 10 by tkent@chromium.org, Nov 17 2016

Components: -Blink>Editing>Selection Blink>Forms>Text
Labels: OS-Linux
Status: WontFix (was: Assigned)
The code in comment 7 depends on a WebKit-origin bug which I fixed. input.setSelectionRange() sets focus unnecessarily.  execCommand() is ignored because there is no focused element.

The fix would be:

* Remove jQuery.browser.webkit code path,

* Add .focus() before execCommand()

etc.

Sign in to add a comment