Bug 1596000 Comment 7 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

> A string compare wouldn't do it?

The URLs are not the same. I could of course parse the URLs manually, but that's what `URL` is for. It avoids hacky URL parsing, makes readable code, helps a lot in such cases and I'm quite glad it's part of the JS environment now.
> A string compare wouldn't do it?

The URLs are not the same, the paths are different. I could of course parse out the origin of the URLs manually, but that's what `URL` is for. It avoids hacky URL parsing, makes readable code, helps a lot in such cases and I'm quite glad it's part of the JS environment now.

Back to Bug 1596000 Comment 7