Closed
Bug 1540875
Opened 3 years ago
Closed 3 years ago
JavaScript warning: resource://gre/modules/UrlClassifierLib.jsm, line 34: Array.slice is deprecated; use Array.prototype.slice instead
Categories
(Toolkit :: Safe Browsing, defect)
Toolkit
Safe Browsing
Tracking
()
RESOLVED
FIXED
mozilla68
Tracking | Status | |
---|---|---|
firefox68 | --- | fixed |
People
(Reporter: dholbert, Assigned: dholbert)
References
(Regression)
Details
(Keywords: regression)
Attachments
(1 file)
Noticed the following debug logging spam when running ./mach wpt (command here[1], though probably this happens with lots of commands; anything that exercises this JSM in the background):
JavaScript warning: resource://gre/modules/UrlClassifierLib.jsm, line 34:
Array.slice is deprecated; use Array.prototype.slice instead
searchfox link:
https://searchfox.org/mozilla-central/rev/201450283cddc9e409cec707acb65ba6cf6037b1/toolkit/components/url-classifier/UrlClassifierLib.jsm#34
Assignee | ||
Comment 1•3 years ago
|
||
[1] The exact command I used (probably not important) was:
xvfb-run ./mach wpt --verify \
testing/web-platform/tests/css/css-flexbox/quirks-auto-block-size-with-percentage-item.html
Comment 2•3 years ago
|
||
Bug 1384040 was just moving code around.
Assignee | ||
Comment 3•3 years ago
|
||
Thanks. I depended on searchfox blame too heavily. :)
Assignee | ||
Comment 4•3 years ago
|
||
Assignee | ||
Comment 5•3 years ago
|
||
I verified locally that the warning goes away with this patch.
Assignee | ||
Updated•3 years ago
|
Assignee: nobody → dholbert
Status: NEW → ASSIGNED
Updated•3 years ago
|
Component: General → Safe Browsing
Updated•3 years ago
|
Updated•3 years ago
|
Keywords: regression
Pushed by dholbert@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a95cb35d2b20 Switch from Array.slice to Array.prototype.slice in UrlClassifierLib.jsm, to address JS warning. r=marco
Comment 7•3 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
status-firefox68:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Updated•7 months ago
|
Has Regression Range: --- → yes
You need to log in
before you can comment on or make changes to this bug.
Description
•