As for repro commented at https://crrev.com/2297803002, I guess you couldn't do it because of no-fetch optimization of the service worker. I added 'register' and 'unregister' button to https://amiq11.github.io/sw-one-registration/register.html for easier testing.
steps to repro:
1. open https://amiq11.github.io/sw-one-registration/register.html
2. open DevTools' console
3. click unregister button just in case
4. click register button
5. Using stable, you can see a warning "Event handler of 'install' event must be added on the initial evaluation of worker script." though you cannot when including the patch.
If you have something wrong, please let me know.
Thanks!
Comment 1 by falken@chromium.org
, Mar 14 2016