Open Bug 941729 Opened 11 years ago Updated 1 year ago

GeckoConsole: [JavaScript Warning: "Use of Mutation Events is deprecated. Use MutationObserver instead." {file: "chrome://reftest/content/reftest-content.js" line: 526}]

Categories

(Testing :: Reftest, defect)

defect

Tracking

(Not tracked)

People

(Reporter: MatsPalmgren_bugz, Unassigned)

References

(Blocks 1 open bug)

Details

This warning is printed for every crashtest AFAICT. We should fix the underlying issue. https://tbpl.mozilla.org/php/getParsedLog.php?id=30865332&tree=Mozilla-Inbound
The reftest harness looks for DOMAttrModified events to find when class="reftest-wait" is removed for reftests that need to do work onload: http://hg.mozilla.org/mozilla-central/annotate/3c4fc4279e6a/layout/tools/reftest/reftest-content.js#l474 I don't think it's particularly complicated, probably an easy fix.
Use a MutationObserver? (new MutationObserver(function(r, m) { m.disconnect(); AttrModifiedListener(); })).observe(contentRootElement, { attributes: true })
Summary: GeckoConsole: [JavaScript Warning: "Use of Mutation Events is deprecated. Use MutationObserver instead." {file: "chrome://reftest/content/reftest-content.js" line: 466}] → GeckoConsole: [JavaScript Warning: "Use of Mutation Events is deprecated. Use MutationObserver instead." {file: "chrome://reftest/content/reftest-content.js" line: 526}]
Blocks: 1694637
Severity: minor → S4
You need to log in before you can comment on or make changes to this bug.