GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — deps: cherry-pick dbfcc48 from upstream V8 by alexkozy · Pull Request #22251 · nodejs/node

Conversation

@alexkozy

@alexkozy alexkozy commented Aug 10, 2018

Copy link
Copy Markdown
Member

Original commit message:

[inspector] added V8InspectorClient::resourceNameToUrl

Some clients (see Node.js) use platform path as ScriptOrigin.
Reporting platform path in protocol makes using protocol much harder.
This CL introduced V8InspectorClient::resourceNameToUrl method that
is called for any reported using protocol url.
V8Inspector uses url internally as well so protocol client may generate
pattern for blackboxing with file urls only and does not need to build
complicated regexp that covers files urls and platform paths on
different platforms.

[email protected]
[email protected]

Bug: none
Cq-Include-Trybots: luci.chromium.try:linux_chromium_headless_rel;luci.chromium.try:linux_chromium_rel_ng;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: Iff302e7441df922fa5d689fe510f5a9bfd470b9b
Reviewed-on: https://chromium-review.googlesource.com/1164624
Commit-Queue: Aleksey Kozyatinskiy <[email protected]>
Reviewed-by: Alexei Filippov <[email protected]>
Cr-Commit-Position: refs/heads/master@{#55029}

Refs: v8/v8@dbfcc48
Needed for #22223

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • documentation is changed or added
  • commit message follows commit guidelines

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

bricss reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@nodejs-github-bot

nodejs-github-bot commented Aug 10, 2018

Copy link
Copy Markdown
Collaborator

@ak239 build started: https://ci.nodejs.org/blue/organizations/jenkins/node-test-pull-request-lite-pipeline/detail/node-test-pull-request-lite-pipeline/507/pipeline

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexkozy
alexkozy requested a review from ofrobots August 10, 2018 20:13
@nodejs-github-bot nodejs-github-bot added build Issues and PRs related to Node.js builds or CI infrastructure. v8 engine Issues and PRs related to the V8 dependency. labels Aug 10, 2018
@alexkozy alexkozy added the inspector Issues and PRs related to the V8 inspector protocol. label Aug 10, 2018
@alexkozy

alexkozy commented Aug 10, 2018

Copy link
Copy Markdown
Member Author

By accident I broke my previous PR: #22224
So I created new one. Please take a look!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexkozy
alexkozy requested a review from TimothyGu August 10, 2018 20:20
@Trott

Trott commented Aug 11, 2018

Copy link
Copy Markdown
Member

@nodejs/v8

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@TimothyGu

TimothyGu commented Aug 16, 2018

Copy link
Copy Markdown
Member

This LGTM by itself, but I'd prefer landing this with the actual Node.js resourceNameToUrl implementation.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexkozy

alexkozy commented Aug 21, 2018

Copy link
Copy Markdown
Member Author

@TimothyGu please take another look.
I pushed second commit that contains resourceNameToUrl implementation.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexkozy

alexkozy commented Aug 29, 2018

Copy link
Copy Markdown
Member Author

CI: https://ci.nodejs.org/job/node-test-pull-request/16863/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

TimothyGu
TimothyGu reviewed Aug 30, 2018
View reviewed changes
Comment thread src/inspector_agent.cc Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/inspector_agent.cc Resolved

Uh oh!

There was an error while loading. Please reload this page.

@alexkozy

alexkozy commented Aug 30, 2018

Copy link
Copy Markdown
Member Author

@TimothyGu I addressed your comments and added one more test. Please take another look.
CI: https://ci.nodejs.org/job/node-test-pull-request/16878/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

TimothyGu
TimothyGu reviewed Aug 30, 2018
View reviewed changes

@TimothyGu TimothyGu left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newly added code LGTM. Some logistical comments.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread src/node_url.cc Outdated

@TimothyGu TimothyGu Aug 30, 2018

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit reluctant to touch into the internals in this way. Could something like this work?

URL url("file:///");

This will also need a cctest (see https://github.com/nodejs/node/blob/master/test/cctest/test_url.cc).

Finally could you split the changes to node_url into a separate commit?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@alexkozy

alexkozy commented Aug 30, 2018

Copy link
Copy Markdown
Member Author

Addressed comments and started another CI: https://ci.nodejs.org/job/node-test-pull-request/16880/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

TimothyGu
TimothyGu previously approved these changes Aug 30, 2018
View reviewed changes

@TimothyGu TimothyGu left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
TimothyGu
TimothyGu reviewed Aug 30, 2018
View reviewed changes

@TimothyGu TimothyGu left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, jumped the gun there. Left a few more comments.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread test/cctest/test_url.cc Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread test/cctest/test_url.cc Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread test/cctest/test_url.cc Resolved

Uh oh!

There was an error while loading. Please reload this page.

Comment thread src/inspector_agent.cc Resolved

Uh oh!

There was an error while loading. Please reload this page.

@TimothyGu
TimothyGu dismissed their stale review August 30, 2018 23:37

Dismiss stale review

@alexkozy

alexkozy commented Aug 31, 2018 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member Author

Another CI: https://ci.nodejs.org/job/node-test-pull-request/16908/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@addaleax addaleax added the whatwg-url Issues and PRs related to the WHATWG URL implementation. label Sep 3, 2018
@alexkozy

alexkozy commented Sep 4, 2018

Copy link
Copy Markdown
Member Author

Failure on Windows bot looks unrelated. @TimothyGu could you take another look?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BridgeAR

BridgeAR commented Sep 5, 2018

Copy link
Copy Markdown
Member

This needs a rebase.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@BridgeAR

BridgeAR commented Sep 5, 2018

Copy link
Copy Markdown
Member

@nodejs/v8-update PTAL. This needs some LGs

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

TimothyGu
TimothyGu approved these changes Sep 11, 2018
View reviewed changes

@TimothyGu TimothyGu left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM if tests pass.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@alexkozy

alexkozy commented Sep 11, 2018

Copy link
Copy Markdown
Member Author

Rebased and started CI: https://ci.nodejs.org/job/node-test-pull-request/17120/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexkozy

alexkozy commented Sep 12, 2018

Copy link
Copy Markdown
Member Author

rebased and restarted CI again since I believe that failure is unrelated: https://ci.nodejs.org/job/node-test-pull-request/17126/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexkozy

alexkozy commented Sep 12, 2018

Copy link
Copy Markdown
Member Author

Another try: https://ci.nodejs.org/job/node-test-pull-request/17151/

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@alexkozy

alexkozy commented Sep 13, 2018

Copy link
Copy Markdown
Member Author

Windows bot looks disabled on CI, based on previous CI all related tests passed, I am not sure, should I wait until windows is fixed on CI or can I land it as is?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

eugeneo
eugeneo approved these changes Sep 13, 2018
View reviewed changes
@alexkozy alexkozy mentioned this pull request Sep 14, 2018
Debugger breakpoints using incorrect URL for a remote debugging session and therefore failing to pause the process ChromeDevTools/devtools-protocol#103
Closed
kfarnung added a commit to kfarnung/node-chakracore that referenced this pull request Sep 19, 2018
@kfarnung
chakrashim: enable resourceNameToUrl support
ad42da3
Wired up support for calling the node-provided `resourceNameToUrl`
method in the chakrashim inspector.

This reverts commit 3f6ef13.

PR-URL: nodejs#601
Fixes: nodejs#598
Refs: nodejs/node#22251
Reviewed-By: Jimmy Thomson <[email protected]>
Reviewed-By: Seth Brenith <[email protected]>
kfarnung added a commit to kfarnung/node-chakracore that referenced this pull request Sep 19, 2018
@kfarnung
chakrashim: enable resourceNameToUrl support
6f2f1a4
Wired up support for calling the node-provided `resourceNameToUrl`
method in the chakrashim inspector.

This reverts commit 3f6ef13.

PR-URL: nodejs#601
Fixes: nodejs#598
Refs: nodejs/node#22251
Reviewed-By: Jimmy Thomson <[email protected]>
Reviewed-By: Seth Brenith <[email protected]>
kfarnung added a commit to kfarnung/node-chakracore that referenced this pull request Sep 20, 2018
@kfarnung
chakrashim: enable resourceNameToUrl support
9493df4
Wired up support for calling the node-provided `resourceNameToUrl`
method in the chakrashim inspector.

This reverts commit 3f6ef13.

PR-URL: nodejs#601
Fixes: nodejs#598
Refs: nodejs/node#22251
Reviewed-By: Jimmy Thomson <[email protected]>
Reviewed-By: Seth Brenith <[email protected]>
targos pushed a commit that referenced this pull request Sep 25, 2018
@alexkozy @targos
deps: cherry-pick dbfcc48 from upstream V8
e668815
Original commit message:
```
[inspector] added V8InspectorClient::resourceNameToUrl

Some clients (see Node.js) use platform path as ScriptOrigin.
Reporting platform path in protocol makes using protocol much harder.
This CL introduced V8InspectorClient::resourceNameToUrl method that
is called for any reported using protocol url.
V8Inspector uses url internally as well so protocol client may generate
pattern for blackboxing with file urls only and does not need to build
complicated regexp that covers files urls and platform paths on
different platforms.

[email protected]
[email protected]

Bug: none
Cq-Include-Trybots: luci.chromium.try:linux_chromium_headless_rel;luci.chromium.try:linux_chromium_rel_ng;master.tryserver.blink:linux_trusty_blink_rel
Change-Id: Iff302e7441df922fa5d689fe510f5a9bfd470b9b
Reviewed-on: https://chromium-review.googlesource.com/1164624
Commit-Queue: Aleksey Kozyatinskiy <[email protected]>
Reviewed-by: Alexei Filippov <[email protected]>
Cr-Commit-Position: refs/heads/master@{#55029}
```
Refs: v8/v8@dbfcc48

Backport-PR-URL: #22918
PR-URL: #22251
Reviewed-By: Eugene Ostroukhov <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
targos pushed a commit that referenced this pull request Sep 25, 2018
@alexkozy @targos
src: added URL::FromFilePath method
fa83382
Method returns file URL from native file path.

Backport-PR-URL: #22918
PR-URL: #22251
Reviewed-By: Eugene Ostroukhov <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
targos pushed a commit that referenced this pull request Sep 25, 2018
@alexkozy @targos
inspector: implemented V8InspectorClient::resourceNameToUrl
f66e9ab
This method is required by inspector to report normalized urls over
the protocol.

Backport-PR-URL: #22918
Fixes #22223
PR-URL: #22251
Reviewed-By: Eugene Ostroukhov <[email protected]>
Reviewed-By: Tiancheng "Timothy" Gu <[email protected]>
@targos targos mentioned this pull request Oct 7, 2018
Release proposal: v10.12.0 #23313
Merged
This was referenced Oct 10, 2018
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-nodejs#225
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-android-nodejs#239
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-nodejs#226
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-android-nodejs#240
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-nodejs#227
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-android-nodejs#241
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-android-nodejs#242
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-nodejs#228
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-android-nodejs#243
Closed
2018-10-10 Version 10.12.0 (Current) @targos beevelop/docker-nodejs#229
Closed
@targos targos mentioned this pull request Oct 17, 2018
remote debugger unable to convert path correctly in different operating system #23688
Closed
deepak1556 added a commit to electron/electron that referenced this pull request Oct 30, 2018
@deepak1556
spec: update inspector-binding.js
1598fc2
* nodejs/node#22251
* nodejs/node#20137
@niclashedam niclashedam mentioned this pull request Nov 1, 2018
Coverage tool stopped working on newer node versions Siteimprove/alfa#79
Closed
deepak1556 added a commit to electron/electron that referenced this pull request Nov 9, 2018
@deepak1556
spec: update inspector-binding.js
c966017
* nodejs/node#22251
* nodejs/node#20137
deepak1556 added a commit to electron/electron that referenced this pull request Nov 14, 2018
@deepak1556
spec: update inspector-binding.js
daa892b
* nodejs/node#22251
* nodejs/node#20137
deepak1556 added a commit to electron/electron that referenced this pull request Nov 29, 2018
@deepak1556
spec: update inspector-binding.js
1e7c765
* nodejs/node#22251
* nodejs/node#20137
zcbenz pushed a commit to electron/electron that referenced this pull request Nov 30, 2018
@deepak1556 @zcbenz
spec: update inspector-binding.js
e65ed45
* nodejs/node#22251
* nodejs/node#20137
deepak1556 added a commit to electron/electron that referenced this pull request Dec 2, 2018
@deepak1556
spec: update inspector-binding.js
0286a9c
* nodejs/node#22251
* nodejs/node#20137
deepak1556 added a commit to electron/electron that referenced this pull request Dec 3, 2018
@deepak1556
spec: update inspector-binding.js
c491fa5
* nodejs/node#22251
* nodejs/node#20137
@alexkozy alexkozy mentioned this pull request May 26, 2020
src: add node::url::URL::href() method #22610
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ofrobots ofrobots Awaiting requested review from ofrobots
2 more reviewers
@eugeneo eugeneo eugeneo approved these changes
@TimothyGu TimothyGu TimothyGu approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

build Issues and PRs related to Node.js builds or CI infrastructure. inspector Issues and PRs related to the V8 inspector protocol. v8 engine Issues and PRs related to the V8 dependency. whatwg-url Issues and PRs related to the WHATWG URL implementation.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

8 participants

@alexkozy @nodejs-github-bot @Trott @TimothyGu @BridgeAR @targos @addaleax @eugeneo
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.