Merge pull request #18473 from RickyChien/bug-998759 a=tests

Bug 998759 - Remove chai.js copying when running make update-common r=@yurenju
(cherry picked from commit 616adbea1e2b52d0399aa35312755a723e94674b)