New issue
Advanced search Search tips

Issue 621959 link

Starred by 2 users

Issue metadata

Status: Archived
Owner: ----
Closed: Aug 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Issue with JS appending html data

Reported by fro...@gmail.com, Jun 21 2016

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:47.0) Gecko/20100101 Firefox/47.0

Steps to reproduce the problem:
I have a client who use Chrome to use a web application.

Since the update to 51 last week, there is a part of the application that now no longer works. Its a Javascript function that now fails and the application hangs.

Everything still works on Firefox, IE, Safari and Chrome version 50

This is a massive issue.

The JS function that no longer works is below. This function, retrieves an updated list of customers & consumers from the database which then repopulates a form, appending the added customer/consumer.

I get NO errors from the Chrome Console????!!!!

        refresh_people: function (new_id) {
            $.post('/contacts/get_contacts_amended', {}, function (data) {
                $('#new_job_form #customer_name').empty();
                $(data.customers).each(function (i, item) {
                    var sel = (new_id == item.id) ? 'selected="selected"' : '';
                    $('<option value="' + item.id + '"' + sel + '>' + item.company + '</option>').appendTo('#new_job_form #customer_name');
                });
                $('#new_job_form #consumer_name').empty();
                $(data.consumers).each(function (i, item) {
                    var sel = (new_id == item.id) ? 'selected="selected"' : '';
                    $('<option value="' + item.id + '"' + sel + '>' + item.title + '. ' + item.forename + ' ' + item.surname + '</option>').appendTo('#new_job_form #consumer_name');
                });
                //$('#new_job_form #consumer_name_row').effect('highlight');
                //$('#new_job_form #customer_name_row').effect('highlight');
            });
        },

What is the expected behavior?
What happens on screen when this function operates correctly:

Overview of the functionality:

1) A user is adding a job to the system, a dialog box opens for them to enter details of the new job. (#new_job_form)
    a) - this includes a list of current customers (dropdown/select)

2) If the job relates to a new customer, there is a link on the add job dialog to create a new customer.

3) When the new customer link is clicked, a new dialog box appears on top of the add job dialog for them to enter the new customers details.

4) Once the user has entered the new customers details and clicks ok:
   a) - the customer is added to the database
   b) - the new customer dialog is closed
   c) - the new customer is appended to the list of current customers (dropdown/select) on the add job dialog

4c is the problem, appending the newly entered customer to the dropdown on thew add job screen

What went wrong?
The application just hangs

Did this work before? Yes on version 50 and all previous versions

Chrome version: 51  Channel: n/a
OS Version: OS X 10.10
Flash Version: Shockwave Flash 21.0 r0
 

Comment 1 by pdr@chromium.org, Jun 23 2016

Cc: pdr@chromium.org
Status: ExternalDependency (was: Unconfirmed)
Thanks for taking the time to file this.

Unfortunately, I don't think there's enough information here to make progress on this from our end. Can you create a small html file (or jsbin @ jsbin.com) that reproduces this bug? It's possible that some other code has something like if (chromeversion < 50) { hang forever }, but it's also possible that chrome introduced a regression.

Comment 2 by pdr@chromium.org, Jun 24 2016

Status: Unconfirmed (was: ExternalDependency)

Comment 3 by joh...@chromium.org, Jun 27 2016

Labels: Needs-Feedback
ping frobak@ can you please provide feedback requested in #1.

Comment 5 by fro...@gmail.com, Jul 8 2016

I'm not sure how I can reproduce, as i would need to use the framework, and
the pull the data from the database
Project Member

Comment 6 by sheriffbot@chromium.org, Jul 8 2016

Labels: -Needs-Feedback Needs-Review
Owner: joh...@chromium.org
Thank you for providing more feedback. Adding requester "johnme@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
frobak@ is there a reproduction URI that can be accessed? 
Cc: -pdr@chromium.org chrishtr@chromium.org
Labels: -Needs-Review Needs-Feedback
frobak@: can you link to your website at least, with instructions on how to
reproduce the bug?
Owner: ----
Components: -Blink Blink>JavaScript
Components: -Blink>JavaScript Blink

Comment 12 by fro...@gmail.com, Jul 12 2016

Ok, its a live password protected system used by a client of mine. I do
have a mirror of it that I could i suppose give you access too, and give
you instructions on how to reproduce the issue. I will sort this out and
send you instructions later today
Project Member

Comment 13 by sheriffbot@chromium.org, Jul 12 2016

Labels: -Needs-Feedback Needs-Review
Owner: chrishtr@chromium.org
Thank you for providing more feedback. Adding requester "chrishtr@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Labels: -Needs-Review Needs-Feedback
Owner: ----
frobak@ we are still awaiting a reproduction step. Many thanks!
Cc: tkent@chromium.org
Status: Archived (was: Unconfirmed)
Feedback timeout.
We can't investigate this issue without a reproduction.

Sign in to add a comment