New issue
Advanced search Search tips

Issue 920098 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 912069
Owner: ----
Closed: Jan 10
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

JavaScript function call does not work

Reported by elvissdr...@gmail.com, Jan 9

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

Steps to reproduce the problem:
1. Install extension https://chrome.google.com/webstore/detail/fantasy-viewer-by-elvis/pgeekbdehkonkjahnhkpfnapnamdfpaa
2. Go to url http://fantasyland.ru/cgi/pl_info.php?login=Dr_Elvis
3. Put the cursor on the picture of the heart in the "Награды" section

What is the expected behavior?
A ToolTip appears with the word "Здоровье"

What went wrong?
ToolTip does not appear.
The console error:

Uncaught ReferenceError: ToolTipShow is not defined
    at HTMLImageElement.onmousemove (pl_info.php?login=Dr_Elvis:1)

and

Uncaught ReferenceError: ToolTipHide is not defined
    at HTMLImageElement.onmouseout (pl_info.php?login=Dr_Elvis:1)

Did this work before? Yes  I can't say for sure, but the problem has appeared recently. Found about 20 days ago

Chrome version: 71.0.3578.98  Channel: stable
OS Version: 10.0
Flash Version: 

In Chromium version 71.0.3552.0 - works.

If you look at the page code, you can see the JavaScript declaration in the head:
<script type = 'text / javascript' src = 'tooltip.js'> </ script>
It has the necessary functions ToolTipShow and ToolTipHide

Screenshot how it should work https://cloud.mail.ru/public/MqY3/eMSSJDQHb
 
This is  bug 912069  which appeared in Chrome 71 and got fixed in 72.
You can suggest the extension developer to implement a temporary workaround for Chrome 71:
put the code that assigns onxxxxx attributes into a script element appended to the page.

	var script = document.createElement('script');
	script.textContent = '(' + function(html) {
	  var after = document.getElementById('calc_p');
	  var newNode = document.createElement('div');
	  newNode.setAttribute('id','calc_00');
	  newNode.setAttribute('style','display: none;');
	  newNode.innerHTML = html;
	  after.parentNode.insertBefore(newNode, after.nextSibling);
	} + ')(' + JSON.stringify(imgintable) + ')';
	document.head.appendChild(script);
	script.remove();

Labels: Needs-Bisect Needs-Triage-M71
Cc: phanindra.mandapaka@chromium.org
Labels: -Needs-Bisect Triaged-ET
Mergedinto: 912069
Status: Duplicate (was: Unconfirmed)
Thanks for filing the issue!

As the issue seems to be similar to that of  Issue 912069 , hence merging into it and marking it as Duplicate.
Note: Feel free to undupe if not the case and removing Needs-Bisect label to it.

Sign in to add a comment