Closed Bug 1542403 Opened 6 months ago Closed Last month

Extension activity logging

Categories

(WebExtensions :: General, enhancement, P1)

enhancement

Tracking

(firefox70 fixed)

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: aswan, Assigned: mixedpuppy)

References

(Blocks 4 open bugs)

Details

Attachments

(2 files, 2 obsolete files)

No description provided.

I'm about to upload some preliminary (prototype-quality) patches to phabricator associated with this bug.
These patches add tracing of extension api calls, extension events, and content script injection. These patches do not include any UI or other affordance for viewing the logs, but an accompanying extension here can be used:
https://github.com/aswan/firefox-activity-log

Prototype-quality logging for extension api calls, api event dispatches,
and content script injections.

To view extension activity, see:
https://github.com/aswan/firefox-activity-log

This is a quick-and-dirty hack to use the extension logging facility
to log all activity for one or more extensions to disk. It reads a
preference (extensions.logging.ids) at startup, this pref should be a
string that holds a comma separated list of extension ids. For each
listed extension, a log file will be created in the profile directory.
This file will contains JSON blobs for each event, separated by newlines.

This is really a proof-of-concept, the implementation is not optimized
for efficiency and the log file format isn't very usable. But its a
start...

Another very preliminary prototype patch, this annotates fetch() and XHR
references from extensions.

Priority: -- → P2
Assignee: aswan → nobody
Blocks: 1558366

Comment on attachment 9056343 [details]
Bug 1542403 Logging extension dom activity prototype

Revision D26426 was moved to bug 1558366. Setting attachment 9056343 [details] to obsolete.

Attachment #9056343 - Attachment is obsolete: true
Blocks: 1558367

Comment on attachment 9056261 [details]
Bug 1542403 Add basic persistent logging

Revision D26387 was moved to bug 1558367. Setting attachment 9056261 [details] to obsolete.

Attachment #9056261 - Attachment is obsolete: true
Assignee: nobody → mixedpuppy
Type: defect → enhancement
Priority: P2 → P1
Blocks: 1574568
Summary: Extension activity logging prototype → Extension activity logging
Pushed by scaraveo@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/847c27f1347c
Add extension activity logging facility r=rpl,zombie
https://hg.mozilla.org/integration/autoland/rev/ccc2b73ec03c
Add privileged activity logging api r=rpl,zombie
Status: NEW → RESOLVED
Closed: Last month
Resolution: --- → FIXED
Target Milestone: --- → mozilla70

Hello,

Will this fix require manual validation? If yes, please provide some steps to reproduce in order to correctly test it and also, please set the "qe-verify+" flag. Otherwise, could the "qe-verify-" flag be added? Thanks!

Flags: needinfo?(mixedpuppy)
Flags: needinfo?(mixedpuppy) → qe-verify-
You need to log in before you can comment on or make changes to this bug.