<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Oct 15, 2009, at 11:37 AM, Jeremy Orlow wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">I'd like to propose we remove the "source" attribute from storage events. &nbsp;(<a href="http://dev.w3.org/html5/webstorage/#the-storage-event">http://dev.w3.org/html5/webstorage/#the-storage-event</a>)<div><br></div> <div>In Chrome,&nbsp;we cannot provide access to a window object unless it's in the same process. &nbsp;Since there's no way to&nbsp;guarantee&nbsp;that two windows in the same origin are in the same process, Chrome would need to always set it to null in order to avoid confusing developers (since what process a page is in is really an implementation detail).</div></blockquote><div><br></div><div>I would guess the main use case for this is to distinguish changes from *this* window (the one receiving the event) and changes from other windows. Perhaps a boolean flag to that effect could replace source.</div><div><br></div><div>&nbsp;- Maciej</div><br><blockquote type="cite"> <div><br></div><div>But, as far as I can tell, Safari is the only browser that currently provides this. &nbsp;I suspect that as other multi-process implementations are developed, they'll run into the same issue. &nbsp;And, even if they can technically provide synchronous access to another processes Window object, there are _very_ strong arguments against it. &nbsp;So, can we please remove the source attribute from storage events?</div> <div><br></div><div><br></div><div>One other question: is the URL attribute supposed to be the same as documentURI or location.href? &nbsp;I ask because WebKit currently uses the documentURI but if this were the correct behavior, I would have expected the spec to make that more clear.</div> </blockquote></div><br></body></html>