Граф коммитов

1460 Коммитов

Автор SHA1 Сообщение Дата
Mike Conley 599de83389 Bug 1686315 - Fix up some tests to pass with content prompt subdialogs enabled or disabled. r=Gijs
Batch 1 of 2.

Differential Revision: https://phabricator.services.mozilla.com/D110342
2021-04-13 15:51:48 +00:00
Daisuke Akatsuka 316a92df5e Bug 1693503: Do search if the format inputed is user@host but might be intented as keyword. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D106748
2021-04-02 10:05:37 +00:00
Nika Layzell 79ad077a6a Bug 1699721 - Part 3: Add test for switching back into unloading process, r=kmag
This was somewhat convoluted to get to both reliably reproduce and not timeout
after the fixes were applied. The test can't run without Fission, as it
requires a process switch to occur on the navigation to/from
http://example.com.

Without part 2 of this patch stack, this test will crash after the process
switch.

Differential Revision: https://phabricator.services.mozilla.com/D110003
2021-03-31 16:51:59 +00:00
Andreea Pavel 35eeef915f Backed out 3 changesets (bug 1699721) for failing test_bug1699721.html on a CLOSED TREE
Backed out changeset ed3feb801017 (bug 1699721)
Backed out changeset d6f212c67002 (bug 1699721)
Backed out changeset ef06d9764cf1 (bug 1699721)
2021-03-31 19:27:34 +03:00
Nika Layzell f65b0188c7 Bug 1699721 - Part 3: Add test for switching back into unloading process, r=kmag
This was somewhat convoluted to get to both reliably reproduce and not timeout
after the fixes were applied. The test can't run without Fission, as it
requires a process switch to occur on the navigation to/from
http://example.com.

Without part 2 of this patch stack, this test will crash after the process
switch.

Differential Revision: https://phabricator.services.mozilla.com/D110003
2021-03-31 15:37:49 +00:00
Olli Pettay 1c8586cc51 Bug 1689683 - Ensure docshell/test/mochitest/test_bug590573.html works with SHIP-BFCache, r=annyG
Better to use requestAnimationFrame to ensure the scrolling actually has occurred after popstate.

Differential Revision: https://phabricator.services.mozilla.com/D109975
2021-03-31 13:17:21 +00:00
Cosmin Sabou 128f4975a7 Backed out changeset 8df311a9bec0 (bug 1689683) for causing Bug 1701959. 2021-03-30 18:45:19 +03:00
Olli Pettay 07ba2fd435 Bug 1689686 - Ensure docshell/test/navigation/test_bug1326251.html works with SHIP-BFCache, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D109945
2021-03-30 09:27:04 +00:00
Olli Pettay 0c43e7ec41 Bug 1689663 - Don't try to run docshell/test/navigation/test_bug1364364.html with SHIP-BFCache, r=peterv
I think this particular test doesn't make much sense in the new implementation.

Differential Revision: https://phabricator.services.mozilla.com/D109961
2021-03-30 09:25:41 +00:00
Olli Pettay 8f15f68443 Bug 1689669 - Ensure docshell/test/mochitest/test_bug1121701.html works with SHIP-BFCache, r=peterv
Depends on D109146

Differential Revision: https://phabricator.services.mozilla.com/D109886
2021-03-30 09:24:45 +00:00
Olli Pettay 1e523ef169 Bug 1699534 - Ensure beforeunload is called when the next page is coming from bfcache, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D109146
2021-03-30 09:24:45 +00:00
Olli Pettay 2fab9ccddd Bug 1689683 - Ensure docshell/test/mochitest/test_bug590573.html works with SHIP-BFCache, r=annyG
Depends on D109756

Differential Revision: https://phabricator.services.mozilla.com/D109975
2021-03-29 14:38:18 +00:00
Olli Pettay cc185f2b74 Bug 1689685 - Ensure docshell/test/navigation/test_scrollRestoration.html works with SHIP-BFCache, r=peterv
Similarly to the old session history implementation, scroll position needs to be stored in HandleSameDocumentNavigation.
The relevant old implementation is couple of lines above the new code in nsDocShell.

Differential Revision: https://phabricator.services.mozilla.com/D109756
2021-03-29 14:38:18 +00:00
Olli Pettay 39c56ee58a Bug 1689684 - Ensure docshell/test/browser/browser_bug1347823.js works with SHIP-BFCache, r=peterv
Depends on D109312

Differential Revision: https://phabricator.services.mozilla.com/D109313
2021-03-26 19:15:02 +00:00
Olli Pettay 7da30119f6 Bug 1689664 - Ensure docshell/test/navigation/test_performance_navigation.html works with SHIP-BFCache, r=peterv
This is similar pref enabling as what landed to couple of other tests already
https://searchfox.org/mozilla-central/search?q=%2F%2F+If+Fission+is+disabled%2C+the+pref+is+no-op.&path=

Differential Revision: https://phabricator.services.mozilla.com/D109312
2021-03-26 19:15:01 +00:00
Bogdan Tara b1afbfca15 Backed out 2 changesets (bug 1689684, bug 1689664) for assertion failure at nsSHistory.cpp on fission CLOSED TREE
Backed out changeset 506586ec7b20 (bug 1689684)
Backed out changeset f7c03240d0cc (bug 1689664)
2021-03-25 19:34:47 +02:00
Olli Pettay 88fe366ee5 Bug 1689684 - Ensure docshell/test/browser/browser_bug1347823.js works with SHIP-BFCache, r=peterv
Depends on D109312

Differential Revision: https://phabricator.services.mozilla.com/D109313
2021-03-25 16:40:50 +00:00
Olli Pettay 7188660617 Bug 1689664 - Ensure docshell/test/navigation/test_performance_navigation.html works with SHIP-BFCache, r=peterv
This is similar pref enabling as what landed to couple of other tests already
https://searchfox.org/mozilla-central/search?q=%2F%2F+If+Fission+is+disabled%2C+the+pref+is+no-op.&path=

Differential Revision: https://phabricator.services.mozilla.com/D109312
2021-03-25 16:40:50 +00:00
Olli Pettay 67eda3a866 Bug 1697838, explictly evict bfcache when doing a frameloader swap r=peterv
This is in practice the behavior already, because swap is really a move and removing the old tab, and
when removing the other tab, the bfcached frameloaders are destroyed. But they stay still in the session history.
So this patch clears session history explicitly.

As long as we have message managers, we can't really support bfcache in this case, since we can't swap message managers,
there are no corresponding managers on the other side.
Message managers need to stay always in the original window, since the listeners are from there.

WindowActors do move with frameloader/browsingcontext, but that leads easily to memory leaks.
https://bugzilla.mozilla.org/show_bug.cgi?id=1697918 is about that and it has nothing to do with bfcache.

Differential Revision: https://phabricator.services.mozilla.com/D108273
2021-03-24 18:57:14 +00:00
Henri Sivonen b98488aa92 Bug 673087 - Honor encoding declared via XML declaration in text/html. r=emk
Differential Revision: https://phabricator.services.mozilla.com/D107806
2021-03-23 09:52:04 +00:00
Olli Pettay dc39236b97 Bug 1699484 - Support Timer based bfcache eviction, r=peterv
The patch makes HistoryTracker rely on SHEntrySharedParentState instead of nsSHEntryShared.
nsSHEntryShared already extends SHEntrySharedParentState.

The test was modified a tiny bit to make it easier to see the results. The test does pass
with SHIP+BFCache.

Depends on D108851

Differential Revision: https://phabricator.services.mozilla.com/D108984
2021-03-21 21:46:26 +00:00
Olli Pettay b535d5b970 Bug 1698663 - Make Document::RemoveFromBFCacheSync() work with SHIP+BFCache, r=peterv
Depends on D108487

Differential Revision: https://phabricator.services.mozilla.com/D108851
2021-03-21 21:46:25 +00:00
Olli Pettay dd5347ded5 Bug 1698549 - Call FireDelayedDOMEvents when restoring a bfcached page, r=peterv
The test isn't testing anything mApplicationCache related, since appcache is basically
no-op code.

Depends on D107930

Differential Revision: https://phabricator.services.mozilla.com/D108487
2021-03-21 21:46:25 +00:00
Olli Pettay dc0a4c5e6c Bug 1697564 - Suspend/resume refresh URI list when bfcache lives in the parent process, r=peterv
The old setup is a tad fragile since it relies on Stop to happen at a particular moment.

The name RefreshURIToQueue is just trying to be consistent with RefreshURIFromQueue

Differential Revision: https://phabricator.services.mozilla.com/D107930
2021-03-21 21:46:25 +00:00
Olli Pettay 562c3c69fc Bug 1689681 - Ensure docshell/test/navigation/browser_test_bfcache_eviction.js works with SHIP-BFCache r=nika
Depends on D109217

Differential Revision: https://phabricator.services.mozilla.com/D109218
2021-03-21 19:40:50 +00:00
Olli Pettay 9ab5459e29 Bug 1699941 - Ensure docshell/test/navigation/test_bug1379762.html works with SHIP-BFCache r=nika
Depends on D109216

Differential Revision: https://phabricator.services.mozilla.com/D109217
2021-03-21 19:40:50 +00:00
Olli Pettay b4643136c9 Bug 1689672 - Ensure docshell/test/mochitest/test_bug660404.html works with SHIP-BFCache r=nika
Depends on D109212

Differential Revision: https://phabricator.services.mozilla.com/D109213
2021-03-21 19:40:48 +00:00
Olli Pettay 1f324316d5 Bug 1687738 - Re-enable docshell/test/mochitest/test_bfcache_plus_hash.html for Fission r=nika
Differential Revision: https://phabricator.services.mozilla.com/D109212
2021-03-20 23:57:39 +00:00
Eden Chuang 888442c1d8 Bug 1691153 - mochitest for testing Blob URL data is transmitted with correct principal type. r=asuth
Differential Revision: https://phabricator.services.mozilla.com/D106919
2021-03-18 18:04:43 +00:00
Butkovits Atila 8165271661 Bug 1688712 - disable test_bug1300461.html for frequent failures. r=intermittent-reviewers,jmaher DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D107372
2021-03-13 22:47:35 +00:00
Olli Pettay 72e7445ce0 Bug 1694727, remove the testing only code for history.length handling, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D108034
2021-03-11 19:31:30 +00:00
Anny Gakhokidze aa3895af8c Bug 1597427 - Check for recursive subframe loads in the parent process, r=kmag,necko-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D107311
2021-03-11 00:39:37 +00:00
Emilio Cobos Álvarez c1853bc54e Bug 1697580 - Remove nsIDocShell.isOffScreenBrowser. r=smacleod
It's unused.

Differential Revision: https://phabricator.services.mozilla.com/D107888
2021-03-10 19:29:11 +00:00
Olli Pettay 47aebd78b8 Bug 1697266 - Update performance.navigation.type when restoring page from bfcache, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D107709
2021-03-10 14:51:49 +00:00
Mark Banner c37e909d81 Bug 1696027 - Remove use of nsISearchEngine.addEngineWithDetails from mochitests. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D107624
2021-03-10 14:21:12 +00:00
Bogdan Tara 621d71189b Backed out 2 changesets (bug 369739, bug 1696027) for browser_searchChangedEngine.js and test_webextensions_upgrade.js failures CLOSED TREE
Backed out changeset 2705f924b635 (bug 369739)
Backed out changeset 6e5ccf3eeaa6 (bug 1696027)
2021-03-10 15:36:28 +02:00
Mark Banner 9df3e3dc07 Bug 1696027 - Remove use of nsISearchEngine.addEngineWithDetails from mochitests. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D107624
2021-03-10 12:34:43 +00:00
Jonathan Kew ceb44d34d6 Bug 1664730 - Disable async font fallback when running mochitests, to avoid unpredictable extra reflows that can disrupt event-/timing-sensitive tests. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D107284
2021-03-10 12:26:52 +00:00
Bogdan Tara ebf7802e4a Backed out 2 changesets (bug 369739, bug 1696027) for test_TelemetryEnvironment.js xpcshell failures CLOSED TREE
Backed out changeset 9ea26aff5a9b (bug 369739)
Backed out changeset 395e7278e415 (bug 1696027)
2021-03-10 10:27:02 +02:00
Mark Banner 62144490ad Bug 1696027 - Remove use of nsISearchEngine.addEngineWithDetails from mochitests. r=daleharvey
Differential Revision: https://phabricator.services.mozilla.com/D107624
2021-03-10 07:40:22 +00:00
Olli Pettay b90bd58381 Bug 1696266, test reloading a page which might otherwise enter bfcache, r=peterv
Depends on D107300

Differential Revision: https://phabricator.services.mozilla.com/D107536
2021-03-09 13:42:43 +00:00
Mark Banner 5319c0f444 Bug 1696873 - Apply automatic fixes to enable more ESLint rules on remaining docshell xhtml files. r=smaug
This automatically fixes issues for these rules: dot-notation, object-shorthand and mozilla/no-useless-parameters
The other enabled rules had no issues associated with them, so are enabled without code changes.

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D107424
2021-03-08 13:41:52 +00:00
Mark Banner acb019156a Bug 1696873 - Enable ESLint rule no-undef on remaining docshell xhtml files. r=smaug
Depends on D100450

Differential Revision: https://phabricator.services.mozilla.com/D107423
2021-03-08 13:41:52 +00:00
Sonia Singla c58860a007 Bug 1656293 - Enable ESLint no-unused-vars rules on docshell/test/chrome/*.xhtml files. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D100450
2021-03-08 09:20:53 +00:00
Kris Maglione b07bf8b037 Bug 1691595: Move evictAllContentViewers test code to SpecialPowers. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D104477
2021-02-18 21:04:12 +00:00
Anny Gakhokidze 50bc0db905 Bug 1687526 - Change test_scrollRestoration.html to use BroadcastChannel, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D105355
2021-02-16 20:38:10 +00:00
Yura Zenevich c72349ac1a Bug 1689445 - revert EventUtils.sendMouseEvent back to being sync. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D104127
2021-02-09 01:30:08 +00:00
Mihai Alexandru Michis 6da97a654e Backed out 2 changesets (bug 1689445) for causing bc failures in browser_search.js
Backed out changeset 2b1ec882c4c1 (bug 1689445)
Backed out changeset bcb4ba398ee0 (bug 1689445)
2021-02-06 05:33:02 +02:00
Yura Zenevich d3beb62c1d Bug 1689445 - revert EventUtils.sendMouseEvent back to being sync. r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D104127
2021-02-05 21:26:54 +00:00
Nika Layzell 91f9c9c927 Bug 1681529 - Part 1: Add a test for reloading a page with a large postdata payload, r=peterv
Without the other patches in this series, this test fails with both with and
without Fission enabled, for two different reasons.

With Fission disabled, the second reload request appears as empty, due to us
being unable to rewind the postData nsIInputStream. With Fission enabled, the
second reload request causes crashes due to the nsMIMEInputStream's invariant of
requiring a seekable stream is invalidated, causing the nsICloneableInputStream
implementation to misbehave.

Differential Revision: https://phabricator.services.mozilla.com/D101800
2021-02-04 18:12:52 +00:00