Skip to content

Commit 87cd713

Browse files
Merge branch 'main' into fix/evaluateCohortEligibility
2 parents 05ca2de + 634f19c commit 87cd713

File tree

18 files changed

+9
-109
lines changed

18 files changed

+9
-109
lines changed

app/scripts/background.js

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ import {
2323
ENVIRONMENT_TYPE_POPUP,
2424
ENVIRONMENT_TYPE_NOTIFICATION,
2525
ENVIRONMENT_TYPE_FULLSCREEN,
26-
///: BEGIN:ONLY_INCLUDE_IF(build-experimental)
2726
ENVIRONMENT_TYPE_SIDEPANEL,
28-
///: END:ONLY_INCLUDE_IF
2927
PLATFORM_FIREFOX,
3028
MESSAGE_TYPE,
3129
} from '../../shared/constants/app';
@@ -153,9 +151,7 @@ const isFirefox = getPlatform() === PLATFORM_FIREFOX;
153151
let openPopupCount = 0;
154152
let notificationIsOpen = false;
155153
let uiIsTriggering = false;
156-
///: BEGIN:ONLY_INCLUDE_IF(build-experimental)
157154
let sidePanelIsOpen = false;
158-
///: END:ONLY_INCLUDE_IF
159155
const openMetamaskTabsIDs = {};
160156
const requestAccountTabIds = {};
161157
let controller;
@@ -1169,9 +1165,7 @@ export function setupController(
11691165
openPopupCount > 0 ||
11701166
Boolean(Object.keys(openMetamaskTabsIDs).length) ||
11711167
notificationIsOpen ||
1172-
///: BEGIN:ONLY_INCLUDE_IF(build-experimental)
11731168
sidePanelIsOpen ||
1174-
///: END:ONLY_INCLUDE_IF
11751169
false
11761170
);
11771171
};
@@ -1259,7 +1253,6 @@ export function setupController(
12591253
});
12601254
}
12611255

1262-
///: BEGIN:ONLY_INCLUDE_IF(build-experimental)
12631256
if (processName === ENVIRONMENT_TYPE_SIDEPANEL) {
12641257
sidePanelIsOpen = true;
12651258
finished(portStream, () => {
@@ -1269,7 +1262,6 @@ export function setupController(
12691262
onCloseEnvironmentInstances(isClientOpen, ENVIRONMENT_TYPE_SIDEPANEL);
12701263
});
12711264
}
1272-
///: END:ONLY_INCLUDE_IF
12731265

12741266
if (processName === ENVIRONMENT_TYPE_NOTIFICATION) {
12751267
notificationIsOpen = true;
@@ -1615,9 +1607,7 @@ async function triggerUi() {
16151607
!uiIsTriggering &&
16161608
(isVivaldi || openPopupCount === 0) &&
16171609
!currentlyActiveMetamaskTab &&
1618-
///: BEGIN:ONLY_INCLUDE_IF(build-experimental)
16191610
!sidePanelIsOpen &&
1620-
///: END:ONLY_INCLUDE_IF
16211611
true
16221612
) {
16231613
uiIsTriggering = true;
@@ -1682,7 +1672,6 @@ function onInstall() {
16821672
platform.openExtensionInBrowser();
16831673
}
16841674
}
1685-
///: BEGIN:ONLY_INCLUDE_IF(build-experimental)
16861675
// Only register sidepanel context menu for browsers that support it (Chrome/Edge/Brave)
16871676
// and when the feature flag is enabled
16881677
if (
@@ -1704,7 +1693,6 @@ if (
17041693
}
17051694
});
17061695
}
1707-
///: END:ONLY_INCLUDE_IF
17081696

17091697
// // On first install, open a new tab with MetaMask
17101698
// async function onInstall() {
@@ -1786,7 +1774,6 @@ function onNavigateToTab() {
17861774
});
17871775
}
17881776

1789-
///: BEGIN:ONLY_INCLUDE_IF(build-experimental)
17901777
// Sidepanel-specific functionality
17911778
// Set initial side panel behavior based on user preference
17921779
const initSidePanelBehavior = async () => {
@@ -1974,7 +1961,6 @@ browser.tabs.onUpdated.addListener(async (tabId) => {
19741961

19751962
return {};
19761963
});
1977-
///: END:ONLY_INCLUDE_IF
19781964

19791965
function setupSentryGetStateGlobal(store) {
19801966
global.stateHooks.getSentryAppState = function () {

app/scripts/controllers/preferences-controller.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export type Preferences = {
114114
sortCallback: string;
115115
};
116116
useNativeCurrencyAsPrimaryCurrency: boolean;
117-
useSidePanelAsDefault?: boolean; // Only available in build-experimental
117+
useSidePanelAsDefault?: boolean;
118118
};
119119

120120
// Omitting properties that already exist in the PreferencesState, as part of the preferences property.
@@ -222,9 +222,7 @@ export const getDefaultPreferencesControllerState =
222222
sortCallback: 'stringNumeric',
223223
},
224224
useNativeCurrencyAsPrimaryCurrency: true,
225-
///: BEGIN:ONLY_INCLUDE_IF(build-experimental)
226225
useSidePanelAsDefault: false,
227-
///: END:ONLY_INCLUDE_IF
228226
},
229227
securityAlertsEnabled: true,
230228
selectedAddress: '',

app/scripts/lib/util.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ import {
1414
ENVIRONMENT_TYPE_BACKGROUND,
1515
ENVIRONMENT_TYPE_FULLSCREEN,
1616
ENVIRONMENT_TYPE_NOTIFICATION,
17-
///: BEGIN:ONLY_INCLUDE_IF(build-experimental)
1817
ENVIRONMENT_TYPE_SIDEPANEL,
19-
///: END:ONLY_INCLUDE_IF
2018
ENVIRONMENT_TYPE_POPUP,
2119
PLATFORM_BRAVE,
2220
PLATFORM_CHROME,
@@ -40,12 +38,9 @@ const getEnvironmentTypeMemo = memoize((url) => {
4038
return ENVIRONMENT_TYPE_FULLSCREEN;
4139
} else if (parsedUrl.pathname === '/notification.html') {
4240
return ENVIRONMENT_TYPE_NOTIFICATION;
43-
}
44-
///: BEGIN:ONLY_INCLUDE_IF(build-experimental)
45-
else if (parsedUrl.pathname === '/sidepanel.html') {
41+
} else if (parsedUrl.pathname === '/sidepanel.html') {
4642
return ENVIRONMENT_TYPE_SIDEPANEL;
4743
}
48-
///: END:ONLY_INCLUDE_IF
4944
return ENVIRONMENT_TYPE_BACKGROUND;
5045
});
5146

app/scripts/ui.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ import launchMetaMaskUi, {
4040
import {
4141
ENVIRONMENT_TYPE_FULLSCREEN,
4242
ENVIRONMENT_TYPE_POPUP,
43-
///: BEGIN:ONLY_INCLUDE_IF(build-experimental)
4443
ENVIRONMENT_TYPE_SIDEPANEL,
45-
///: END:ONLY_INCLUDE_IF
4644
PLATFORM_FIREFOX,
4745
} from '../../shared/constants/app';
4846
import { isManifestV3 } from '../../shared/modules/mv3.utils';
@@ -284,22 +282,13 @@ async function queryCurrentActiveTab(windowType) {
284282
}
285283

286284
// Only popup queries the active tab
287-
///: BEGIN:ONLY_INCLUDE_IF(build-experimental)
288285
// Sidepanel uses appActiveTab from tab listeners instead
289286
if (
290287
windowType !== ENVIRONMENT_TYPE_POPUP &&
291288
windowType !== ENVIRONMENT_TYPE_SIDEPANEL
292289
) {
293290
return {};
294291
}
295-
///: END:ONLY_INCLUDE_IF
296-
///: BEGIN:ONLY_INCLUDE_IF(build-main,build-beta,build-flask)
297-
// Only popup queries the active tab
298-
// Dialog/notification windows get their origin from approval metadata
299-
if (windowType !== ENVIRONMENT_TYPE_POPUP) {
300-
return {};
301-
}
302-
///: END:ONLY_INCLUDE_IF
303292

304293
const tabs = await browser.tabs
305294
.query({ active: true, currentWindow: true })

builds.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ buildTypes:
1717
id: 10
1818
features:
1919
- build-main
20-
- build-experimental
2120
- keyring-snaps
2221
- multi-srp
2322
- multichain
@@ -51,7 +50,6 @@ buildTypes:
5150
id: 11
5251
features:
5352
- build-beta
54-
- build-experimental
5553
- keyring-snaps
5654
- multichain
5755
- bitcoin
@@ -121,7 +119,6 @@ buildTypes:
121119
# will not be removed
122120
features:
123121
- build-flask
124-
- build-experimental
125122
- keyring-snaps
126123
- bitcoin
127124
- tron

development/build/scripts.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -758,15 +758,13 @@ function createFactoredBuild({
758758
applyLavaMoat,
759759
scripts,
760760
});
761-
///: BEGIN:ONLY_INCLUDE_IF(build-experimental)
762761
renderHtmlFile({
763762
htmlName: 'sidepanel',
764763
browserPlatforms,
765764
applyLavaMoat,
766765
shouldIncludeSnow,
767766
scripts,
768767
});
769-
///: END:ONLY_INCLUDE_IF
770768
renderHtmlFile({
771769
htmlName: 'notification',
772770
browserPlatforms,

shared/constants/metametrics.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -941,9 +941,7 @@ export enum MetaMetricsEventName {
941941
ExtensionPinned = 'Extension Pinned',
942942
// Extension Port Stream
943943
PortStreamChunked = 'Port Stream Chunked',
944-
///: BEGIN:ONLY_INCLUDE_IF(build-experimental)
945944
ViewportSwitched = 'Viewport Switched',
946-
///: END:ONLY_INCLUDE_IF
947945
// Shield
948946
ShieldEntryModal = 'Shield Entry Modal',
949947
ShieldSubscriptionRequest = 'Shield Subscription Request',

test/e2e/tests/settings/terms-of-use.spec.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ describe('Terms of use', function (this: Suite) {
1818
},
1919
async ({ driver }) => {
2020
await loginWithoutBalanceValidation(driver);
21+
22+
// Delay click to mitigate flakiness
23+
await driver.delay(1_000);
24+
2125
// accept updated terms of use
2226
const updateTermsOfUseModal = new TermsOfUseUpdateModal(driver);
2327
await updateTermsOfUseModal.checkPageIsLoaded();

ui/components/multichain/app-header/app-header.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@ import { toggleNetworkMenu } from '../../../store/actions';
2929
import { getEnvironmentType } from '../../../../app/scripts/lib/util';
3030
import {
3131
ENVIRONMENT_TYPE_POPUP,
32-
///: BEGIN:ONLY_INCLUDE_IF(build-experimental)
3332
ENVIRONMENT_TYPE_SIDEPANEL,
34-
///: END:ONLY_INCLUDE_IF
3533
} from '../../../../shared/constants/app';
3634
import { getIsUnlocked } from '../../../ducks/metamask/metamask';
3735
import { SEND_STAGES, getSendStage } from '../../../ducks/send';
@@ -58,9 +56,7 @@ export const AppHeader = ({ location }) => {
5856

5957
const environmentType = getEnvironmentType();
6058
const popupStatus = environmentType === ENVIRONMENT_TYPE_POPUP;
61-
///: BEGIN:ONLY_INCLUDE_IF(build-experimental)
6259
const isSidepanel = environmentType === ENVIRONMENT_TYPE_SIDEPANEL;
63-
///: END:ONLY_INCLUDE_IF
6460

6561
// Disable the network and account pickers if the user is in
6662
// a critical flow
@@ -128,12 +124,7 @@ export const AppHeader = ({ location }) => {
128124

129125
return (
130126
<>
131-
{isUnlocked &&
132-
!popupStatus &&
133-
///: BEGIN:ONLY_INCLUDE_IF(build-experimental)
134-
!isSidepanel &&
135-
///: END:ONLY_INCLUDE_IF
136-
true ? (
127+
{isUnlocked && !popupStatus && !isSidepanel && true ? (
137128
<MultichainMetaFoxLogo />
138129
) : null}
139130
<AppHeaderContainer isUnlocked={isUnlocked} popupStatus={popupStatus}>

ui/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@ import {
1919
ENVIRONMENT_TYPE_POPUP,
2020
ENVIRONMENT_TYPE_SIDEPANEL,
2121
} from '../shared/constants/app';
22-
///: BEGIN:ONLY_INCLUDE_IF(build-experimental)
2322
import { getBrowserName } from '../shared/modules/browser-runtime.utils';
24-
///: END:ONLY_INCLUDE_IF
2523
import { COPY_OPTIONS } from '../shared/constants/copy';
2624
import { switchDirection } from '../shared/lib/switch-direction';
2725
import { setupLocale } from '../shared/lib/error-utils';
@@ -247,7 +245,6 @@ async function startApp(metamaskState, opts) {
247245
async function runInitialActions(store) {
248246
const initialState = store.getState();
249247

250-
///: BEGIN:ONLY_INCLUDE_IF(build-experimental)
251248
// Update browser environment with accurate browser detection from UI
252249
// This corrects the initial detection from background which can't detect Brave
253250
try {
@@ -263,7 +260,6 @@ async function runInitialActions(store) {
263260
} catch (error) {
264261
log.error('Failed to get browser name:', error);
265262
}
266-
///: END:ONLY_INCLUDE_IF
267263

268264
// This block autoswitches chains based on the last chain used
269265
// for a given dapp, when there are no pending confimrations

0 commit comments

Comments
 (0)