Commit graph

3224 commits

Author SHA1 Message Date
Andreas Farre
333f9b4d80 Bug 1810704 - Collect telemetry for session history collection time. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D167033
2023-01-19 06:45:55 +00:00
Florian Quèze
7626e45f85 Bug 1808729 - Limit session store writes to once per hour when the user is idle, r=dao.
Differential Revision: https://phabricator.services.mozilla.com/D166099
2023-01-16 14:55:22 +00:00
Sarah Clements
ec2009c58b Bug 1804064 - Firefox View window should not be saved r=Gijs,kcochrane
* If Firefox view tab is the last selected tab when a window is closed it
should not be saved; the first tab should be used instead. This patch updates a test,
updates the title that is saved and the selected index

Differential Revision: https://phabricator.services.mozilla.com/D166362
2023-01-11 11:59:19 +00:00
Stanca Serban
092c5a5d1f Backed out changeset c6ec3664e1f5 (bug 1808729) for causing mochitests failures in browser_privatebrowsing_history_shift_click.js. CLOSED TREE 2023-01-10 12:31:26 +02:00
Florian Quèze
86cbb666f1 Bug 1808729 - Limit session store writes to once per hour when the user is idle, r=dao.
Differential Revision: https://phabricator.services.mozilla.com/D166099
2023-01-10 08:26:07 +00:00
Sandor Molnar
33ead0c61c Backed out changeset 1a38da4f6de9 (bug 1808729) for causing bc failures in browser/components/sessionstore/test/browser_not_collect_when_idle.js CLOSED TREE 2023-01-09 16:28:29 +02:00
Florian Quèze
0527bc7217 Bug 1808729 - Limit session store writes to once per hour when the user is idle, r=dao.
Differential Revision: https://phabricator.services.mozilla.com/D166099
2023-01-09 11:31:28 +00:00
Marco Castelluccio
f69e697461 Bug 1801836 - Remove no longer necessary 'from __future__' imports. r=linter-reviewers,glandium,webdriver-reviewers,perftest-reviewers,geckoview-reviewers,jld,ahal,owlish,afinder DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D165395
2022-12-23 22:45:46 +00:00
Mark Banner
8730eec697 Bug 1806359 - Convert telemetry imports to direct ES imports. r=necko-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,janerik,mconley,sgalich,bytesized,kershaw
Differential Revision: https://phabricator.services.mozilla.com/D165002
2022-12-23 12:37:07 +00:00
Mark Banner
8ff997068a Bug 1806306 - Convert AsyncShutdown imports to direct ES imports. r=mak,webdriver-reviewers,application-update-reviewers,bytesized
Differential Revision: https://phabricator.services.mozilla.com/D164981
2022-12-23 12:37:06 +00:00
Gijs Kruitbosch
bd7719e854 Bug 1803391 - update comments / text references to session store modules as 'jsm's, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D164127
2022-12-12 10:08:03 +00:00
Gijs Kruitbosch
ad73d26a8a Bug 1803158 - convert session restore JSMs to sys.mjs ESMs, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D163349
2022-12-06 16:02:02 +00:00
Joel Maher
4c2c95a7c1 Bug 1803187 - re-enable sessionstore tests accidentally disabled. r=bxbrenden
Differential Revision: https://phabricator.services.mozilla.com/D163748
2022-12-05 23:37:41 +00:00
Norisz Fay
e679fb7f91 Backed out changeset 83906cd6a218 (bug 1803187) for causing mochitest failures on browser_524745.js CLOSED TREE 2022-12-01 18:59:14 +02:00
Nika Layzell
63f4cb9691 Bug 1803187 - Re-enable sessionrestore tests on linux, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D163367
2022-12-01 15:55:32 +00:00
Itiel
951322a251 Bug 1801061 - Consolidate some logic between about:sessionrestore and about:welcomeback r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D162488
2022-11-30 18:41:59 +00:00
Gijs Kruitbosch
440655e282 Bug 1789043 - use existing NOTIFY_BROWSER_SHUTDOWN_FLUSH on firefox view to be told about closing tabs, r=sclements
Differential Revision: https://phabricator.services.mozilla.com/D163216
2022-11-30 14:13:41 +00:00
Nika Layzell
399a2f946d Bug 1538028 - Part 3: Validate loads by TriggeringRemoteType, r=smaug,ckerschb
The previous part introduced a new mechanism to track the triggering remote
type for a specific load in a reliable way. This adds some basic checks based
on the triggering remote type to the nsContentSecurityManager, while also
providing the potential infrastructure to expand these checks in the future.

As these checks are performed before some other content security checks (to
ensure that they are performed before InitialSecurityCheckDone() is checked),
they may reject a load which would otherwise have been rejected by a later
check. For this reason, the diagnostic assertions added in this part are only
fired if the check appears as though it would otherwise have succeeded. This
check is not fully accurate, however, so may miss some cases.

This is important, as we have some tests, such as service worker navigation
tests, which will try to load file:/// URIs in content processes, and only fail
in the later content security checks.

For now, no checks are performed for non-document loads, though that may change
in the future.

Differential Revision: https://phabricator.services.mozilla.com/D161199
2022-11-29 20:41:45 +00:00
Iulian Moraru
bc9b8cb9f6 Backed out changeset 1da39fdc61ed (bug 1801061) for causing bc failures on browser_aboutSessionRestore.js. CLOSED TREE 2022-11-29 21:10:38 +02:00
Itiel
1d6317d367 Bug 1801061 - Consolidate some logic between about:sessionrestore and about:welcomeback r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D162488
2022-11-29 18:17:43 +00:00
Csoregi Natalia
53391534d7 Backed out changeset 5998b7a73bd9 (bug 1801061) for failures on browser_aboutSessionRestore.js. CLOSED TREE 2022-11-26 22:22:30 +02:00
Itiel
66f006b447 Bug 1801061 - Consolidate some logic between about:sessionrestore and about:welcomeback r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D162488
2022-11-26 19:33:14 +00:00
Marco Castelluccio
6d04d33abd Bug 1790816 - Reformat browser/ with isort. r=linter-reviewers,search-reviewers,Standard8 DONTBUILD
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D162667
2022-11-22 11:09:34 +00:00
Mark Banner
c1837954be Bug 1799314 - Convert consumers of testing modules to import ES modules direct (browser/). r=Gijs,settings-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D161914
2022-11-17 12:00:30 +00:00
Andreas Farre
31affac14d Bug 1798232 - Make sure to flush session store when moving tabs to new window. r=dao
When moving a tab to a new window, the tab state needs to be flushed
and then copied over. Copying the current state could possibly miss
out on any buffered changes. Unfortunately we can't wait for the flush
to complete and then move, so we need to force the old state on top of
the new.

Differential Revision: https://phabricator.services.mozilla.com/D160887
2022-11-02 13:45:46 +00:00
Mark Banner
9189ff3f6f Bug 1798018 - Convert consumers of toolkit/modules/tests to import ES modules direct. r=Gijs,webdriver-reviewers,extension-reviewers,settings-reviewers,credential-management-reviewers,sgalich
Differential Revision: https://phabricator.services.mozilla.com/D160664
2022-11-01 13:26:38 +00:00
Mark Banner
a2123f2d55 Bug 1798058 - Convert consumers of toolkit/modules/sessionstore/ to ES modules. r=daleharvey,geckoview-reviewers,owlish
Differential Revision: https://phabricator.services.mozilla.com/D160682
2022-10-31 15:15:34 +00:00
Mark Banner
cb0d5e794c Bug 1797689 - Clean up strict violations in browser/ r=mossop,settings-reviewers
Depends on D160490

Differential Revision: https://phabricator.services.mozilla.com/D160491
2022-10-27 15:58:25 +00:00
Mark Banner
2ffde1e92f Bug 1792341 - Migrate more toolkit/modules consumers to use direct ES module import. r=Gijs,webdriver-reviewers,perftest-reviewers,necko-reviewers,geckoview-reviewers,preferences-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,sgalich,owlish,bytesized,AlexandruIonescu,whimboo,mconley,mixedpuppy
Mainly automated changes. Some manual ESLint fixes and whitespace cleanup.

Differential Revision: https://phabricator.services.mozilla.com/D158452
2022-10-18 11:21:26 +00:00
Joel Maher
7f9dd7905a Bug 1794903 - adjust some manifests for windows 11 tests. r=gbrown
Differential Revision: https://phabricator.services.mozilla.com/D159223
2022-10-13 16:16:01 +00:00
Henrik Skupin
e75a84eaa1 Bug 1141335 - [marionette] Use in_app by default for quit() and restart(). r=webdriver-reviewers,jdescottes,perftest-reviewers,AlexandruIonescu
Hereby the "in_app" argument is required to be specified in case some
other argument eg. "clean" requires a termination of the application.

Differential Revision: https://phabricator.services.mozilla.com/D157219
2022-10-04 09:04:25 +00:00
Butkovits Atila
539f87fe4f Backed out changeset 3e220bf19d7b (bug 1141335) for causing failures at awsy/test_memory_usage.py. CLOSED TREE 2022-09-30 02:12:58 +03:00
Henrik Skupin
932d46b87f Bug 1141335 - [marionette] Use in_app by default for quit() and restart(). r=webdriver-reviewers,jdescottes
Hereby the "in_app" argument is required to be specified in case some
other argument eg. "clean" requires a termination of the application.

Differential Revision: https://phabricator.services.mozilla.com/D157219
2022-09-29 18:34:25 +00:00
Mark Banner
8d1ebcb9d6 Bug 1792365 - Convert toolkit/modules consumers to use ES module imports directly. r=webdriver-reviewers,perftest-reviewers,geckoview-reviewers,extension-reviewers,preferences-reviewers,desktop-theme-reviewers,application-update-reviewers,pip-reviewers,credential-management-reviewers,robwu,Gijs,sgalich,bytesized,AlexandruIonescu,dao,m_kato
Differential Revision: https://phabricator.services.mozilla.com/D158094
2022-09-29 06:52:34 +00:00
Niklas Baumgardner
30960c9987 Bug 1792441 - Keep window open when restoring with hidden tabs. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D158233
2022-09-29 03:08:06 +00:00
Mathew Hodson
a72c385753 Bug 1776578 - Replace init tasks with add_setup in mochitests. r=application-update-reviewers,Standard8
Differential Revision: https://phabricator.services.mozilla.com/D149486
2022-09-26 13:58:49 +00:00
Alexandre Poirot
6781eae59e Bug 1791832 - [devtools] Convert devtools/startup JSM to ES Modules. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D157911
2022-09-26 10:48:05 +00:00
Joel Maher
f668f1c655 Bug 1790868 - clean up 32 bit annotations for tests that don't run on 32 bit, and general cleanup. r=aryx
Differential Revision: https://phabricator.services.mozilla.com/D157352
2022-09-16 12:40:13 +00:00
Sarah Clements
204e4fc381 Bug 1787979 - keyboard shortcut navigates to the wrong tab from Firefox View tab r=dao
* Remove index: 0 in FirefoxViewHandler.openTab
* Add condition in tabbrowser _selectNextTab for FirefoxView tab
* Fix tests

Differential Revision: https://phabricator.services.mozilla.com/D156688
2022-09-14 15:20:01 +00:00
Sarah Clements
38ad4327c4 Bug 1789652 - Overwrite closedIDs when restoring sessions r=Gijs
* Add a helper in sessionstore to rewrite closedId's for all restored tabs
* Add test coverage

Differential Revision: https://phabricator.services.mozilla.com/D157235
2022-09-14 14:58:07 +00:00
Marian-Vasile Laza
308d06e28b Backed out changeset d057e8cf08cf (bug 1789652) for causing bc failures on browser_closedId.js. 2022-09-14 17:02:14 +03:00
Marian-Vasile Laza
02b993c483 Backed out changeset 9bf0a16672ec (bug 1787979) for causing bc failures on browser_sma_click_element.js. CLOSED TREE 2022-09-14 16:45:04 +03:00
Sarah Clements
e5b09809ba Bug 1789652 - Overwrite closedIDs when restoring sessions r=Gijs
* Add a helper in sessionstore to rewrite closedId's for all restored tabs
* Add test coverage

Differential Revision: https://phabricator.services.mozilla.com/D157235
2022-09-14 13:08:25 +00:00
Sarah Clements
20971e4d83 Bug 1787979 - keyboard shortcut navigates to the wrong tab from Firefox View tab r=dao
* Remove index: 0 in FirefoxViewHandler.openTab
* Add condition in tabbrowser _selectNextTab for FirefoxView tab
* Fix tests

Differential Revision: https://phabricator.services.mozilla.com/D156688
2022-09-14 11:24:58 +00:00
Sandor Molnar
f7c058dc48 Bug 1784019 - Fix eslint failure. 2022-09-13 22:00:11 +03:00
Niklas Baumgardner
fe6898c42f Bug 1784019 - Keep window open when restoring if Firefox View is selected. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D154395
2022-09-13 17:58:04 +00:00
Gijs Kruitbosch
5ab47eff23 Bug 1787565 - update recently closed tab entries in Firefox View based on delayed tab navigation information from session history, r=sclements
I don't love this solution but it appears to work and I can't think of anything better.

Differential Revision: https://phabricator.services.mozilla.com/D155920
2022-09-04 08:04:09 +00:00
Iulian Moraru
f5c8e45da0 Backed out changeset b63ab5a39b53 (bug 1787565) for causing bc failures on browser_recently_closed_tabs.js. CLOSED TREE 2022-09-03 14:09:15 +03:00
Gijs Kruitbosch
999832495a Bug 1787565 - update recently closed tab entries in Firefox View based on delayed tab navigation information from session history, r=sclements
I don't love this solution but it appears to work and I can't think of anything better.

Differential Revision: https://phabricator.services.mozilla.com/D155920
2022-09-03 09:53:55 +00:00
Niklas Baumgardner
969900e20a Bug 1788002 - Shift selected tab index for Session Store when FxView is used. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D156115
2022-09-02 20:30:49 +00:00