Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

REM-25644 Disable NSURLProtocol tracking #26

Conversation

donnie-jp
Copy link
Contributor

  • default behaviour is to disable NSURLProtocol tracking because it is experimental/risky
  • it must be explicitly enabled in the plist by RPTEnableProtocolWebviewTracking boolean flag
  • change tracking manager 'disable' property to an 'enable' property and update affected logic

- default behaviour is to disable NSURLProtocol tracking because it is experimental/risky
- it must be explicitly enabled in the plist by `RPTEnableProtocolWebviewTracking` boolean flag
- change tracking manager 'disable' property to an 'enable' property and update affected logic
@codecov-io
Copy link

Codecov Report

Merging #26 into master will increase coverage by 0.31%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #26      +/-   ##
==========================================
+ Coverage   84.45%   84.77%   +0.31%     
==========================================
  Files          24       24              
  Lines        1274     1274              
==========================================
+ Hits         1076     1080       +4     
+ Misses        198      194       -4
Impacted Files Coverage Δ
...eTracking/Private/_RPTClassManipulator+UIWebView.m 90.21% <100%> (ø) ⬆️
RPerformanceTracking/Private/_RPTTrackingManager.m 97.14% <100%> (ø) ⬆️
RPerformanceTracking/Private/_RPTNSURLProtocol.m 80.48% <100%> (+4.87%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 3d64fd7...7119d88. Read the comment docs.

Copy link
Contributor

@vito1188 vito1188 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

approved

@@ -40,7 +40,7 @@ static void endTrackingWithUIWebView(UIWebView *webView)

uint_fast64_t trackingIdentifier = [objc_getAssociatedObject(webView, _RPT_UIWEBVIEW_TRACKINGIDENTIFIER) unsignedLongLongValue];

if (trackingIdentifier && manager.disableProtocolWebviewObserving)
if (trackingIdentifier)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@donnie-jp donnie-jp merged commit d580c51 into rakutentech:master Jan 31, 2018
donnie-jp added a commit to donnie-jp/ios-perftracking that referenced this pull request Feb 1, 2018
- disable NSURLProtocol tracking by default because it is experimental/risky
- it must be explicitly enabled in the plist by `RPTEnableProtocolWebviewTracking` boolean flag
- change tracking manager 'disable' property to an 'enable' property and update affected logic
donnie-jp pushed a commit to donnie-jp/ios-perftracking that referenced this pull request Dec 14, 2018
…TH/perftracking_ds:release/1.1-merge-from-gh-20180201 to master

* commit '4c04b6edd167198796935f6d3718d7f865a55da2':
  REM-25612 Add changelog (rakutentech#28)
  REM-25612 Add RPTLogVerbose macro and use it instead of RPTLog in non-essential logging (rakutentech#27)
  REM-25644 Disable NSURLProtocol tracking (rakutentech#26)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants