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

Issue 708724 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Apr 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Mac
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Querying for html embed element in Chrome returns anonymous function

Reported by sury...@gmail.com, Apr 5 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36

Example URL:
https://jsfiddle.net/qep543cb/

Steps to reproduce the problem:
1. open attached html in the browser
2. run below javascript in the browser console.
var nodes = document.evaluate("/html[1]/body[1]/embed[1]", document, null, XPathResult.ANY_TYPE, null);
var node = nodes.iterateNext(); 
console.log(node);

3. prints "function anonymous()"

What is the expected behavior?
embed element as in Firefox

What went wrong?
prints anonymous function instead of element.

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: 57.0.2987.133  Channel: stable
OS Version: 6.1 (Windows 7, Windows Server 2008 R2)
Flash Version:
 
embedelement.html
414 bytes View Download
Components: -Blink Blink>Bindings

Comment 2 by sury...@gmail.com, Apr 6 2017

just trying document.getElementById('embed1') on the console returns  "function anonymous()"
Labels: Needs-Triage-M57
Cc: pbomm...@chromium.org gov...@chromium.org brajkumar@chromium.org
Labels: -Type-Bug -Needs-Triage-M57 hasbisect-per-revision M-58 OS-Linux OS-Mac Type-Bug-Regression
Owner: foolip@chromium.org
Status: Assigned (was: Unconfirmed)
Able to reproduce on Windows 10, Ubuntu 14.04 and Mac OS 10.12 using chrome stable M57-57.0.2987.133, This issue is not observed on latest Beta M58-58.0.3029.54, Hence performed reverse bisect provided information below.

Bisect Information:
=====================
Good build: 58.0.3010.0
Bad Build : 58.0.3012.0

You are probably looking for a change made after 450184 (known good), but no later than 450185 (first known bad).

Change Log URL: 
https://chromium.googlesource.com/chromium/src/+log/ecf5359e680e3e250b3317827fb0b1c774721f3c..352682e3c9a3d4b9a6b2147e9b8573b449f71b37

From the above change log suspecting below change
Review URL: https://codereview.chromium.org/2493343002

foolip@ - Could you please check whether this is caused with respect to your change, if not please help us in assigning it to the right owner.

Thanks!

Status: Fixed (was: Assigned)
The report is that console.log(embedElement) prints "anonymous()" in the console, which was fixed by https://codereview.chromium.org/2493343002, since that made it no longer possible to call embed elements as functions.

Sign in to add a comment