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

7231 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 9150e917db Bug 1627986 - Don't scroll when focusing the root for document navigation. r=hsivonen
This still scrolls back to the top when focusing a subdocument via the tab key
or such in a (same-origin) iframe... I've decided to preserve behavior there but
let me know if you just want me to add a root element check in
nsFocusManager::ScrollIntoView instead.

I don't think it matters much, it's an edge case and either way this is a
progression.

Differential Revision: https://phabricator.services.mozilla.com/D70540

--HG--
extra : moz-landing-system : lando
2020-04-14 09:58:42 +00:00
Razvan Maries 7b34a6593b Backed out changeset 001575dc6d78 (bug 1582318) for breaking bug 1628661. 2020-04-13 00:05:27 +03:00
Andrea Marchesini 13481ea877 Bug 1363541 - Modernize the PermissionManager - part 4 - mozilla namespace, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D70040

--HG--
rename : extensions/permissions/nsPermissionManager.cpp => extensions/permissions/PermissionManager.cpp
rename : extensions/permissions/nsPermissionManager.h => extensions/permissions/PermissionManager.h
extra : moz-landing-system : lando
2020-04-11 13:42:12 +00:00
Andrea Marchesini d0bfec4f79 Bug 1363541 - Modernize the PermissionManager - part 1 - nsPermission to mozilla::Permission, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D69963

--HG--
rename : extensions/permissions/nsPermission.cpp => extensions/permissions/Permission.cpp
rename : extensions/permissions/nsPermission.h => extensions/permissions/Permission.h
extra : moz-landing-system : lando
2020-04-10 08:36:37 +00:00
Sergey Yarin 0e5580c07a Bug 1626774 - Took out redundant return statement at the end of MMPrinter::PrintImpl() function. r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D70588

--HG--
extra : moz-landing-system : lando
2020-04-11 07:53:57 +00:00
Matt Woodrow d65755c339 Bug 1625366 - Add cross-process violation event via WindowGlobal, fire violation events via WindowGlobal if they are for a window in a different process. r=ckerschb,nika
Differential Revision: https://phabricator.services.mozilla.com/D69909

--HG--
extra : moz-landing-system : lando
2020-04-10 22:14:51 +00:00
Matt Woodrow 45556ec33f Bug 1627859 - Convert nsIContentSecurityPolicy* IPDL serialization to use CSPInfo. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D69906

--HG--
extra : moz-landing-system : lando
2020-04-10 22:13:58 +00:00
Razvan Maries b74e338c98 Backed out 6 changesets (bug 1363541) for perma failures. CLOSED TREE
Backed out changeset a775f6e9eb41 (bug 1363541)
Backed out changeset 9212bfd89eca (bug 1363541)
Backed out changeset bf41b0c139f6 (bug 1363541)
Backed out changeset aa7c6668b249 (bug 1363541)
Backed out changeset 9f413a8a47bb (bug 1363541)
Backed out changeset 827a9a2866bd (bug 1363541)

--HG--
rename : extensions/permissions/Permission.cpp => extensions/permissions/nsPermission.cpp
rename : extensions/permissions/Permission.h => extensions/permissions/nsPermission.h
rename : extensions/permissions/PermissionManager.cpp => extensions/permissions/nsPermissionManager.cpp
rename : extensions/permissions/PermissionManager.h => extensions/permissions/nsPermissionManager.h
2020-04-10 11:31:20 +03:00
Andrea Marchesini b523b552a4 Bug 1363541 - Modernize the PermissionManager - part 4 - mozilla namespace, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D70040

--HG--
rename : extensions/permissions/nsPermissionManager.cpp => extensions/permissions/PermissionManager.cpp
rename : extensions/permissions/nsPermissionManager.h => extensions/permissions/PermissionManager.h
extra : moz-landing-system : lando
2020-04-09 22:08:02 +00:00
Andrea Marchesini 2ab42cd711 Bug 1363541 - Modernize the PermissionManager - part 1 - nsPermission to mozilla::Permission, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D69963

--HG--
rename : extensions/permissions/nsPermission.cpp => extensions/permissions/Permission.cpp
rename : extensions/permissions/nsPermission.h => extensions/permissions/Permission.h
extra : moz-landing-system : lando
2020-04-09 22:08:02 +00:00
Coroiu Cristina d37de5ed78 Backed out 6 changesets (bug 1363541) for browser-chrome failures at browser/base/content/test/performance/browser_startup_mainthreadio.js on a CLOSED TREE
Backed out changeset 947073be919f (bug 1363541)
Backed out changeset 1f397b686c11 (bug 1363541)
Backed out changeset d2ba944a47a3 (bug 1363541)
Backed out changeset 80d4d1f0c921 (bug 1363541)
Backed out changeset 9d6b9052f413 (bug 1363541)
Backed out changeset aeaa10789071 (bug 1363541)

--HG--
rename : extensions/permissions/Permission.cpp => extensions/permissions/nsPermission.cpp
rename : extensions/permissions/Permission.h => extensions/permissions/nsPermission.h
rename : extensions/permissions/PermissionManager.cpp => extensions/permissions/nsPermissionManager.cpp
rename : extensions/permissions/PermissionManager.h => extensions/permissions/nsPermissionManager.h
2020-04-10 01:00:15 +03:00
Andrea Marchesini 8764c55c53 Bug 1363541 - Modernize the PermissionManager - part 4 - mozilla namespace, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D70040

--HG--
rename : extensions/permissions/nsPermissionManager.cpp => extensions/permissions/PermissionManager.cpp
rename : extensions/permissions/nsPermissionManager.h => extensions/permissions/PermissionManager.h
extra : moz-landing-system : lando
2020-04-09 13:27:35 +00:00
Andrea Marchesini 23b424cd70 Bug 1363541 - Modernize the PermissionManager - part 1 - nsPermission to mozilla::Permission, r=timhuang
Differential Revision: https://phabricator.services.mozilla.com/D69963

--HG--
rename : extensions/permissions/nsPermission.cpp => extensions/permissions/Permission.cpp
rename : extensions/permissions/nsPermission.h => extensions/permissions/Permission.h
extra : moz-landing-system : lando
2020-04-09 14:07:34 +00:00
Ciure Andrei 130b66d511 Backed out 2 changesets (bug 1626573) for causing lint failures CLOSED TREE
Backed out changeset 0d461e174640 (bug 1626573)
Backed out changeset 00443a958bbc (bug 1626573)
2020-04-09 15:54:59 +03:00
Subhamoy Sengupta 191683acc9 Bug 1626573 - P1 - BrowsingContext transmits BlobURL before loading an URI if URI is a BlobURL r=baku
Differential Revision: https://phabricator.services.mozilla.com/D69717

--HG--
extra : moz-landing-system : lando
2020-04-09 11:50:32 +00:00
Kris Maglione 46bf54858f Bug 1626404: Part 4 - Remove now-redundant accessor args from BrowsingContext load methods. r=nika CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D69421

--HG--
extra : source : 4a3b391e08c420cc8289bd80d1b9229d4b41b24f
extra : intermediate-source : 453b858f4462272af20b61cdddc99b6c8e90bee9
2020-04-08 19:04:47 +00:00
Kris Maglione ca908cb413 Bug 1626404: Part 2b - Serialize source BC with LoadState. r=nika CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D69419

--HG--
extra : source : 2ffdab0072e7dbc56d232537aafbd2c1aa80ef14
extra : intermediate-source : ec63b18da4b9c1eb280f77a800e0e987aa3f20fa
2020-04-04 02:42:42 +00:00
Kris Maglione 8a5b17723f Bug 1626404: Part 0 - Add operators `bool` and `->` to MaybeDiscarded to match Maybe. r=nika CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D69416

--HG--
extra : source : bf32b30efa49c9da997dc70a1f33f5b67f31916a
extra : intermediate-source : 45b68d43bdbba9d7ecdb0f9549375c12be49e20c
2020-04-04 02:42:33 +00:00
Bogdan Tara 7a09dad859 Backed out 6 changesets (bug 1626404) for frequent timeouts on test_postMessage_onOther.html CLOSED TREE
Backed out changeset 453b858f4462 (bug 1626404)
Backed out changeset f54ce6a36c75 (bug 1626404)
Backed out changeset ec63b18da4b9 (bug 1626404)
Backed out changeset b0d4b213b819 (bug 1626404)
Backed out changeset af763de00e9d (bug 1626404)
Backed out changeset 45b68d43bdbb (bug 1626404)
2020-04-09 11:07:40 +03:00
Matt Woodrow e600940a82 Bug 1597159 - Defer creating DocumentLoadListener's stream filter until after we process switch. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D64698

--HG--
extra : moz-landing-system : lando
2020-04-09 07:03:49 +00:00
Matt Woodrow 393a68bda5 Bug 1597159 - Promisify CreateStreamFilter. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D64697

--HG--
extra : moz-landing-system : lando
2020-04-09 07:02:34 +00:00
Brindusan Cristian 21cc9ecac2 Backed out 3 changesets (bug 1597159) for build bustages on netwerk/ipc/target-objects. CLOSED TREE
Backed out changeset 2dd2598b3edb (bug 1597159)
Backed out changeset 0ad16f200740 (bug 1597159)
Backed out changeset 927e82a323c6 (bug 1597159)
2020-04-09 07:12:47 +03:00
Matt Woodrow 42aeff7415 Bug 1597159 - Defer creating DocumentLoadListener's stream filter until after we process switch. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D64698

--HG--
extra : moz-landing-system : lando
2020-04-09 02:55:17 +00:00
Matt Woodrow 476f9a4293 Bug 1597159 - Promisify CreateStreamFilter. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D64697

--HG--
extra : moz-landing-system : lando
2020-04-09 02:54:23 +00:00
Kris Maglione cba965d479 Bug 1626404: Part 4 - Remove now-redundant accessor args from BrowsingContext load methods. r=nika CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D69421

--HG--
extra : source : 4a3b391e08c420cc8289bd80d1b9229d4b41b24f
extra : histedit_source : bf3dae0b7ad368d29c9ea060b9afa4c2de383b1b
2020-04-08 19:04:47 +00:00
Kris Maglione 2ee2fd5673 Bug 1626404: Part 2b - Serialize source BC with LoadState. r=nika CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D69419

--HG--
extra : source : 2ffdab0072e7dbc56d232537aafbd2c1aa80ef14
extra : histedit_source : dc55d2eb9489d7d06d7845827bdf73f671a9df0f
2020-04-04 02:42:42 +00:00
Kris Maglione dabad7275e Bug 1626404: Part 0 - Add operators `bool` and `->` to MaybeDiscarded to match Maybe. r=nika CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D69416

--HG--
extra : source : bf32b30efa49c9da997dc70a1f33f5b67f31916a
extra : histedit_source : 44d68751756a73bb1b366af9a31853cbb0af0350
2020-04-04 02:42:33 +00:00
Kris Maglione 9e1706a554 Bug 1582318: Remove shutting-down processes from pool immediately. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D69441

--HG--
extra : moz-landing-system : lando
2020-04-08 21:13:18 +00:00
Oana Pop Rus 87d90e34dd Backed out 6 changesets (bug 1626404) for mochitest failures in BrowsingContext.cpp on a CLOSED TREE
Backed out changeset 4a3b391e08c4 (bug 1626404)
Backed out changeset 1a5a559ec6d5 (bug 1626404)
Backed out changeset 2ffdab0072e7 (bug 1626404)
Backed out changeset 6fb384961b99 (bug 1626404)
Backed out changeset c0c2e85e33da (bug 1626404)
Backed out changeset bf32b30efa49 (bug 1626404)

--HG--
extra : rebase_source : 466bf9356539fbc47cb015df212e38698322bfb3
2020-04-09 00:22:49 +03:00
Kris Maglione 3b9ea8eec4 Bug 1626404: Part 4 - Remove now-redundant accessor args from BrowsingContext load methods. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D69421

--HG--
extra : moz-landing-system : lando
2020-04-08 19:04:47 +00:00
Kris Maglione 45055f3e95 Bug 1626404: Part 2b - Serialize source BC with LoadState. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D69419

--HG--
extra : moz-landing-system : lando
2020-04-04 02:42:42 +00:00
Kris Maglione 91bf3d7f24 Bug 1626404: Part 0 - Add operators `bool` and `->` to MaybeDiscarded to match Maybe. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D69416

--HG--
extra : moz-landing-system : lando
2020-04-04 02:42:33 +00:00
Gabriele Svelto 2bc88d71e0 Bug 1614933 - Gather content processes' crash annotations at exception time instead of using IPC; r=froydnj
Crash annotations in content processes are currently sent over IPC via
shared memory buffers. To pave the way for the Rust rewrite of the exception
handler we are removing this code and gathering all the crash annotations
within the content processes themselves. This patch causes annotations to be
stored in the global table of each content process. They are then streamed
out to the parent process by the exception handler together with the
exception-time annotations.

This has a number of benefits:

* we have one less channel to exchange data between content processes and
  the parent process
* we save memory because we don't need to allocate the shared memory buffers
* annotations are faster because we don't stream them all out every time one
  changes
* we won't truncate annotations anymore if we run out of space in the shared
  segment.
* we don't need delayed annotations anymore, so we can get rid of the
  associated machinery

As I refactored the code I tried to adjust all the obsolete comments,
consolidate shared code and remove the redundant steps that were sometimes
present. In many places we had two entire crash annotation tables we merged to
change just a couple; that comes from the fact that historically we loaded
them from disk. Now it doesn't matter anymore and we can just go ahead and
change the ones we care about.

Differential Revision: https://phabricator.services.mozilla.com/D62586

--HG--
extra : moz-landing-system : lando
2020-04-08 06:55:40 +00:00
Nika Layzell 09988936b7 Bug 1616353 - Part 13: Don't create an extra BrowsingContext when opening a new tab from content, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D68045

--HG--
extra : moz-landing-system : lando
2020-04-07 21:39:59 +00:00
Nika Layzell f1286979d8 Bug 1616353 - Part 10.1: Remove special handling of window.open in mozbrowser, r=kmag
There are no remaining users of mozbrowser in our tree, so this patch removes
the logic which used to exist for handling window.open differently within
mozbrowser frames.

Differential Revision: https://phabricator.services.mozilla.com/D67057

--HG--
extra : moz-landing-system : lando
2020-04-07 21:39:52 +00:00
Nika Layzell 7b00bed2dd Bug 1616353 - Part 9: Ensure the correct OriginAttributes are set on opened TabContext, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D67215

--HG--
extra : moz-landing-system : lando
2020-04-07 21:39:49 +00:00
Nika Layzell 17acacfbf5 Bug 1616353 - Part 7.2: Create and use nsOpenWindowInfo types in nsWindowWatcher logic, r=kmag
This patch builds on top of part 7.1 by creating this object within
nsWindowWatcher and ContentParent to carry the relevant information through
provider interfaces when creating new content windows. The nsOpenWindowInfo
object is not created for new chrome windows.

This patch does not propagate these flags all of the way through to the
nsFrameLoader. That change is performed in later parts to keep each part
smaller.

Differential Revision: https://phabricator.services.mozilla.com/D67051

--HG--
extra : moz-landing-system : lando
2020-04-07 21:39:32 +00:00
Nika Layzell 35001ec24d Bug 1616353 - Part 6.3: Replace many nsILoadContext mutators with assertions, r=smaug
Many of these setters are redundant, and duplicate work done elsewhere. As it is
no longer correct to set nsILoadContext attributes at these times, they're being
replaced with assertions.

Differential Revision: https://phabricator.services.mozilla.com/D67047

--HG--
extra : moz-landing-system : lando
2020-04-07 21:39:16 +00:00
Nika Layzell dd58bf3df5 Bug 1616353 - Part 2: Remove the isPrivate flag from ParentShowInfo, r=kmag
This flag tries to change nsILoadContext flags late during browser creation,
which won't be possible after this patch stack.

Differential Revision: https://phabricator.services.mozilla.com/D67041

--HG--
extra : moz-landing-system : lando
2020-04-07 21:38:56 +00:00
Nika Layzell bf755bc6c4 Bug 1616353 - Part 1: Remove unused aIsPreallocated flag from NotifyTabContextUpdated, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D67040

--HG--
extra : moz-landing-system : lando
2020-04-07 21:38:54 +00:00
Dimi Lee 240f6cf0c4 Bug 1624607 - P2. Use window id instead of top-level stroage principal r=timhuang,baku
Depends on D68052

Differential Revision: https://phabricator.services.mozilla.com/D68053

--HG--
extra : moz-landing-system : lando
2020-04-07 18:09:51 +00:00
Andreas Farre 25ca8d7890 Bug 1620594 - Part 7: Remove TabGroup and SystemGroup. r=nika,bas
TabGroup never really made any difference in which thread something go
dispatched to. This was the intended use, but development of TabGroups
with abstract main threads never made it that far. The good thing is
that thish makes it safe to also remove to the SystemGroup and instead
switch all SystemGroup dispatches to dispatches to main thread.

Timers for setTimeout and workers were the sole users of wrapped and
throttled event targets, that those throttled queues have been moved
to the BrowsingContextGroup and are now accessed explicitly.

The SchedulerEventTarget has been removed, since there are no longer a
separate event target for every TaskCategory. Instead a
LabellingEventTarget has been added to DocGroup to handle the case
where an event is dispatched do DocGroup or when an AbstractThread is
created using a DocGroup. This means that we'll actually label more
events correctly with the DocGroup that they belong to.

DocGroups have also been moved to BrowsingContextGroup.

Depends on D67636

Differential Revision: https://phabricator.services.mozilla.com/D65936

--HG--
extra : moz-landing-system : lando
2020-04-07 15:17:47 +00:00
Andreas Farre b529c76594 Bug 1620594 - Part 6: Use AbstractThread::MainThread instead of SystemGroup::AbstractThread. r=nika
Depends on D67635

Differential Revision: https://phabricator.services.mozilla.com/D67636

--HG--
extra : moz-landing-system : lando
2020-04-07 15:17:14 +00:00
Andreas Farre 80a8c9ff06 Bug 1620594 - Part 4: Remove SetEventTargetForActor with SystemGroup target. r=nika
Depends on D67633

Differential Revision: https://phabricator.services.mozilla.com/D67634

--HG--
extra : moz-landing-system : lando
2020-04-07 15:16:54 +00:00
Andreas Farre 36eaf82163 Bug 1620594 - Part 2: Use SchedulerGroup::Dispatch instead of SystemGroup::Dispatch. r=nika
Depends on D67631

Differential Revision: https://phabricator.services.mozilla.com/D67632

--HG--
extra : moz-landing-system : lando
2020-04-07 15:16:33 +00:00
Andreas Farre 3b813ea957 Bug 1618236 - Make CollectPerformanceInfo use BrowsingContextGroup to find DocGroups. r=tarek,peterv
By having CollectPerformanceInfo traverse the BrowsingContextGroup and
tree of BrowsingContexts we can hide the task of getting the DocGroups
befind an API in BrowsingContextGroup and ease the removal of
TabGroups.

Differential Revision: https://phabricator.services.mozilla.com/D64390

--HG--
extra : moz-landing-system : lando
2020-04-07 15:16:13 +00:00
Jonathan Kew 715e096b9a Bug 1550037 - patch 1 - Migrate shared font-list code from mozilla::ipc::SharedMemoryBasic to base::SharedMemory APIs. r=jwatt
The base::SharedMemory class provides APIs to create a "read-only" copy of a shared memory block,
which means it can be shared to a child process without the risk that the child might map it as
writable and corrupt the contents. We want to use this facility for the font list, hence switching
the shared-memory APIs used.

Differential Revision: https://phabricator.services.mozilla.com/D68778

--HG--
extra : moz-landing-system : lando
2020-04-07 12:30:17 +00:00
Mihai Alexandru Michis 5da80eeda9 Backed out 3 changesets (bug 1550037) for causing bustages in SharedFontList-impl.h
CLOSED TREE

Backed out changeset 34ebd6260867 (bug 1550037)
Backed out changeset 7571e5bc19e7 (bug 1550037)
Backed out changeset 71fdead8eecb (bug 1550037)
2020-04-07 13:11:17 +03:00
Jonathan Kew 1bf1c749a5 Bug 1550037 - patch 1 - Migrate shared font-list code from mozilla::ipc::SharedMemoryBasic to base::SharedMemory APIs. r=jwatt
The base::SharedMemory class provides APIs to create a "read-only" copy of a shared memory block,
which means it can be shared to a child process without the risk that the child might map it as
writable and corrupt the contents. We want to use this facility for the font list, hence switching
the shared-memory APIs used.

Differential Revision: https://phabricator.services.mozilla.com/D68778

--HG--
extra : moz-landing-system : lando
2020-04-07 09:23:24 +00:00
Chris Martin 64e1fb7a45 Bug 1540776 - Have parent send color profile to child during launch r=aosmond,jld,jfkthame,florian
For Win32k lockdown, we need to remove the content processes' ability to
call GetICMProfileW(). Since it needs this to retrieve the output color
profile, a new synchronous call is added that allows it to request the
parent process to read this file on its behalf.

The contents of the file are now being cached as well, as this should help
ease some of the increased parent process I/O caused by the children not
being able to do this in their process anymore.

For performance reasons, during launch this information is passed directly
to the child through the SetXPCOMProcessAttributes call

Differential Revision: https://phabricator.services.mozilla.com/D66126

--HG--
extra : moz-landing-system : lando
2020-04-02 15:42:15 +00:00