service worker: Upstream and cleanup waiting.https.html.

The WPT and Chromium versions diverged. The WPT version was testing
something looser than today's spec requires. In today's spec, the
Install algorithm has steps in this order:
- Run the Update Registration State algorithm passing registration, "waiting"
  and registration’s installing worker as the arguments.
- Run the Update Registration State algorithm passing registration,
  "installing" and null as the arguments.
- Run the Update Worker State algorithm passing registration’s waiting worker
  and installed as the arguments.
- Wait for all the tasks queued by Update Worker State invoked in this
algorithm have executed.

So when the worker reaches 'installed' state, registration.installing
should be null and registration.waiting should be set. Furthermore, activation
has not yet occurred, so registration.active should be null.

Change the test to assert this and also modernize it by making it a
promise_test; and remove the Chromium version.

Bug: 379012, 688116
Change-Id: I6a51b3dfb014658eba7734f26b89cb158d070541
Reviewed-on: https://chromium-review.googlesource.com/755394
Reviewed-by: Marijn Kruisselbrink <mek@chromium.org>
Commit-Queue: Matt Falkenhagen <falken@chromium.org>
Cr-Commit-Position: refs/heads/master@{#514323}
2 files changed