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

7766 Коммитов

Автор SHA1 Сообщение Дата
Butkovits Atila 7742c03714 Backed out 4 changesets (bug 1680637, bug 1682395) for causing Marionette failures. CLOSED TREE
Backed out changeset 073e0be7db95 (bug 1680637)
Backed out changeset 552b91b31b0f (bug 1682395)
Backed out changeset c80de6c72779 (bug 1680637)
Backed out changeset d513e228b0ad (bug 1680637)
2021-01-13 02:13:06 +02:00
Micah Tigley 06e7942185 Bug 1680637 - Update tests using the old dialog UI to only use the old UI. r=jaws,Gijs
Depends on D100172

Differential Revision: https://phabricator.services.mozilla.com/D101388
2021-01-12 22:32:24 +00:00
Kris Maglione 57e9b6e56c Bug 1674214: Add preference to disqualify users from Fission experiment based on loaded origin count. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D99568
2021-01-08 20:12:07 +00:00
Alexis Beingessner b1d3b28ef7 Bug 1683730 - disabled tests failing with tsan full shutdown. r=decoder
Seems like all timeouts at various levels.

Differential Revision: https://phabricator.services.mozilla.com/D100269
2021-01-08 20:08:29 +00:00
Olli Pettay 2371718010 Bug 1685577 - Disable dom.input_events.canSuspendInBCG.enabled for now, r=sefeng
Differential Revision: https://phabricator.services.mozilla.com/D101051
2021-01-08 12:58:24 +00:00
Olli Pettay e831069d3a Bug 1682394 - Consider to not check *unload event listeners for bfcache, r=jesup
Differential Revision: https://phabricator.services.mozilla.com/D99716
2021-01-07 23:43:44 +00:00
Razvan Maries 6565293451 Backed out changeset 8f99f3809630 (bug 1683220) for performance regression (bug 1684434). CLOSED TREE 2021-01-07 14:55:07 +02:00
Sylvestre Ledru b58ddc19df Bug 1519636 - Reformat recent changes to the Google coding style r=andi
Updated with Debian clang-format version 11.0.1-1

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D100934
2021-01-06 17:17:23 +00:00
Mihai Alexandru Michis 67eecb03bf Backed out changeset 5eacf74bc04f (bug 1643450) for causing android mochitest failures in test_window_open_from_closing.html
CLOSED TREE
2021-01-06 19:44:21 +02:00
Nika Layzell 6f44867564 Bug 1643450 - Allow creating windows from closing tabs, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D100165
2021-01-06 15:19:32 +00:00
Nika Layzell db4e8fccc0 Bug 1680418 - avoid clobbering shared state in same-document navigations, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D100166
2021-01-05 13:31:27 +00:00
Noemi Erli 0fab52422c Backed out 2 changesets (bug 1674214) for causing failures in browser_fission_maxOrigins.js CLOSED TREE
Backed out changeset 19fbaf9cd86f (bug 1674214)
Backed out changeset 7ef22fe8f73a (bug 1674214)
2021-01-06 01:35:37 +02:00
Kris Maglione ddca497df5 Bug 1674214: Add preference to disqualify users from Fission experiment based on loaded origin count. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D99568
2021-01-05 21:58:05 +00:00
Noemi Erli 24fa247850 Backed out changeset 47f0d542db39 (bug 1674214) for causing fission related failures CLOSED TREE 2021-01-05 22:28:56 +02:00
Kris Maglione e47b5afa5e Bug 1674214: Add preference to disqualify users from Fission experiment based on loaded origin count. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D99568
2020-12-16 21:57:14 +00:00
Razvan Maries d5566c5ebf Backed out changeset 7d10fe1f2f2e (bug 1684490) for causing bug 1685106. a=backout DONTBUILD 2021-01-05 17:59:54 +02:00
Emilio Cobos Álvarez b1477d11d2 Bug 1684490 - Make some BrowsingContext/WindowContext asserts DIAGNOSTIC_ASSERTS. r=edgar
These would've caught the issue a lot sooner.

Differential Revision: https://phabricator.services.mozilla.com/D100579
2021-01-04 20:54:15 +00:00
Emilio Cobos Álvarez f4e06d4673 Bug 1684490 - Check an in-process window context for user interaction. r=smaug,edgar
In the case we click a link from inside the frame, we don't want to
check for activation from the parent window but ourselves.

It feels like using the sourceWindowContext for these checks is always
the right thing to do, but it's not always possible if we set the
location.href from an out-of-process parent. In this case, we fall back
to consuming user activation on the iframe itself. This is tested in
browbrowser_protocol_ask_dialog.js when run with fission enabled.

We could consider making the user activation stuff more
multiprocess-friendly, but it's not clear to me it's worth it for this
particular edge case.

Differential Revision: https://phabricator.services.mozilla.com/D100578
2021-01-04 20:54:07 +00:00
Narcis Beleuzu d7a6d44ef2 Backed out 2 changesets (bug 1684490) as per emilio`s request
Backed out changeset 1f44b3e9ec62 (bug 1684490)
Backed out changeset 7ad6088bb2c2 (bug 1684490)
2021-01-04 23:51:15 +02:00
Emilio Cobos Álvarez d6fde576a9 Bug 1684490 - Make some BrowsingContext/WindowContext asserts DIAGNOSTIC_ASSERTS. r=edgar DONTBUILD
These would've caught the issue a lot sooner.

Differential Revision: https://phabricator.services.mozilla.com/D100579
2021-01-04 20:54:15 +00:00
Emilio Cobos Álvarez 5db3c765dd Bug 1684490 - Check an in-process window context for user interaction. r=smaug,edgar DONTBUILD
In the case we click a link from inside the frame, we don't want to
check for activation from the parent window but ourselves.

It feels like using the sourceWindowContext for these checks is always
the right thing to do, but it's not always possible if we set the
location.href from an out-of-process parent. In this case, we fall back
to consuming user activation on the iframe itself. This is tested in
browbrowser_protocol_ask_dialog.js when run with fission enabled.

We could consider making the user activation stuff more
multiprocess-friendly, but it's not clear to me it's worth it for this
particular edge case.

Differential Revision: https://phabricator.services.mozilla.com/D100578
2021-01-04 20:54:07 +00:00
Daniel Holbert f86b6c2086 Bug 1052471: Adjust test_bug453650.xhtml to perform its reflow-causing restyle a bit later, *after* the reflow observer is registered. r=jfkthame
I'm hoping this fixes (or at least helps with) this intermittent test failure
(an intermittent test-timeout).

Before this patch, the test did the following: it made a layout-impacting
restyle, and then it registered a reflow observer, and then it waited for the
previously-performed restyle to be flushed, which it then expects to cause a
reflow and trigger the reflow observer.

When the test times out and intermittently fails, it seems that the reflow
observer is successfully registered but never fires. I'm guessing that's
because the reflow is getting flushed eagerly for some reason, and happens
*before* the reflow observer is registered.  We can avoid this problem by
holding off on the restyle until after the reflow observer has been registered;
that's the approach that this patch takes.

(Note that this reflow-observer API isn't web-exposed; it's an internal API that
we use to report reflows in our devtools.)

Differential Revision: https://phabricator.services.mozilla.com/D100517
2021-01-04 19:04:40 +00:00
Andi-Bogdan Postelnicu 8dcc17a525 Bug 1683532 - Make `docshell` buildable outside of `unified-build` environment. r=sg
Differential Revision: https://phabricator.services.mozilla.com/D100205
2021-01-04 14:18:37 +00:00
Jonathan Kew 809ac36608 Bug 1676966 - Don't block layout on global font fallback; load character maps asynchronously, and then reflow when available. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D98904
2020-12-31 00:33:48 +00:00
Cosmin Sabou 74039caf3c Backed out changeset 345d6be71db1 (bug 1676966) for mochitest without e10s failures. CLOSED TREE 2020-12-30 15:36:10 +02:00
Jonathan Kew c19e845492 Bug 1676966 - Don't block layout on global font fallback; load character maps asynchronously, and then reflow when available. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D98904
2020-12-30 12:34:49 +00:00
Mihai Alexandru Michis d50d8d795e Backed out changeset 52eb1fa54b88 (bug 1676966) for causing mochitest failures in AsyncCompositionManager.cpp 2020-12-30 00:16:44 +02:00
Jonathan Kew 12c934e612 Bug 1676966 - Don't block layout on global font fallback; load character maps asynchronously, and then reflow when available. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D98904
2020-12-29 16:03:45 +00:00
Daniel Holbert e3420fb2ff Bug 1052471: add some logging to test_bug453650.xhtml to help diagnose what's causing the intermittent failure. (no review; just adding some test-only logging)
Differential Revision: https://phabricator.services.mozilla.com/D100256
2020-12-21 17:52:45 +00:00
Steve Fink fe76c7c194 Bug 1683220 - Remove nsJSContext::MaybeRunNextCollectorSlice entirely r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D96209
2020-12-21 17:23:26 +00:00
Yaron Tausky 1e7304d2f9 Bug 1675097 - Use the correct sandboxing flags for initial about:blank r=asuth,smaug
Differential Revision: https://phabricator.services.mozilla.com/D99237
2020-12-16 13:06:56 +00:00
Andreas Farre 533d203499 Bug 1668871 - Part 2: Move event listener to frame element. r=peterv
Setting the event listener on the window will sometimes make us not
get a load event.

Depends on D99799

Differential Revision: https://phabricator.services.mozilla.com/D99800
2020-12-21 14:17:23 +00:00
Andreas Farre c0ac8e01d9 Bug 1668871 - Part 1: Always create a new LoadingSessionHistoryInfo on reload. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D99799
2020-12-21 14:17:15 +00:00
Peter Van der Beken daeac0a231 Bug 1683335 - Add logging of the history tree to CanonicalBrowsingContext::SessionHistoryCommit. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D100129
2020-12-18 17:10:11 +00:00
Daisuke Akatsuka 62cb87a93f Bug 1678611: Apply page-title-changed event instead of onTitleChanged. r=mak,mixedpuppy
Depends on D98278

Differential Revision: https://phabricator.services.mozilla.com/D98280
2020-12-16 08:28:54 +00:00
Simon Giesecke 9758d919eb Bug 1583109 - Use StringJoin(Append) where easily possible. r=nika
Bug 1583109 introduced new function templates StringJoin and StringJoinAppend.
These are now used to replace several custom loops across the codebase that
implement string-joining algorithms to simplify the code.

Differential Revision: https://phabricator.services.mozilla.com/D98750
2020-12-17 14:58:18 +00:00
Masatoshi Kimura 3424a95ee0 Bug 1682103 - Make nsContentPolicyType a CEnum type. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D99580
2020-12-16 11:36:47 +00:00
Csoregi Natalia d8c9489b13 Backed out changeset 16d174e7c342 (bug 1583109) for bustage on nsReadableUtils.h. CLOSED TREE 2020-12-16 22:51:26 +02:00
Simon Giesecke 72babae175 Bug 1583109 - Use StringJoin(Append) where easily possible. r=nika
Bug 1583109 introduced new function templates StringJoin and StringJoinAppend.
These are now used to replace several custom loops across the codebase that
implement string-joining algorithms to simplify the code.

Differential Revision: https://phabricator.services.mozilla.com/D98750
2020-12-16 19:38:23 +00:00
Sean Feng 12424aa6b0 Bug 1662265 - Fix input events handling for sync XHR when both TaskController and e10s are enabled r=smaug
There are two issues in our current setup

1) Input events which are occurring in the same tab are going to be lost
because sync XHR. We have event handling suppression for synx XHR, so input
events are going to be discarded.

2) Input events that are happening in another tab (same process as the
synx XHR tab) are not going to be delayed. This is not correct since
sync XHR should block the Javascript execution.

This patches fixes the above cases for when both TaskController and e10s are
enabled by suspending the InputTaskManager during sync XHR, which
delays the input event handling and keeps the events around.

Differential Revision: https://phabricator.services.mozilla.com/D90780
2020-12-15 01:33:24 +00:00
Peter Van der Beken b650652fa3 Bug 1668658 - Change tests which fail when fission and session-history-in-parent are enabled from skip-if to fail-if. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D92181
2020-12-15 15:21:48 +00:00
Peter Van der Beken fe6597a730 Bug 1668658 - Switch annotations for tests failing with session history in parent from fission.autoStart to fission.sessionHistoryInParent. r=smaug,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D99667
2020-12-15 15:21:40 +00:00
Peter Van der Beken 63cf9eea6d Bug 1681729 - Pass the right value for aCloneChildren to AddChildSHEntryHelper with SHIP. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D99481
2020-12-15 15:02:33 +00:00
Cosmin Sabou e59f6f8941 Backed out changeset b12a898acdc9 (bug 1679418) for bc failures on browser_restore_redirect.js. CLOSED TREE 2020-12-15 18:33:16 +02:00
Peter Van der Beken 1d908096c5 Bug 1679418 - Fix test_bug1300461.html failure for Fission. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D99711
2020-12-14 21:04:00 +00:00
Kris Maglione b68275373e Bug 1672479: Fix beforeunload handling in location.refresh under SHiP. r=peterv
Per spec, whenever a "beforeunload" event handler which would affect a
`location.reload()` call exists, it must be called before the `reload()` call
returns. If a handler requests to block the navigation and we choose to
display a confirmation prompt, that must also be displayed before the call
returns.

With session history in parent, though, that currently does not happen,
because `location.reload()` triggers an async IPC call to the parent process,
and only attempts the actual reload (and thus beforeunload dispatch and
prompting) once it returns, which is too late to affect the caller.

This patch changes the handling in this case to manually perform permit unload
checks before taking an async code path. This still leaves the opportunity for
session history handlers in the parent to cancel the load asynchronously, but
that doesn't violate any spec-defined behavior.

Differential Revision: https://phabricator.services.mozilla.com/D94354
2020-12-14 21:25:46 +00:00
Emilio Cobos Álvarez f0dd52653f Bug 1680977 - Add a null-check.
aLink might be null in the parent process, and even though it's only
null when getting URIs via IPC (which should never hit this code path in
a correct execution), we don't trust the child process so this is safer.

Differential Revision: https://phabricator.services.mozilla.com/D99703
2020-12-14 18:01:39 +00:00
Dimi Lee 1507ffef24 Bug 1582499 - P1. Add isLocalIP to WindowContext r=nika
When a user clicks a form, the password manager popups a warning when the
form is not in a secure context. However, there is an exception when
a form is in an iframe. When both the url of the iframe and the top-level
are both local ip addresses, we consider it is safe.

This patch adds isLocalIP to WindowContext and WindowGlobalActor.webidl
so password manager can identify whether the top-level url is a local ip
address under fission.

Differential Revision: https://phabricator.services.mozilla.com/D99041
2020-12-10 20:45:54 +00:00
Emilio Cobos Álvarez 9964a50068 Bug 1680977 - Don't bother sending visited queries for URIs that we never store in history. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D99585
2020-12-14 15:23:08 +00:00
Emilio Cobos Álvarez 3f4f539a25 Bug 1680977 - Move nsNavHistory::CanAddURIToHistory to BaseHistory. r=mak
And do some minor improvements (use static prefs etc) while at it.

Differential Revision: https://phabricator.services.mozilla.com/D99584
2020-12-14 15:23:10 +00:00