Re: [ServiceWorker] Foreign fetch (#751)

> +      <li>Let <var>worker</var> be <var>registration</var>'s <a href="#dfn-active-worker">active worker</a>.</li>
> +      <li>If <var>worker</var> is null, return null.</li>
> +      <li>Let <var>requestURLString</var> be the <a href="https://url.spec.whatwg.org/#concept-url-serializer">serialized</a> <var>requestURL</var>.</li>
> +      <li>For each <a href="https://url.spec.whatwg.org/#concept-url">URL</a> <var>scope</var> in <var>worker</var>'s <a href="#dfn-foreign-fetch-scopes">list of foreign fetch scopes</a>:
> +        <ol>
> +          <li>Let <var>scopeString</var> be the <a href="https://url.spec.whatwg.org/#concept-url-serializer">serialized</a> <var>scope</var>.</li>
> +          <li>If <var>requestString</var> starts with <var>scopeString</var> return <var>worker</var>.</li>
> +        </ol>
> +      </li>
> +      <li>Return null.</li>
> +    </ol>
> +    </spec-algorithm>
> +  </spec-section>
> +
> +  <spec-section id="on-foreign-fetch-request-algorithm">
> +    <h1>Handle Foreign Fetch</h1>

It would be nice if somehow some of the duplication between this and the regular fetch event handling could be shared. But maybe they will end up being too different for that not to matter much?

---
Reply to this email directly or view it on GitHub:
https://github.com/slightlyoff/ServiceWorker/pull/751/files#r40384673

Received on Thursday, 24 September 2015 23:12:26 UTC