tabsmith-lint 0.1.1 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -58,20 +58,20 @@ function perm001(model) {
|
|
|
58
58
|
if (mapping.namespace) {
|
|
59
59
|
const used = apiCalls.some((c) => c.namespace === mapping.namespace) || isUsedViaManifest(perm, manifest);
|
|
60
60
|
if (!used) {
|
|
61
|
-
findings.push(unusedFinding(model, perm, dynamicConfidence, `No chrome.${mapping.namespace}
|
|
61
|
+
findings.push(unusedFinding(model, perm, dynamicConfidence, `No chrome.${mapping.namespace} usage found. It would count as used if your code calls chrome.${mapping.namespace}.* (directly, via an alias or destructure, or after a chrome.permissions.request).`));
|
|
62
62
|
}
|
|
63
63
|
}
|
|
64
64
|
else if (mapping.special === "sensitiveTabProperties") {
|
|
65
65
|
// `tabs` is "used" only via sensitive Tab property reads. When broad host
|
|
66
66
|
// is present, redundancy is owned by PERM004 — don't double-flag here.
|
|
67
67
|
if (!broad && model.sensitiveTabReads.length === 0) {
|
|
68
|
-
findings.push(unusedFinding(model, perm, dynamicConfidence, `The "tabs" permission only grants sensitive Tab properties (url, title,
|
|
68
|
+
findings.push(unusedFinding(model, perm, dynamicConfidence, `The "tabs" permission only grants sensitive Tab properties (url, pendingUrl, title, favIconUrl), and none are read. It would count as used if your code reads one of those, e.g. tab.url, including off a chrome.tabs.onUpdated changeInfo.`));
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
else if (mapping.special === "temporaryHostAccess") {
|
|
72
72
|
// `activeTab` is plausibly used only behind a user-gesture entry point.
|
|
73
73
|
if (!hasGestureEntryPoint(manifest, declared)) {
|
|
74
|
-
findings.push(unusedFinding(model, perm, "medium", `"activeTab" has no user-gesture entry point
|
|
74
|
+
findings.push(unusedFinding(model, perm, "medium", `"activeTab" has no user-gesture entry point to trigger it. It would count as used if the manifest exposes an action, command, or context menu.`));
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tabsmith-lint",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Pre-submission compliance linter for Manifest V3 Chrome extensions: flags likely Chrome Web Store rejection risks (unused/excessive permissions, MV3 violations, broken packaging) before you submit.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|