commit | dd5dd98f5f59f4f53274308ec0a7dca74aba6525 | [log] [tgz] |
---|---|---|
author | falken <falken@chromium.org> | Wed Jun 22 06:32:52 2016 |
committer | Commit bot <commit-bot@chromium.org> | Wed Jun 22 06:36:34 2016 |
tree | 068c497a054a62885ff92d364bd5e508a0a3ea3b | |
parent | 911993afed6ee62b350df6338ebf5f2e56cf3b59 [diff] |
service worker: When claiming, don't assume document_url is valid Many provider hosts have an empty document_url, for example those that haven't yet been loaded or those created for special URLs like chrome-search://. So that claim can use IsContextSecureForServiceWorker, return false when the URL is invalid instead of doing a DCHECK that it's valid. BUG=621762,607543 Review-Url: https://codereview.chromium.org/2085923002 Cr-Commit-Position: refs/heads/master@{#401216}