Skip to content

[DRAFT] Notification: Add toString method #1879

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

laghee
Copy link
Contributor

@laghee laghee commented Aug 6, 2025

Asana Task/Github Issue: https://app.asana.com/1/137249556945/project/1201870266890790/task/1210988190527661?focus=true

Description

WIP - testing notification api

Testing Steps

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
  • I have added automated tests that cover this change
  • I have ensured the change is gated by config
  • This change was covered by a ship review
  • This change was covered by a tech design
  • Any dependent config has been merged

Copy link

netlify bot commented Aug 6, 2025

Deploy Preview for content-scope-scripts failed.

Name Link
🔨 Latest commit 486245a
🔍 Latest deploy log https://app.netlify.com/projects/content-scope-scripts/deploys/6894b90233f91d000989401f

Copy link

github-actions bot commented Aug 6, 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.

Copy link

github-actions bot commented Aug 6, 2025

[Beta] Generated file diff

Time updated: Thu, 07 Aug 2025 14:33:28 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

},
});
descriptor[k] = wrapToString(wrapper, descriptorProp);
}
});

return defineProperty(object, propertyName, descriptor);
return defineProperty(object, String(propertyName), /** @type {any} */ (descriptor));
Copy link
Contributor

Choose a reason for hiding this comment

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

We could add it here instead.

Suggested change
return defineProperty(object, String(propertyName), /** @type {any} */ (descriptor));
const def = defineProperty(object, propertyName, descriptor);
defineProperty(object[propertyName], "toString", somethingThatLookslikeWrapToString);
return def;

@laghee laghee force-pushed the km/notification-add-tostring branch from cac8f10 to 7f7bf30 Compare August 7, 2025 12:08
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