Bug 950604 - Backport of a small bugfix that was part of bug 861925. r=luke, a=sledru
Bug 873661 - Wait both browserloadend and process-created event. r=fabrice, a=test-only