Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix #1695, add scheme information (as label) to the start-shot-non-ht…
Browse files Browse the repository at this point in the history
…tp event
  • Loading branch information
ianb committed Oct 12, 2016
1 parent 5e20487 commit 974ce79
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion addon/lib/shooter.js
Expand Up @@ -308,7 +308,8 @@ const ShotContext = Class({
if (this.tab.url.startsWith("about:")) {
sendEvent("start-shot-about-page");
} else if (this.tab.url.search(/^https:/i) === -1) {
sendEvent("start-shot-non-http");
let scheme = this.tab.url.replace(/:.*/, "");
sendEvent("start-shot-non-http", scheme);
}
watchPromise(callScript(
this.tab,
Expand Down
2 changes: 1 addition & 1 deletion docs/METRICS.md
Expand Up @@ -118,7 +118,7 @@ Event label: exactly what control invoked the action, such as toolbar-pageshot-b
15. [x] Uninstall the add-on `addon/uninstall` (fired internally, regardless of how it is uninstalled)
16. [x] Hit shot button on a page that can't be shot (XUL page) `addon/abort-start-shot/xul-page` ![image](https://d17oy1vhnax1f7.cloudfront.net/items/3F0n0b3w411F2w2n3H1n/Image%202016-09-07%20at%202.49.21%20PM.png?v=bca96af4)
17. [x] Hit shot button on any about: page `addon/start-shot-about-page` (note: shooting still continues) ![image](https://d17oy1vhnax1f7.cloudfront.net/items/3e2d1j04233B3c3X2B3F/Image%202016-09-07%20at%202.50.55%20PM.png?v=316b9cb3)
18. [x] Hit shot button on any other non-http page `addon/start-shot-non-http` (note: shooting still continues) ![image](https://d17oy1vhnax1f7.cloudfront.net/items/0T0m2p1Z2L1u093F1Y0Q/Image%202016-09-07%20at%202.51.39%20PM.png?v=82d1fc1b)
18. [x] Hit shot button on any other non-http page `addon/start-shot-non-http/actual-scheme` (note: shooting still continues). Full event is something like `addon/start-shot-non-http/file` (or `about`, `view-source`, `data`) ![image](https://d17oy1vhnax1f7.cloudfront.net/items/0T0m2p1Z2L1u093F1Y0Q/Image%202016-09-07%20at%202.51.39%20PM.png?v=82d1fc1b)
19. [ ] Save a "private page" shot `addon/start-shot-private-page`
20. [x] Test pilot was present at install time `addon/test-pilot-installed` ![image](https://d17oy1vhnax1f7.cloudfront.net/items/2q2Y1P2G3J3Z2G0K1t3D/Image%202016-09-07%20at%202.52.24%20PM.png?v=ebf9cbfd)
21. [x] Test pilot was not present at install time `addon/test-pilot-not-installed`
Expand Down

0 comments on commit 974ce79

Please sign in to comment.