Skip to content

Conversation

@petevb
Copy link
Contributor

@petevb petevb commented Jul 30, 2025

Asana Task/Github Issue:

Description

Uses JK's suggestion to get at the event type.

If I add this to urlChanged (in web-telemetry.js) I see that neither of these are true, which confuses me. It may be that we need a check here, or perhaps this is working because the WebTelemetry feature is enabled and that's by design.

console.log('WebTelemetry: URL changed', navigationType, this.getFeatureSettingEnabled('urlChanged'), this.getFeatureSettingEnabled('listenForUrlChanges'));

Testing Steps

N/A - tested by https://github.com/duckduckgo/windows-browser/pull/4527

Checklist

Please tick all that apply:

  • I have tested this change locally
  • I have tested this change locally in all supported browsers
  • This change will be visible to users - NO
  • I have added automated tests that cover this change - NO
  • I have ensured the change is gated by config - NOT SURE
  • This change was covered by a ship review - NO
  • This change was covered by a tech design - NO
  • Any dependent config has been merged - NOT SURE

@netlify
Copy link

netlify bot commented Jul 30, 2025

Deploy Preview for content-scope-scripts ready!

Name Link
🔨 Latest commit c4c2cbe
🔍 Latest deploy log https://app.netlify.com/projects/content-scope-scripts/deploys/688b63ef3b73c10008273075
😎 Deploy Preview https://deploy-preview-1865--content-scope-scripts.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions
Copy link

github-actions bot commented Jul 30, 2025

Temporary Branch Update

The temporary branch has been updated with the latest changes. Below are the details:

Please use the above install command to update to the latest version.

@github-actions
Copy link

github-actions bot commented Jul 30, 2025

[Beta] Generated file diff

Time updated: Thu, 31 Jul 2025 12:40:02 GMT

Android
    - android/autofillPasswordImport.js
  • android/brokerProtection.js
  • android/contentScope.js

File has changed

Apple
    - apple/contentScope.js
  • apple/contentScopeIsolated.js

File has changed

Chrome-mv3
    - chrome-mv3/inject.js

File has changed

Firefox
    - firefox/inject.js

File has changed

Integration
    - integration/contentScope.js

File has changed

Windows
    - windows/contentScope.js

File has changed

@petevb petevb marked this pull request as ready for review July 30, 2025 18:18
@petevb petevb requested a review from a team as a code owner July 30, 2025 18:18
@petevb
Copy link
Contributor Author

petevb commented Jul 30, 2025

@petevb
Copy link
Contributor Author

petevb commented Jul 30, 2025

I don't think the test failure is me, looks to be linting error in special pages https://github.com/duckduckgo/content-scope-scripts/actions/runs/16630449807/job/47058205000?pr=1865#step:7:1

cursor[bot]

This comment was marked as outdated.

petevb and others added 4 commits July 31, 2025 12:56
Uses JK's suggestion to get at the event type.

If I add this to `urlChanged` (in web-telemetry.js) I see that neither of these are true, which confuses me.  It may be that we need a check here, or perhaps this is working because the WebTelemetry feature is enabled and that's by design.

```js
console.log('WebTelemetry: URL changed', navigationType, this.getFeatureSettingEnabled('urlChanged'), this.getFeatureSettingEnabled('listenForUrlChanges'));
```
Co-authored-by: Jonathan Kingston <[email protected]>
Co-authored-by: Jonathan Kingston <[email protected]>
Copy link
Contributor

@jonathanKingston jonathanKingston left a comment

Choose a reason for hiding this comment

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

Thanks for dealing with switching it over here! Thanks!

@jonathanKingston jonathanKingston merged commit 7e1d052 into main Jul 31, 2025
17 checks passed
@jonathanKingston jonathanKingston deleted the pvb/urlChanged branch July 31, 2025 12:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants