- From: <bugzilla@jessica.w3.org>
- Date: Thu, 05 Jun 2014 14:45:15 +0000
- To: public-webapps-bugzilla@w3.org
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25914 --- Comment #15 from Glenn Maynard <glenn@zewt.org> --- (In reply to Arun from comment #14) > So, origin extraction is currently defined as string manipulation. What > follows after the "/" is a UUID. > Well, the file scheme, along with user-agent proprietary schemes like > chrome, are not defined. In fact, the spec. restricts us to what the Web > Origin specification (http://tools.ietf.org/html/rfc6454) defines as an > origin. Pulling it out as a string is fine, I think, but don't define it in a way that fails if the origin contains a slash. Find the *last* "/" in the URL and strip off everything after it. For example, blob:file://home/glenn/test.html/10d88a40-b6b1-45ec-8aba-a626037613a0 would parse out "file://home/glenn/test.html" and not "file://home". This doesn't actually matter for file URLs, since browsers don't expose the origin for file URLs in the first place (for privacy reasons, I assume), but it helps ensure that this will work for all future and unknown schemes that blob URLs might be used in. (Actually, file URLs are a bit broken with blob URLs in Chrome: it results in a URL like "blob:null/uuid". Firefox's current blob URLs don't have this problem, since they don't include the origin.) -- You are receiving this mail because: You are the QA Contact for the bug.
Received on Thursday, 5 June 2014 14:45:17 UTC