Skip to content

Commit

Permalink
Set dev flag when doing a force config reprocess.
Browse files Browse the repository at this point in the history
This prevents experiment data contamination when using the rollout debug tool.
  • Loading branch information
sammacbeth committed Jan 17, 2025
1 parent 7db6c28 commit a71a654
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion shared/js/background/components/remote-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import { getUserLocaleCountry, getUserLocale } from '../i18n';
import { getFeatureSettings, isFeatureEnabled, satisfiesMinVersion } from '../utils';
import { getExtensionVersion, getFromSessionStorage } from '../wrapper';
import { getExtensionVersion, getFromSessionStorage, setToSessionStorage } from '../wrapper';
import ResourceLoader from './resource-loader';
import constants from '../../../data/constants';
import { sendPixelRequest } from '../pixels';
Expand Down Expand Up @@ -73,6 +73,7 @@ export default class RemoteConfig extends ResourceLoader {

registerMessageHandler('getSubfeatureStatuses', this.getSubFeatureStatuses.bind(this));
registerMessageHandler('forceReprocessConfig', async () => {
await setToSessionStorage('dev', true);
await this._updateData({
contents: this.data,
etag: this.etag,
Expand Down

0 comments on commit a71a654

Please sign in to comment.