Skip to content
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

[REVIEW, DO NOT MERGE] WebScience Migration Review #96

Open
wants to merge 138 commits into
base: ws-migration-review
Choose a base branch
from

Conversation

jonathanmayer
Copy link
Collaborator

No description provided.

Moving page management primarily to the content script environment means we don't need to track window type in the background script environment. Content scripts will only attach in ordinary web content windows.
We haven't had a compelling use case for this functionality, becuase it's generally OK for study logic to ignore pages that are already open when the extension launches. This functionality can also introduce inconsistencies for page measurements.
This functionality is no longer needed, because we can access the page privacy state in the content script environment.
We don't need to store tab information in the background script environment anymore, because we track page information in the content script environment.
We now handle these events in the content script environment.
Replacing tabs.onUpdated with webNavigation.onHistoryStateUpdated to detect History API URL changes, since the former cannot distinguish those changes from ordinary navigation URL changes. This update avoids unnecessary messages to the PageManager content script that can clutter the console.
Copy link
Collaborator Author

@jonathanmayer jonathanmayer left a comment

Choose a reason for hiding this comment

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

Comments from a pass through the updated implementation.

.eslintignore Outdated Show resolved Hide resolved
.gitignore Outdated Show resolved Hide resolved
manifest.json Show resolved Hide resolved
newsDisinfoQA.md Outdated Show resolved Hide resolved
newsDisinfoQA.md Outdated Show resolved Hide resolved
"$schema": "http://json-schema.org/draft-04/schema#",
"type": "object",
"mozPipelineMetadata": {
"bq_metadata_format": "pioneer",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

rally?

"newsAndDisinfo.version": { "type": "string" },
"newsAndDisinfo.pageNavigation": {
"type": "object",
"properties": {
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Descriptions in here would be helpful.

updatedSchema.schema.json Outdated Show resolved Hide resolved
updatedSchema.schema.json Outdated Show resolved Hide resolved
updatedSchema.schema.json Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved

"browser_specific_settings": {
"gecko": {
"id": "[email protected]",
"strict_min_version": "60.0"
"id": "[email protected]",
Copy link
Collaborator

Choose a reason for hiding this comment

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

The add-ons team has asked us to change these to end with @rally.mozilla.org, could we use [email protected]?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
review Feedback on recent commits
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants