Revert "Merge pull request #14810 from etiennesegonzac/bug-946316-mochitest"

This reverts commit b1e86026b3d3b710cd1486c25daca85cffb8a331.