Fredrik Wollsén
8d4d050375
Flake8
2019-08-16 15:09:29 +03:00
Fredrik Wollsén
23e3ef2af4
Made the js instrument tests related to non-existing properties easier to understand at a glance by repeating the symbol prefix in the expected-definitions
2019-08-16 10:59:55 +03:00
Fredrik Wollsén
9890f121e5
Add JS_INSTRUMENT_MODULES to crawler.py
2019-08-15 23:24:28 +03:00
Fredrik Wollsén
a67dfe6bde
Flake8
2019-08-15 20:41:26 +03:00
Fredrik Wollsén
48b4ef6feb
Added expected gets, sets, calls based on observation in manual tests
2019-08-15 20:24:21 +03:00
Fredrik Wollsén
10fee839de
Organized js instrument tests somewhat more representably, including adding specific tests showing the use of a mock class to instrument non-existing secondary attributes
2019-08-15 20:13:18 +03:00
Fredrik Wollsén
778861d013
Renamed one of the tests
2019-08-15 09:44:30 +03:00
Fredrik Wollsén
8d5428462f
Add wip tests for instrumenting non-existing properties/object
2019-08-15 09:17:47 +03:00
Fredrik Wollsén
09501694bc
Split test pages for non-existing objects/properties
2019-08-15 08:22:03 +03:00
Fredrik Wollsén
1412bcd360
Add error context to instrumentation errors
2019-08-15 08:22:03 +03:00
Fredrik Wollsén
d5e064a3d8
Fixed a typo
2019-08-15 08:22:03 +03:00
Fredrik Wollsén
c704fb5f16
Renamed test page to instrument_non_existing_properties to match naming convention within the test page
2019-08-15 08:22:03 +03:00
Fredrik Wollsén
96bee442f3
Lint
2019-08-15 08:22:03 +03:00
Fredrik Wollsén
29d576624e
Clarified that instrumenting window.nonExisting object properties is not supported
2019-08-15 08:22:03 +03:00
Fredrik Wollsén
22dd48a1a8
Added instrumentation of window.partiallyExisting.nonExistingMethod1 to test page
2019-08-15 08:22:03 +03:00
Fredrik Wollsén
88934b2cf5
Corrected instrumentation of non-existing properties + added corresponding test page content
2019-08-15 08:22:03 +03:00
Fredrik Wollsén
1818251b52
Add attempt to call the non-existent object to test page
2019-08-15 08:22:03 +03:00
Fredrik Wollsén
1fb8a26586
Add simple test page for manually testing non-existent properties
2019-08-15 08:22:03 +03:00
Fredrik Wollsén
430a28bd3a
Clearer error message when attempting to get property names of undefined
2019-08-15 08:22:03 +03:00
Fredrik Wollsén
8f887b03b0
Support instrumentation of non-existant js objects and properties
2019-08-15 08:22:03 +03:00
Fredrik Wollsén
a165a66639
Merge pull request #459 from motin/js-instrument-retain-prototype-and-constructor
...
Js instrument retain prototype and constructor
2019-08-15 08:20:00 +03:00
Steven Englehardt
1a3f16cc2a
Merge pull request #456 from mozilla/save-any-content
...
Allow content saving to be configured by any resource type
2019-08-14 16:06:36 -07:00
Fredrik Wollsén
9f20d068ed
Added expected hashes
2019-08-15 00:07:38 +03:00
Fredrik Wollsén
c124d2151b
Merge pull request #457 from mozilla/js-instrument-modules-config-option
...
Add config option js_instrument_modules
2019-08-14 23:32:34 +03:00
Fredrik Wollsén
7decb4ba66
Added tests for document content saving (based on 3ee26fa0fd
)
2019-08-14 23:30:20 +03:00
Fredrik Wollsén
f6745b6e0e
Updated package-lock.json
2019-08-14 23:17:30 +03:00
Fredrik Wollsén
e445e0bbe7
Auto-formatting
2019-08-14 23:17:17 +03:00
Fredrik Wollsén
8afdf27a24
Throw an error if an unknown resource type is included in the save_content config option
2019-08-14 23:12:24 +03:00
Fredrik Wollsén
3a2fc61f77
Only accept boolean and string for save_content config option
2019-08-14 23:09:40 +03:00
Fredrik Wollsén
4f7e3774d0
Better name for method - isContentSavingEnabled
2019-08-14 23:08:56 +03:00
Fredrik Wollsén
d08f1edb0e
Restore the original prototype and constructor so that instrumented classes remain intact
2019-08-14 22:54:59 +03:00
Fredrik Wollsén
f275352422
Merge pull request #458 from motin/js-instrument-log-function-gets
...
Add logSettings.logFunctionGets
2019-08-14 22:49:44 +03:00
Fredrik Wollsén
6599a3317a
Clarify which config is being used during manual test runs
2019-08-14 14:34:20 +03:00
Fredrik Wollsén
3966aa2a17
Add logSettings.logFunctionGets for also logging access (gets) to instrumented function properties, not only their execution (calls)
2019-08-14 14:32:16 +03:00
Fredrik Wollsén
de23960930
Add config option js_instrument_modules with default value "fingerprinting" for instrumenting fingerprinting-related apis
2019-08-14 14:25:23 +03:00
Fredrik Wollsén
4aff95a7c0
Crawler.py converts '1' and '0' to corresponding booleans
2019-08-14 13:14:27 +03:00
Fredrik Wollsén
2e99d250a6
Updated docs and codebase in general to use save_content instead of save_all_content and save_javascript
2019-08-14 13:08:58 +03:00
Fredrik Wollsén
0ff197501b
Allow content saving to be configured by any resource type
2019-08-14 13:00:47 +03:00
Steven Englehardt
2c2c69505c
Merge pull request #453 from motin/avoid-synchronized-visits-in-demo
...
Avoid using "index='**'" in demo.py since it is a bit confusing
2019-08-13 16:52:58 -07:00
Steven Englehardt
f225167b2a
Merge pull request #451 from motin/extension-debug-console-output-not-json-stringified
...
Extension debug console output sent without stringification
2019-08-13 16:49:04 -07:00
Fredrik Wollsén
ede251b63d
Upgrade to unbranded Firefox 69b12
2019-08-13 14:28:39 +03:00
Fredrik Wollsén
b7115f7bdb
Specify which unbranded build is used via variable names rather than a code comment
2019-08-13 14:28:39 +03:00
Fredrik Wollsén
4e681b2d0e
Extension debug console output sent without stringification (allows for easier inspection from the devtools console)
2019-08-13 12:04:30 +03:00
Fredrik Wollsén
560c6579a1
Avoid using "index='**'" in demo.py since it is a bit confusing
2019-08-13 12:03:42 +03:00
Fredrik Wollsén
e96d97c7f2
Merge pull request #449 from mozilla/s3_stability_fixes
...
Improved stability and error logging
2019-08-13 08:44:57 +03:00
englehardt
8903f9d287
Add as a safer alternative to
2019-08-12 15:37:11 -07:00
englehardt
0b9ccb7806
Ignore WebDriverException errors that result from alert handling code
2019-08-09 18:09:53 -07:00
englehardt
6d33b72262
Fix flake8 errors
2019-08-09 18:03:41 -07:00
englehardt
917bb7cbb3
Use exc_info for errors, rather than strings
2019-08-09 17:51:17 -07:00
englehardt
8a4a293ab4
Pass all log information across process boundary.
...
The current inter-process log handler discards `exc_info` and adds the
arguments to the exception message. This prevents Sentry from properly
grouping log messages by their exception and call information. We send
the information if possible (or fall back to the previous approach if
not).
2019-08-09 16:55:53 -07:00