DescriptionCorrectly resolve empty script URLs in Worker constructors.
When creating workers via thei constructors, the spec permits empty
strings to be given to the URL resolution step,
http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#dedicated-workers-and-the-worker-interface
(or http://dev.w3.org/html5/workers/#dedicated-workers-and-the-worker-interface .)
[ The shared worker case just below has the same resolution step. ]
Resolving such an URL should result in the base URL being
returned. Align with this, and drop restriction on the string having
to be non-empty. This mirrors how Gecko, Trident and Presto behaves.
It also aligns with how importScripts() behaves when resolving its
arguments.
R=
BUG=301575
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=162624
Patch Set 1 #
Messages
Total messages: 4 (0 generated)
|