commit | f88b52ec1e4aebd7c1f28b13a58bfad92d04ba94 | [log] [tgz] |
---|---|---|
author | mek <mek@chromium.org> | Mon Dec 05 20:42:16 2016 |
committer | Commit bot <commit-bot@chromium.org> | Mon Dec 05 20:44:29 2016 |
tree | 50688e20936543d8a8270ebe7442f7d974ce6c09 | |
parent | 2bd1f057280fea281637bb63265225303c35850a [diff] |
Prevent a service worker from keeping itself alive by self postMessage. This changes the timeout for message events when the message was sent from a service worker to be the curent timeout of that service worker. So while a service worker can still post message to itself, this won't allow it to stay alive any longer than a single event would. BUG=647943,648836 Review-Url: https://codereview.chromium.org/2506263005 Cr-Commit-Position: refs/heads/master@{#436393}