Commit Graph

707137 Commits

Author SHA1 Message Date
Tim Huang
1fa1133990 Bug 1633851 - Part 1: Add a 'IsThirdPartyContextToTopWindow' flag to LoadInfo. r=baku
We add a 'IsThirdPartyContextToTopWindow' flag in the LoadInfo. This
flag shows if the channel is considered as a third party related to the
top-level window.

This flag would be set when opening the channel in the parent process.

Differential Revision: https://phabricator.services.mozilla.com/D73199
2020-05-13 13:38:41 +00:00
Michael Kaply
2778016b54 Bug 1635825 - Don't lock Startpage preference by default. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D74123
2020-05-12 21:15:45 +00:00
Tom Tung
3d101cac5a Bug 1634267 - DOS device paths shouldn't be blocked by IsBlockedUNCPath; r=dom-workers-and-storage-reviewers,janv,froydnj
Bug 1536796 introduces "\\?\" prefix (DOS device specifier) to Windows file
paths. At the moment, the prefix is only prepended to the file paths that start
with a disk designator and a backslash.

On the other hands, IsBlockedUNCPath blocks file paths that start with "\\" in
Windows and that includes DOS device paths (the cases mentioned above).

Thus, this patch prevents DOS device paths from being treating as UNC paths in
IsBlockedUNCPath.

Differential Revision: https://phabricator.services.mozilla.com/D73621
2020-05-13 14:32:35 +00:00
Andrei Oprea
e120487bbb Bug 1636324 - Show messaging-experiments messages in AS router devtools r=pdahiya
Differential Revision: https://phabricator.services.mozilla.com/D74822
2020-05-13 14:30:49 +00:00
Martin Stransky
8ee72ddd94 Bug 1635362 [Wayland] Split mozcontainer implementation for X11 and Wayland, r=jhorak
Differential Revision: https://phabricator.services.mozilla.com/D73794
2020-05-13 13:11:49 +00:00
Ricky Stewart
8ca753b2d7 Bug 1637409 - Fix stray SyntaxWarning in dom/bindings/Codegen.py r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D74954
2020-05-12 23:30:27 +00:00
Peter Van der Beken
c46091ad18 Bug 1570255 - Forward ChildSHistory::Go to the parent. r=smaug
This enables navigating by index in session history go through the
session history in the parent (if enabled with the pref).

If the pref is enabled, then ChildSHistory::Go will send an IPC message
to the parent with the index to navigate to. The parent calls the
existing nsSHistory implementation and starts the loads, and
asynchronously returns the index that we actually navigated to. The
child process then uses that result to update the session history
implementation in the child process (this part is temporary, while we
have session history both in parent and in child). We also make the
parent send an updated length to the child process over IPC, so that
history.length always the length for the implementation in the parent.

Differential Revision: https://phabricator.services.mozilla.com/D65330
2020-05-13 13:47:11 +00:00
Peter Van der Beken
879cba492c Bug 1570255 - Reboot session history in parent part 1. r=smaug,necko-reviewers,valentin
This adds a new implementation of nsISHEntry
(mozilla::dom::SessionHistoryEntry). When session history in the parent
is turned on, we'll instantiate the existing nsSHistory in the parent
process, but it will store entries of this new type. The nsSHistory in
the child process will also be instantiated for now, to avoid breaking
too many assumptions, and we try to keep parent and child
implementations in sync.

mozilla::dom::SessionHistoryEntry stores most of its data in a new
structure (mozilla::dom::SessionHistoryInfo) which can be sent over IPC.
When a load starts through the DocumentChannel we create an entry of
this new type for it in the parent process in
DocumentLoadListener::Open. The SessionHistoryInfo for that entry (with
an associated ID) is then sent over IPC in the RedirectToRealChannelArgs
to the process that does the actual load, where we store it in the
nsDocShell in mLoadingEntry (and mLoadingEntryId). The parent process
keeps track of outstanding loading entries in an array (mLoadingEntries)
in the CanonicalBrowsingContext. When a load finishes the nsDocShell
transfers mLoadingEntry into mActiveEntry, and notifies the parent
process through an IPC message (HistoryCommit) with the id of that
entry. The CanonicalBrowsingContext then removes the entry from the
array and stores it in its mActiveEntry, and adds the entry to the
nsSHistory object.

There are a number of things in this patch that are broken, and a lot of
FIXME comments. However, with the pref turned off things should just be
working as before. The goal is to land this first part, and then iterate
on the new implementation until we can switch over.

Differential Revision: https://phabricator.services.mozilla.com/D65329
2020-05-13 13:46:33 +00:00
Peter Van der Beken
e2a88c491c Bug 1570255 - Remove sync session history implementation. r=smaug,nika
Differential Revision: https://phabricator.services.mozilla.com/D65326
2020-05-13 14:24:55 +00:00
Ricky Stewart
8bfe989824 Bug 1634391 - Include more specific instructions than "consult a build peer" in Mozbuild comments/error messages r=froydnj
The official decision appears to be that we want people to ask questions in the build channel on chat.mozilla.org for queries that require build peer approval, as opposed to emailing specific people directly, filing bugs, etc. Rather than the vague "consult a build peer" suggestion currently in the code, specify exactly what we expect people to do in mozbuild.

Differential Revision: https://phabricator.services.mozilla.com/D74963
2020-05-13 13:40:53 +00:00
prathiksha
c6e5001502 Bug 1624971 - Update Monitor card with new links. r=ewright,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D74646
2020-05-13 11:51:07 +00:00
Csoregi Natalia
e8e832322d Backed out changeset efc42c73c3be (bug 1637383) for breaking decision task. CLOSED TREE 2020-05-13 17:02:53 +03:00
Andrew Halberstadt
54c18a94dd Bug 1637383 - [taskgraph.optimize] Simply run fuzzing builds every 10th push on autoland, r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D74933
2020-05-13 12:26:15 +00:00
Peter Van der Beken
482735363d Bug 1629866 - Store ChildSHistory on the BrowsingContext. r=nika,smaug
Differential Revision: https://phabricator.services.mozilla.com/D70997
2020-05-13 13:41:16 +00:00
Julian Descottes
38c244e508 Bug 1633748 - Generate console stubs using the ResourceWatcher r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D73443
2020-05-13 12:46:49 +00:00
Tim Huang
4dbbed8059 Bug 1635261 - Modify the way how we get the top-level principal in AntiTrackingUtils::HasStoragePermissionInParent(). r=dimi,baku
We used to use the topLevelStorageAreaPrincipal and topLevelPrincipal to
get the principal we need to do the storage permission checks in
AntiTrackingUtils::HasStoragePermissionInParent(). But, they don't work
in Fission.

So, we change to use the
AntiTrakcingUtils::GetTopLevelStorageAreaWindowId() and
AntiTrackingUtils::GetTopLevelAntiTrackingWindowID().

Differential Revision: https://phabricator.services.mozilla.com/D74238
2020-05-13 12:52:11 +00:00
Csoregi Natalia
4314c944e8 Backed out changeset c0c9d8211967 (bug 1629796) for failures on test_finalizationRegistry.html. CLOSED TREE 2020-05-13 16:25:59 +03:00
James Graham
8eea66dff8 Bug 1636905 - Fix javascript url COEP tests, r=annevk
Differential Revision: https://phabricator.services.mozilla.com/D74652
2020-05-13 11:55:21 +00:00
Jan de Mooij
679ed73f42 Bug 1636064 - Move some BytecodeLocation debug methods to the cpp file to fix build failures. r=tcampbell
Some methods defined in the BytecodeLocation-inl.h file were called from
BytecodeLocation.h. This 'worked' because these methods were not marked 'inline'
in the header file but it confuses some compiler/linker configurations as
reported in the bug.

Differential Revision: https://phabricator.services.mozilla.com/D75038
2020-05-13 12:43:39 +00:00
Dan Minor
d5f7cac185 Bug 1625694 - Set use_desktop_relative_cursor_position in DesktopAndCursorComposer; r=ng
Upstream has removed the mode used when use_desktop_relative_cursor_position_
is set to false as well as the associated override of OnMouseCursorPosition,
so the next time we update libwebrtc, this is the behaviour we will have.
Enabling it now fixes cursor display on Linux, which at the moment only works
for some windows.

Depends on D71392

Differential Revision: https://phabricator.services.mozilla.com/D71394
2020-05-05 21:15:57 +00:00
Dan Minor
d93f609fa8 Bug 1625694 - Remove unnecessary local modifications to mouse_cursor_monitor_x11; r=jib,ng
I think inner_window_ was added to handle the fact that window_ may not be
the same as child_window which could throw off the coordinates. Since we made
these modifications, upstream has added the XTranslateCoordinates call that
handles this case, so our local modifications are no longer necessary.

Differential Revision: https://phabricator.services.mozilla.com/D71392
2020-05-12 21:28:42 +00:00
Neil Deakin
f8f5f3a810 Bug 1633974, don't reset findbar when switching the findbar to a different browser, r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D74844
2020-05-13 12:42:31 +00:00
David Teller
b688affac2 Bug 1637559 - Use correct age for old samples in about:processes;r=florian
Differential Revision: https://phabricator.services.mozilla.com/D75061
2020-05-13 12:33:11 +00:00
Dão Gottwald
1faded16fa Bug 1635475 - Make notification bars obey prefers-reduced-motion. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D73907
2020-05-13 12:22:45 +00:00
Yue Zhang
740c6c3ab7 Bug 1630610 - Add tests for transformers/single_json.py. r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D74554
2020-05-13 00:29:36 +00:00
Yue Zhang
44c0a36b80 Bug 1630610 - Add tests for perftestnotebook.py and transformer.py. r=sparky
Depends on D73926

Differential Revision: https://phabricator.services.mozilla.com/D73927
2020-05-13 12:08:40 +00:00
Yue Zhang
a8fc57d316 Bug 1630610 - Add setup function for pytest. r=sparky
Depends on D73154

Differential Revision: https://phabricator.services.mozilla.com/D73926
2020-05-13 00:29:16 +00:00
Yue Zhang
118aa2368b Bug 1630610 - Fix broken code. r=sparky
Differential Revision: https://phabricator.services.mozilla.com/D73154
2020-05-13 00:29:08 +00:00
André Bargull
c85192abc1 Bug 1629796: Replace finalization iterator with multiple callback calls. r=jonco
Implements the spec changes from: https://github.com/tc39/proposal-weakrefs/pull/187

The spec change removes the `FinalizationRegistryCleanupIterator` in favour of
calling the clean-up callback for each finalised value. It also allows to call
`cleanupSome()` within the callback function.

`FinalizationRegistryObject::cleanupQueuedRecords()` has been changed to iterate
from back to front, because this allows us to call `GCVector::popCopy()`, which
makes it more efficient to remove entries from the `records` vector.

Differential Revision: https://phabricator.services.mozilla.com/D70821
2020-05-13 11:47:05 +00:00
André Bargull
646e42d410 Bug 1636869: Disable LoadTypedArrayLengthResult when TI/Ion are enabled. r=evilpie
Differential Revision: https://phabricator.services.mozilla.com/D74604
2020-05-13 11:43:57 +00:00
Mirko Brodesser
589cc5004b Bug 1635709: part 15) Rename GetTableSelectionType to GetTableSelectionMode. r=masayuki
Depends on D75058

Differential Revision: https://phabricator.services.mozilla.com/D75059
2020-05-13 11:11:31 +00:00
Mirko Brodesser
a79747a173 Bug 1635709: part 14) Change nsRange argument from const pointer to const reference around table selection. r=masayuki
Helps to get rid of unnecessary `nsresult`s later.

Depends on D75057

Differential Revision: https://phabricator.services.mozilla.com/D75058
2020-05-13 11:11:08 +00:00
Mirko Brodesser
a07f299f9c Bug 1635709: part 13) Remove stack variable for Selection::mUserInitiated. r=masayuki
Simplifies reasoning about the code when using searchfox.

Differential Revision: https://phabricator.services.mozilla.com/D75057
2020-05-13 11:10:41 +00:00
Tom Schuster
d9f3bbcc92 Bug 1637220 - Transpile StoreTypedArrayElement. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D74917
2020-05-13 11:44:12 +00:00
Tom Schuster
dc0eb4eac9 Bug 1637220 - Split up StoreTypedElement. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D74916
2020-05-13 11:44:04 +00:00
Tom Schuster
902fe4e975 Bug 1637220 - Transpile GuardToInt32ModUint32. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D74915
2020-05-13 11:43:49 +00:00
Csoregi Natalia
bbaf2b6a5e Backed out 3 changesets (bug 1637220) for bustage on WarpCacheIRTranspiler.cpp. CLOSED TREE
Backed out changeset 8399194a655b (bug 1637220)
Backed out changeset 80daf4134b4a (bug 1637220)
Backed out changeset dac70c5c35a6 (bug 1637220)
2020-05-13 14:34:22 +03:00
Tom Schuster
32749b7cbe Bug 1637220 - Transpile StoreTypedArrayElement. r=jandem
Depends on D74916

Differential Revision: https://phabricator.services.mozilla.com/D74917
2020-05-13 07:41:40 +00:00
Tom Schuster
c65c17f5c7 Bug 1637220 - Split up StoreTypedElement. r=jandem
Depends on D74915

Differential Revision: https://phabricator.services.mozilla.com/D74916
2020-05-13 07:40:31 +00:00
Tom Schuster
5538214742 Bug 1637220 - Transpile GuardToInt32ModUint32. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D74915
2020-05-13 07:39:48 +00:00
Masayuki Nakano
6644f1805c Bug 1627175 - part 18: Move WSRunScanner::GetNextWSNode() and WSRunScanner::GetPreviousWSNode() to HTMLEditUtils r=m_kato
They are returning same meaning value as
`HTMLEditUtils::GetNextLeafContentOrNextBlockElement()` and
`HTMLEditUtils::GetPreviousLeafContentOrPreviousBlockElement()` so that
they can be renamed to same name to overload them.

Depends on D74805

Differential Revision: https://phabricator.services.mozilla.com/D74806
2020-05-12 16:23:08 +00:00
Sylvestre Ledru
fedde13549 Bug 1636494 - doc: update the doc about some of the lint job moved to tier-2 r=linter-reviewers,ahal
Depends on D74435

Differential Revision: https://phabricator.services.mozilla.com/D74436
2020-05-13 09:32:57 +00:00
Sylvestre Ledru
e1332c6207 Bug 1636494 - Move the codespell, file-perm and file-whitespace linting jobs to tier-2 r=linter-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D74435
2020-05-13 09:32:40 +00:00
longsonr
5fa0ddbf8f Bug 935056 - Don't apply minimum font sizes to SVG text. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D74581
2020-05-13 09:10:54 +00:00
Csoregi Natalia
0da2867bf2 Backed out 5 changesets (bug 1625372) for assertion failures on GraphDriver.cpp. CLOSED TREE
Backed out changeset b9feee4f447c (bug 1625372)
Backed out changeset d86f066bd68b (bug 1625372)
Backed out changeset 7a38398623f8 (bug 1625372)
Backed out changeset 6e9928fb37d1 (bug 1625372)
Backed out changeset ca93e9921c05 (bug 1625372)
2020-05-13 13:09:22 +03:00
André Bargull
94f0acd9f4 Bug 1636870 - Part 2: Use ToTempRegisterOrInvalid where applicable. r=jandem
Drive-by change while working on this code.

Depends on D74605

Differential Revision: https://phabricator.services.mozilla.com/D74606
2020-05-13 09:20:35 +00:00
André Bargull
81e64f5be2 Bug 1636870 - Part 1: Add emitCreateBigInt helper to CodeGenerator. r=jandem
Differential Revision: https://phabricator.services.mozilla.com/D74605
2020-05-13 06:19:53 +00:00
Masayuki Nakano
e561b5131a Bug 1627175 - part 17: Move WSRunScanner::GetPreviousWSNodeInner() to HTMLEditUtils r=m_kato
Similar to the previous patch, this patch moves it into `HTMLEditUtils` with
renaming it to `GetPreviousLeafContentOrPreviousBlockElement()`.

Depends on D74804

Differential Revision: https://phabricator.services.mozilla.com/D74805
2020-05-12 16:14:32 +00:00
Masayuki Nakano
79f63fcc8b Bug 1636747 - Backout the 1st patch of bug 503838 r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D75032
2020-05-13 09:09:32 +00:00
Andrew Halberstadt
0137dde722 Bug 1637343 - [taskgraph] Replace the SETA optimization with 'bugbug_reduced' on autoland, r=marco
Differential Revision: https://phabricator.services.mozilla.com/D74932
2020-05-13 08:51:52 +00:00