Skip to content

Commit

Permalink
Release build 6.9.0 [ci release]
Browse files Browse the repository at this point in the history
  • Loading branch information
shakyShane authored and github-actions[bot] committed Aug 19, 2024
1 parent 3d067c1 commit 47cb478
Show file tree
Hide file tree
Showing 10 changed files with 44 additions and 11 deletions.
3 changes: 2 additions & 1 deletion Sources/ContentScopeScripts/dist/contentScope.js
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,8 @@
android: [
...baseFeatures,
"webCompat",
"clickToLoad"
"clickToLoad",
"breakageReporting"
],
windows: [
"cookie",
Expand Down
3 changes: 2 additions & 1 deletion Sources/ContentScopeScripts/dist/contentScopeIsolated.js
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,8 @@
android: [
...baseFeatures,
'webCompat',
'clickToLoad'
'clickToLoad',
'breakageReporting'
],
windows: [
'cookie',
Expand Down
29 changes: 27 additions & 2 deletions build/android/contentScope.js
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,8 @@
android: [
...baseFeatures,
'webCompat',
'clickToLoad'
'clickToLoad',
'breakageReporting'
],
windows: [
'cookie',
Expand Down Expand Up @@ -12096,6 +12097,29 @@
}
}

/**
* @returns array of performance metrics
*/
function getJsPerformanceMetrics () {
const paintResources = performance.getEntriesByType('paint');
const firstPaint = paintResources.find((entry) => entry.name === 'first-contentful-paint');
return firstPaint ? [firstPaint.startTime] : []
}

class BreakageReporting extends ContentFeature {
init () {
this.messaging.subscribe('getBreakageReportValues', () => {
const jsPerformance = getJsPerformanceMetrics();
const referrer = document.referrer;

this.messaging.notify('breakageReportResult', {
jsPerformance,
referrer
});
});
}
}

var platformFeatures = {
ddg_feature_runtimeChecks: RuntimeChecks,
ddg_feature_fingerprintingAudio: FingerprintingAudio,
Expand All @@ -12111,7 +12135,8 @@
ddg_feature_elementHiding: ElementHiding,
ddg_feature_exceptionHandler: ExceptionHandler,
ddg_feature_webCompat: WebCompat,
ddg_feature_clickToLoad: ClickToLoad
ddg_feature_clickToLoad: ClickToLoad,
ddg_feature_breakageReporting: BreakageReporting
};

/* global false */
Expand Down
3 changes: 2 additions & 1 deletion build/chrome-mv3/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -731,7 +731,8 @@
android: [
...baseFeatures,
'webCompat',
'clickToLoad'
'clickToLoad',
'breakageReporting'
],
windows: [
'cookie',
Expand Down
2 changes: 1 addition & 1 deletion build/chrome/inject.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion build/contentScope.js
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,8 @@
android: [
...baseFeatures,
'webCompat',
'clickToLoad'
'clickToLoad',
'breakageReporting'
],
windows: [
'cookie',
Expand Down
3 changes: 2 additions & 1 deletion build/firefox/inject.js
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,8 @@
android: [
...baseFeatures,
'webCompat',
'clickToLoad'
'clickToLoad',
'breakageReporting'
],
windows: [
'cookie',
Expand Down
3 changes: 2 additions & 1 deletion build/integration/contentScope.js
Original file line number Diff line number Diff line change
Expand Up @@ -728,7 +728,8 @@
android: [
...baseFeatures,
'webCompat',
'clickToLoad'
'clickToLoad',
'breakageReporting'
],
windows: [
'cookie',
Expand Down
3 changes: 2 additions & 1 deletion build/windows/contentScope.js
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,8 @@
android: [
...baseFeatures,
'webCompat',
'clickToLoad'
'clickToLoad',
'breakageReporting'
],
windows: [
'cookie',
Expand Down
3 changes: 2 additions & 1 deletion src/features.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ export const platformSupport = {
android: [
...baseFeatures,
'webCompat',
'clickToLoad'
'clickToLoad',
'breakageReporting'
],
windows: [
'cookie',
Expand Down

0 comments on commit 47cb478

Please sign in to comment.