in postData insert jQuery object
Reported by
dhf...@gmail.com,
Feb 13 2017
|
|||||||||
Issue description
Chrome Version : 56.0.2924.87
What steps will reproduce the problem?
(1)-var $coupon = $('#coupon'); (#coupon - some input html-element with id='coupon' )
(2)-postData = { coupon: $coupon }
(3)-$.ajax({
type: 'POST',
url: '/ajax/basket.php',
data: postData,
success : function(data) {
},
});
(4)-done!
What is the expected result?
-memory overflows
The problem is related to the Ajax requests using jQuery.
If in postData insert jQuery object instead of the correct data, the tab is completely hangs and memory overflows (tab on what does not react, does not close, there is a constant increase in memory usage, whole gigabytes)
,
Feb 14 2017
dhffdh@ in order to triage this issue, could you please help us with sample and http test case and Actual & expected results, so that we can triage this issue from TE-End. Thank You...
,
Feb 14 2017
http://dhffdh3.beget.tech/ Test it
,
Feb 14 2017
P.S. Problem on Windows 8.1
,
Feb 14 2017
In Opera 43.0.2442.806 and IE 11.0.9600 The same behavior as in Chrome,have overflow. But!!!! in Firefox 51.0.1 all Ok. It give "TypeError: 'stepUp' called on an object that does not implement interface HTMLInputElement."
,
Feb 14 2017
,
Feb 21 2017
Thank you for providing more feedback. Adding requester "kkaluri@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
,
Feb 21 2017
,
Feb 21 2017
,
Feb 22 2017
On one button clink this appeared in the console:
jquery-1.12.4.min.js:2 Uncaught RangeError: Maximum call stack size exceeded
at Function.type (jquery-1.12.4.min.js:2)
at dc (jquery-1.12.4.min.js:4)
at dc (jquery-1.12.4.min.js:4)
at dc (jquery-1.12.4.min.js:4)
at dc (jquery-1.12.4.min.js:4)
at dc (jquery-1.12.4.min.js:4)
at dc (jquery-1.12.4.min.js:4)
at dc (jquery-1.12.4.min.js:4)
at dc (jquery-1.12.4.min.js:4)
at dc (jquery-1.12.4.min.js:4)
Another time I got the 150% CPU and memory growth in Chrome.
This really looks like a jquery bug. It's not clear to me how to reduce it further and I'm not confident a bisect will reveal anything.
,
Feb 22 2017
There's an infinite loop in your page. The button calls enterCoupon which modifies the test field that has an onchange function that also calls enterCoupon that calls onchange etc etc. Remove this infinite loop in the code and reopen the bug if the problem still persists.
,
Feb 22 2017
|
|||||||||
►
Sign in to add a comment |
|||||||||
Comment 1 by nyerramilli@chromium.org
, Feb 13 2017