-
-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Identify
webContents
of renderers via custom protocol (#762)
- Loading branch information
Showing
11 changed files
with
273 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
106 changes: 106 additions & 0 deletions
106
test/e2e/test-apps/other/custom-renderer-name-protocol/event.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
{ | ||
"method": "envelope", | ||
"sentryKey": "37f8a2ee37c0409d8970bc7559c7c7e4", | ||
"appId": "277345", | ||
"data": { | ||
"sdk": { | ||
"name": "sentry.javascript.electron", | ||
"packages": [ | ||
{ | ||
"name": "npm:@sentry/electron", | ||
"version": "{{version}}" | ||
} | ||
], | ||
"version": "{{version}}" | ||
}, | ||
"contexts": { | ||
"app": { | ||
"app_name": "custom-renderer-name-protocol", | ||
"app_version": "1.0.0", | ||
"app_start_time": "{{time}}" | ||
}, | ||
"browser": { | ||
"name": "Chrome" | ||
}, | ||
"chrome": { | ||
"name": "Chrome", | ||
"type": "runtime", | ||
"version": "{{version}}" | ||
}, | ||
"device": { | ||
"arch": "{{arch}}", | ||
"family": "Desktop", | ||
"memory_size": 0, | ||
"free_memory": 0, | ||
"processor_count": 0, | ||
"processor_frequency": 0, | ||
"cpu_description": "{{cpu}}", | ||
"screen_resolution":"{{screen}}", | ||
"screen_density": 1, | ||
"language": "{{language}}" | ||
}, | ||
"node": { | ||
"name": "Node", | ||
"type": "runtime", | ||
"version": "{{version}}" | ||
}, | ||
"os": { | ||
"name": "{{platform}}", | ||
"version": "{{version}}" | ||
}, | ||
"runtime": { | ||
"name": "Electron", | ||
"version": "{{version}}" | ||
} | ||
}, | ||
"release": "custom-renderer-name-protocol@1.0.0", | ||
"environment": "development", | ||
"user": { | ||
"ip_address": "{{auto}}" | ||
}, | ||
"exception": { | ||
"values": [ | ||
{ | ||
"type": "Error", | ||
"value": "Some renderer error", | ||
"stacktrace": { | ||
"frames": [ | ||
{ | ||
"colno": 0, | ||
"filename": "app:///src/index.html", | ||
"function": "{{function}}", | ||
"in_app": true, | ||
"lineno": 0 | ||
} | ||
] | ||
}, | ||
"mechanism": { | ||
"handled": false, | ||
"type": "instrument" | ||
} | ||
} | ||
] | ||
}, | ||
"level": "error", | ||
"event_id": "{{id}}", | ||
"platform": "javascript", | ||
"timestamp": 0, | ||
"breadcrumbs": [ | ||
{ | ||
"timestamp": 0, | ||
"category": "electron", | ||
"message": "SomeWindow.dom-ready", | ||
"type": "ui" | ||
} | ||
], | ||
"request": { | ||
"url": "app:///src/index.html" | ||
}, | ||
"tags": { | ||
"event.environment": "javascript", | ||
"event.origin": "electron", | ||
"event.process": "SomeWindow", | ||
"event_type": "javascript" | ||
} | ||
} | ||
} |
8 changes: 8 additions & 0 deletions
8
test/e2e/test-apps/other/custom-renderer-name-protocol/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"name": "custom-renderer-name-protocol", | ||
"version": "1.0.0", | ||
"main": "src/main.js", | ||
"dependencies": { | ||
"@sentry/electron": "3.0.0" | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
test/e2e/test-apps/other/custom-renderer-name-protocol/recipe.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
description: Custom Renderer Name via Protocol | ||
command: yarn | ||
condition: version.major >= 5 |
Oops, something went wrong.