Skip to content

Commit 1ed51c1

Browse files
mgurgelgithub-actions[bot]
authored andcommitted
Release build 8.11.0 [ci release]
1 parent 1cbf8cb commit 1ed51c1

File tree

12 files changed

+26
-21
lines changed

12 files changed

+26
-21
lines changed

CHANGELOG.txt

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
- feat(pir): deprecate useEnhancedCaptchaSystem setting (#1608)
2-
- Fixes privacy-config hash on CI (#1605)
3-
- Update asana.yml (#1562)
4-
- Ensure getFeatureSettingEnabled behaves as expected (#1607)
1+
- ntp: send background-tab on windows middle-click (#1595)

Sources/ContentScopeScripts/dist/pages/history/dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4457,9 +4457,9 @@
44574457
// shared/handlers.js
44584458
function eventToTarget(event, platformName) {
44594459
const isControlClick = platformName === "macos" ? event.metaKey : event.ctrlKey;
4460-
if (isControlClick) {
4460+
if (isControlClick || "button" in event && event.button === 1) {
44614461
return "new-tab";
4462-
} else if (event.shiftKey || "button" in event && event.button === 1) {
4462+
} else if (event.shiftKey) {
44634463
return "new-window";
44644464
}
44654465
return "same-tab";

Sources/ContentScopeScripts/dist/pages/new-tab/dist/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3167,8 +3167,10 @@
31673167
const isControlClick = platformName === "macos" ? event.metaKey : event.ctrlKey;
31683168
if (isControlClick) {
31693169
return "new-tab";
3170-
} else if (event.shiftKey || event.button === 1) {
3170+
} else if (event.shiftKey) {
31713171
return "new-window";
3172+
} else if (event.button === 1) {
3173+
return "new-tab";
31723174
}
31733175
return "same-tab";
31743176
}

build/integration/pages/history/dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4457,9 +4457,9 @@
44574457
// shared/handlers.js
44584458
function eventToTarget(event, platformName) {
44594459
const isControlClick = platformName === "macos" ? event.metaKey : event.ctrlKey;
4460-
if (isControlClick) {
4460+
if (isControlClick || "button" in event && event.button === 1) {
44614461
return "new-tab";
4462-
} else if (event.shiftKey || "button" in event && event.button === 1) {
4462+
} else if (event.shiftKey) {
44634463
return "new-window";
44644464
}
44654465
return "same-tab";

build/integration/pages/new-tab/dist/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3167,8 +3167,10 @@
31673167
const isControlClick = platformName === "macos" ? event.metaKey : event.ctrlKey;
31683168
if (isControlClick) {
31693169
return "new-tab";
3170-
} else if (event.shiftKey || event.button === 1) {
3170+
} else if (event.shiftKey) {
31713171
return "new-window";
3172+
} else if (event.button === 1) {
3173+
return "new-tab";
31723174
}
31733175
return "same-tab";
31743176
}

build/windows/pages/history/dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4457,9 +4457,9 @@
44574457
// shared/handlers.js
44584458
function eventToTarget(event, platformName) {
44594459
const isControlClick = platformName === "macos" ? event.metaKey : event.ctrlKey;
4460-
if (isControlClick) {
4460+
if (isControlClick || "button" in event && event.button === 1) {
44614461
return "new-tab";
4462-
} else if (event.shiftKey || "button" in event && event.button === 1) {
4462+
} else if (event.shiftKey) {
44634463
return "new-window";
44644464
}
44654465
return "same-tab";

build/windows/pages/new-tab/dist/index.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3167,8 +3167,10 @@
31673167
const isControlClick = platformName === "macos" ? event.metaKey : event.ctrlKey;
31683168
if (isControlClick) {
31693169
return "new-tab";
3170-
} else if (event.shiftKey || event.button === 1) {
3170+
} else if (event.shiftKey) {
31713171
return "new-window";
3172+
} else if (event.button === 1) {
3173+
return "new-tab";
31723174
}
31733175
return "same-tab";
31743176
}

special-pages/pages/history/integration-tests/history.page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export class HistoryTestPage {
204204

205205
expect(calls[3].payload.params).toStrictEqual({
206206
url,
207-
target: 'new-window',
207+
target: 'new-tab',
208208
});
209209
}
210210

special-pages/pages/new-tab/app/activity/integration-tests/activity.page.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export class ActivityPage {
213213

214214
expect(calls[3].payload.params).toStrictEqual({
215215
url,
216-
target: 'new-window',
216+
target: 'new-tab',
217217
});
218218
}
219219

special-pages/pages/new-tab/app/favorites/integration-tests/favorites.page.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ export class FavoritesPage {
2020

2121
async opensInNewTab() {
2222
await this.nthFavorite(0).click({ modifiers: ['Meta'] });
23+
await this.nthFavorite(0).click({ button: 'middle' });
2324
const calls = await this.ntp.mocks.waitForCallCount({ method: 'favorites_open', count: 1 });
2425
expect(calls[0].payload.params).toStrictEqual({ id: 'id-many-1', url: 'https://example.com/?id=id-many-1', target: 'new-tab' });
26+
expect(calls[1].payload.params).toStrictEqual({ id: 'id-many-1', url: 'https://example.com/?id=id-many-1', target: 'new-tab' });
2527
}
2628

2729
async opensInNewWindow() {
2830
await this.nthFavorite(0).click({ modifiers: ['Shift'] });
29-
await this.nthFavorite(0).click({ button: 'middle' });
30-
const calls = await this.ntp.mocks.waitForCallCount({ method: 'favorites_open', count: 2 });
31+
const calls = await this.ntp.mocks.waitForCallCount({ method: 'favorites_open', count: 1 });
3132
expect(calls[0].payload.params).toStrictEqual({ id: 'id-many-1', url: 'https://example.com/?id=id-many-1', target: 'new-window' });
32-
expect(calls[1].payload.params).toStrictEqual({ id: 'id-many-1', url: 'https://example.com/?id=id-many-1', target: 'new-window' });
3333
}
3434

3535
async opensInSameTab() {

0 commit comments

Comments
 (0)