This is basically some leftovers from XPCOM static component work that happened in 2019. The factory field in test_data_protocol_registration.js is not used. The use was removed in bug 1524687 part 2. test_no_remote_registration.js is basically the same thing. I also added newlines to the dump() call in two places. Remove the dead use of getClassObject in test_permmanager_migrate_4-7_no_history.js. This probably did something once upon a time, but it shouldn't be needed any more. Differential Revision: https://phabricator.services.mozilla.com/D319304