Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v7.x: backport a few WHATWG URL changes #11069

Merged
merged 3 commits into from
Jan 31, 2017

Conversation

TimothyGu
Copy link
Member

These commits are from #10955 and #10906 unchanged. Since the WHATWG URL API is still in Stage: 1 Experimental, the removal of url.originFor() and of inspect() should not be a problem.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

url

@nodejs-github-bot nodejs-github-bot added dont-land-on-v4.x url Issues and PRs related to the legacy built-in url module. whatwg-url Issues and PRs related to the WHATWG URL implementation. labels Jan 30, 2017
@mscdex mscdex removed the url Issues and PRs related to the legacy built-in url module. label Jan 30, 2017
@targos
Copy link
Member

targos commented Jan 30, 2017

LGTM

@TimothyGu
Copy link
Member Author

@joyeecheung
Copy link
Member

joyeecheung commented Jan 30, 2017

@TimothyGu Have you rebased and force pushed? There are a lot of previous commits in this PR now.

EDIT: or is this the CI's doing?

@TimothyGu
Copy link
Member Author

@joyeecheung I believe someone force-pushed to v7.x-staging which led to this problem. Indeed, IRC #node-dev shows:

09:23:25 -- | Notice(nodejs-gh): [node] italoacasas force-pushed v7.x-staging
              from 376b9a4 to 506a50b: https://git.io/vizvQ

@italoacasas
Copy link
Contributor

Sorry that this happens @TimothyGu, I had the need to drop a commit from staging.

@italoacasas
Copy link
Contributor

btw my understanding of backporting(maybe I'm wrong) is that you do a backport when the PR doesn't land clearly in the staging branch.

@TimothyGu
Copy link
Member Author

@italoacasas, sorry I'm not super familiar with this topic. So if there are no conflicts and the PR is not labelled dont-land-on-v7.x, landing of these commits is automatic?

@italoacasas
Copy link
Contributor

@TimothyGu, unfortunately, is not automatic, normally someone from the release team should cherry-pick the commit to the staging branch.

PR-URL: nodejs#10955
Fixes: nodejs#10800
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
PR-URL: nodejs#10906
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
Even though this is not fully Web IDL spec-compliant, it is arguably the
best we can do. Following the spec would mean non-trivial performance
deterioration (10% when parsing a medium-length URL), while the current
getter behavior is not adopted by any implementer, and it causes some
spec ambiguity when the getter is called with !(this instanceof URL).

This commit adopts Chrome's behavior, and is consistent with
ECMAScript-defined classes while providing reasonable behaviors for
corner cases as well. Until the Web IDL spec is changed one way or
another, this is the way to go.

PR-URL: nodejs#10906
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Joyee Cheung <[email protected]>
@TimothyGu TimothyGu merged commit b94eec1 into nodejs:v7.x-staging Jan 31, 2017
@TimothyGu
Copy link
Member Author

Either way, since I've already taken the time to make this PR, I'll just land it myself.

Done in 57e5315, 499e75a, and b94eec1.

@TimothyGu TimothyGu deleted the v7.x-staging branch January 31, 2017 00:55
@joyeecheung
Copy link
Member

So if I understand correctly, no backport has been requested from @nodejs/release to @TimothyGu (and this applies cleanly)? Anyway I think the release team should be notified, just to be safe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
whatwg-url Issues and PRs related to the WHATWG URL implementation.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants