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

Issue 822161 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Apr 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

Google chrome deleting javascript events after opening or closing developer console

Reported by tony.jos...@live.com, Mar 15 2018

Issue description

UserAgent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:58.0) Gecko/20100101 Firefox/58.0

Steps to reproduce the problem:
$(() => {
    let bindEvents = () => {
        alert('Binding events');

        let targets = $('iframe').contents().find('rect');
        $.each(targets, (elm, i) => {
            $(targets[elm]).on('click', () => {
                alert('Hello, World!');
            });
        });
    }
    setTimeout(bindEvents, 10000);
});
I have an iframe embedded in a webpage. This iframe has a some `rect` elements inside an `svg` element. The following code is used to bind events to the `rect elements:

    let targets = $('iframe').contents().find('rect');
    $.each(targets, (elm, i) => {
      $(targets[elm]).on('click', () => {
        alert('Hello, World!');
      });
    });
On chrome 64 these events are getting deleted when developer console is opened. On chrome 65, these events won't get binded if developer console is not opened.These issue is happening in chrome on ubuntu. Chrome 58 and 61 has no issues in binding evnets.

What is the expected behavior?
Events should persist irrespective of developer tools state

What went wrong?
 Events are getting deleted after opening or closing developer console

Did this work before? N/A 

Chrome version: 65.0.3325.162 (Official Build) (64-bit)  Channel: stable
OS Version: Ubuntu 17.10
Flash Version:
 
Labels: Needs-Triage-M65
Cc: krajshree@chromium.org
Labels: Needs-Feedback Triaged-ET
Reporter@ - Thanks for filing the issue...!!

Could you please provide a sample test file/url to test the issue from TE-end.
This will help us in triaging the issue further.

Thanks...!!
Components: -Blink Platform>DevTools
Could you provide a link to a page where this reproduces?
Status: WontFix (was: Unconfirmed)

Sign in to add a comment