Re: [whatwg] Relative URL plan

On Tue, Jun 16, 2015 at 8:29 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote:
> What optimizations are we talking about here, specifically?

Not sure. Was just indicating that we have that option if it would be
particularly painful/pointless/footgun. I haven't exactly thought it
through and there's not much feedback beyond http/https use cases.


> Note that my general view for how URL objects should work internally in
> Gecko is that we should have an immutable backing store and mutators that
> clone-with-modifications (basically copy on write).  Of course in terms of
> the web-exposed behavior we'd just have the web-exposed URL change which
> internal object it points to on mutation, so we can expose whatever mutators
> we want.

Makes sense. In retrospect I kind of wished new URL() at least started
out immutable, so it could become a native value in JavaScript some
day, but too late now.


-- 
https://annevankesteren.nl/

Received on Tuesday, 16 June 2015 19:45:20 UTC