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

6932 Коммитов

Автор SHA1 Сообщение Дата
Narcis Beleuzu cb54b0227b Backed out 5 changesets (bug 1605566) for wpt failures on shared.html . CLOSED TREE
Backed out changeset 622939cef438 (bug 1605566)
Backed out changeset ab98304e6c84 (bug 1605566)
Backed out changeset 7eab8fd2b62e (bug 1605566)
Backed out changeset 99f61f25ed86 (bug 1605566)
Backed out changeset 77bdf4f86052 (bug 1605566)
2020-01-22 12:58:13 +02:00
Andrea Marchesini 6c0733d2e8 Bug 1605566 - MessagePort + wasm - part 4 - Implement RefMessageBodyService, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D59615

--HG--
extra : moz-landing-system : lando
2020-01-22 09:33:29 +00:00
Andrea Marchesini 4da71e81af Bug 1605566 - MessagePort + wasm - part 3 - MessagePort serializes objects using MessageData union, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D59614

--HG--
extra : moz-landing-system : lando
2020-01-22 09:33:11 +00:00
Kris Maglione ab5a99dd15 Bug 1602898: Rename Window.getWindowGlobalChild() to .windowGlobalChild. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D56609

--HG--
extra : moz-landing-system : lando
2020-01-21 21:32:28 +00:00
Mihai Alexandru Michis 745c94b1df Backed out changeset 006f4e50e8e5 (bug 1602898) for causing multiple failures.
CLOSED TREE
2020-01-21 22:55:37 +02:00
Csoregi Natalia a80826ff4b Backed out changeset f2cdc99085f6 (bug 1607364) for bustage on BrowserParent.cpp. CLOSED TREE 2020-01-21 22:36:18 +02:00
Arnaud Renevier 18693a1c1f Bug 1607364 - CrashReporting API r=baku
Implement Crash Report for Reporting API.

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

--HG--
extra : moz-landing-system : lando
2020-01-21 19:31:26 +00:00
Kris Maglione aa0306477e Bug 1602898: Rename Window.getWindowGlobalChild() to .windowGlobalChild. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D56609

--HG--
extra : moz-landing-system : lando
2020-01-21 18:48:26 +00:00
Dimi Lee b9aa6a9945 Bug 1603053 - Move reportContentBlockingLog from the child to the parent r=timhuang,Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D56737

--HG--
extra : moz-landing-system : lando
2020-01-21 14:28:48 +00:00
Sylvestre Ledru 187e9bafaf Bug 1519636 - Automatically reformat recent changes using clang-format r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2020-01-21 09:51:27 +00:00
Razvan Maries 96ed25174f Backed out 2 changesets (bug 1580176) for hazard bustages. CLOSED TREE
Backed out changeset 7e39efd27d4e (bug 1580176)
Backed out changeset 20f5bece309f (bug 1580176)
2020-01-20 22:43:53 +02:00
Frederik Braun 247fd24240 Bug 1580176 - Part 2: Log sent and received messages in JSWindowActor, r=nika
Also logs JSWindowActor{Child,Parent}::Init and JSWindowActor::{Start,After}Destroy.

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

--HG--
extra : moz-landing-system : lando
2020-01-20 19:19:19 +00:00
Kashav Madan 7e7452f3d1 Bug 1580176 - Part 1: Make some common actor utility methods virtual, r=nika
Adds GetManager on JSWindowActor (returns the associated WindowGlobalActor),
and IsInProcess on WindowGlobalActor (returns whether the actor is in process
or not).

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

--HG--
extra : moz-landing-system : lando
2020-01-20 19:00:30 +00:00
Emilio Cobos Álvarez 256c124f94 Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj
This was done by:

This was done by applying:

```
diff --git a/python/mozbuild/mozbuild/code-analysis/mach_commands.py b/python/mozbuild/mozbuild/code-analysis/mach_commands.py
index 789affde7bbf..fe33c4c7d4d1 100644
--- a/python/mozbuild/mozbuild/code-analysis/mach_commands.py
+++ b/python/mozbuild/mozbuild/code-analysis/mach_commands.py
@@ -2007,7 +2007,7 @@ class StaticAnalysis(MachCommandBase):
         from subprocess import Popen, PIPE, check_output, CalledProcessError

         diff_process = Popen(self._get_clang_format_diff_command(commit), stdout=PIPE)
-        args = [sys.executable, clang_format_diff, "-p1", "-binary=%s" % clang_format]
+        args = [sys.executable, clang_format_diff, "-p1", "-binary=%s" % clang_format, '-sort-includes']

         if not output_file:
             args.append("-i")
```

Then running `./mach clang-format -c <commit-hash>`

Then undoing that patch.

Then running check_spidermonkey_style.py --fixup

Then running `./mach clang-format`

I had to fix four things:

 * I needed to move <utility> back down in GuardObjects.h because I was hitting
   obscure problems with our system include wrappers like this:

0:03.94 /usr/include/stdlib.h:550:14: error: exception specification in declaration does not match previous declaration
0:03.94 extern void *realloc (void *__ptr, size_t __size)
0:03.94              ^
0:03.94 /home/emilio/src/moz/gecko-2/obj-debug/dist/include/malloc_decls.h:53:1: note: previous declaration is here
0:03.94 MALLOC_DECL(realloc, void*, void*, size_t)
0:03.94 ^
0:03.94 /home/emilio/src/moz/gecko-2/obj-debug/dist/include/mozilla/mozalloc.h:22:32: note: expanded from macro 'MALLOC_DECL'
0:03.94     MOZ_MEMORY_API return_type name##_impl(__VA_ARGS__);
0:03.94                                ^
0:03.94 <scratch space>:178:1: note: expanded from here
0:03.94 realloc_impl
0:03.94 ^
0:03.94 /home/emilio/src/moz/gecko-2/obj-debug/dist/include/mozmemory_wrap.h:142:41: note: expanded from macro 'realloc_impl'
0:03.94 #define realloc_impl mozmem_malloc_impl(realloc)

   Which I really didn't feel like digging into.

 * I had to restore the order of TrustOverrideUtils.h and related files in nss
   because the .inc files depend on TrustOverrideUtils.h being included earlier.

 * I had to add a missing include to RollingNumber.h

 * Also had to partially restore include order in JsepSessionImpl.cpp to avoid
   some -WError issues due to some static inline functions being defined in a
   header but not used in the rest of the compilation unit.

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

--HG--
extra : moz-landing-system : lando
2020-01-20 16:19:48 +00:00
Emilio Cobos Álvarez aa3a695712 Bug 1609996 - Remove mozilla/Move.h. r=froydnj
rg -l 'mozilla/Move.h' | xargs sed -i 's/#include "mozilla\/Move.h"/#include <utility>/g'

Further manual fixups and cleanups to the include order incoming.

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

--HG--
extra : moz-landing-system : lando
2020-01-20 16:18:20 +00:00
John Dai 4e3e74af76 Bug 1598752 - Provide useful information while constructing JSWindowActor; r=nika
Differential Revision: https://phabricator.services.mozilla.com/D60170

--HG--
extra : moz-landing-system : lando
2020-01-20 15:20:12 +00:00
Andreas Farre 68ac0a2401 Bug 1583863 - Part 3: WindowContext using SyncedContext, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D56743

--HG--
extra : moz-landing-system : lando
2020-01-20 14:58:52 +00:00
Andreas Farre e19bb50a53 Bug 1583863 - Part 2: BrowsingContext moved to SyncedContext, r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D56742

--HG--
extra : moz-landing-system : lando
2020-01-20 14:57:47 +00:00
Aaron Klotz d0c0679aac Bug 1600663: Hook GV process management into ContentParent; r=geckoview-reviewers,snorp
We need to propagate `ContentParent::MarkAsDead` up to the Android java layer
so that it has a view of the state of content processes that is consistent
with the view of Gecko's content process management.

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

--HG--
extra : moz-landing-system : lando
2020-01-20 07:46:33 +00:00
Valentin Gosu 1e2da20ce2 Bug 1590166 - WindowGlobalChild::Create should call GetCrossOriginOpenerPolicy instead of ComputeCrossOriginOpenerPolicy r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D59360

--HG--
extra : moz-landing-system : lando
2020-01-18 17:14:07 +00:00
Cosmin Sabou 9b6e5f8e66 Backed out changeset 4c303f6ec2e6 (bug 1602898) for browser chrome failures on browser_ssb_windowlocation. 2020-01-18 01:06:34 +02:00
Kris Maglione 036e960542 Bug 1602898: Rename Window.getWindowGlobalChild() to .windowGlobalChild. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D56609

--HG--
extra : moz-landing-system : lando
2020-01-17 21:36:10 +00:00
Luca Greco 1dd72eeb1a Bug 1609110 - Follow up fixes on async process creation. r=Yoric,asuth
Differential Revision: https://phabricator.services.mozilla.com/D59854

--HG--
extra : moz-landing-system : lando
2020-01-17 21:00:44 +00:00
Zibi Braniecki 7790851e27 Bug 1607111 - Use BCP47 lang tags for negotiation in content process. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D60089

--HG--
extra : moz-landing-system : lando
2020-01-17 17:08:33 +00:00
Jean-Yves Avenard 6f389537e2 Bug 1602989 - Remove warning when serialising nsIVariant. r=mattwoodrow
The type doesn't need to be sent across IPC anyway.

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

--HG--
extra : moz-landing-system : lando
2020-01-17 07:54:14 +00:00
alwu c0fb1f5b8e Bug 1606782 - part2 : create media controller via canonical browsing context. r=chunmin,nika
As each media controller corresponds to a tab (a browsing context tree), so the controller's life cycle should be equal to the tab. Currently we use the top-level browsing context to represent a tab, so when that browsing context is being destroyed, we should also destroy the corresponding media controller.

Therefore, `MediaControlService` don't need to have methods to access media controller anymore, we should access media controller directly from the top-level canonical browsing context.

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

--HG--
extra : moz-landing-system : lando
2020-01-16 18:05:14 +00:00
alwu c8deb931b0 Bug 1606782 - part1 : rename controller related functions and member to emphasize that only active controller would be added into the controller list in the service. r=chunmin,bryce
To modify variable and function names to emphasize all media controllers added in the service are active controllers. If the controller doesn't have any controlled media, they won't be added into the service.

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

--HG--
extra : moz-landing-system : lando
2020-01-15 23:26:07 +00:00
pbz 70e1dba79e Bug 1432856 - Extended focus methods in Window.webidl, Client.webidl and Element.webidl to pass CallerType. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D55811

--HG--
extra : moz-landing-system : lando
2020-01-16 14:38:40 +00:00
Dimi Lee 9a9fba7b8d Bug 1609144 - Remove IsInProcess assertion in NotifyContentBlockingEvent r=timhuang
The assertion is added to diagnose whether NotifyContentBlockingEvent
will be called from an in-process document. We have already seen crashes
because of the assertion, so temporarily remove this to avoid people
keep crashing due to this.

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

--HG--
extra : moz-landing-system : lando
2020-01-16 05:30:44 +00:00
Dimi Lee 45330c2c4e Bug 1601310 - Add GetContentBlockingEvents IPC method for the child to retrive content blocking event in the parent. r=timhuang,twisniewski,Ehsan
This patch does the following:
1. Add a WindowGlobalChild IPC method - GetContentBlockingEvents. Documents can use the method
   retrieve content blocking events stored in the parent process.
2. Update nsIDocShell::GetHasTrackingContentBlocked to return a promise.
3. Replace API in report-site-issue to use the promise-based GetHasTrackingContentBlocked API

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

--HG--
extra : moz-landing-system : lando
2019-12-17 11:05:06 +00:00
Anny Gakhokidze 15952e531f Bug 1574017 - Fix console error reporting for postMessage, r=peterv
1. Rename mCallerDocumentURI field of PostMessageEvent to mCallerURI as we
might not always have a document, e.g. when we have a sandbox.
2. When we neither have caller's inner window (and thus we have no caller's
window ID) nor caller's URI, use script location as a source name for the error
object when reporting errors to console.
3. When the caller of postMessage has its window in a different process, pass along
the caller's window ID so that the error can be reported correctly.

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

--HG--
extra : moz-landing-system : lando
2020-01-15 20:20:31 +00:00
Dimi Lee 738045c53b Bug 1600896 - P3. Remove nsIRemoteTab::getContentBlockingLog r=timhuang,Ehsan
Depends on D55780

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

--HG--
extra : moz-landing-system : lando
2019-12-17 11:04:58 +00:00
Dimi Lee 96dd11aa0c Bug 1600896 - P1. Add contentBlockingLog attribute to WindowGlobalActors.webidl r=timhuang,Ehsan
This allows us to access contentBlockingLog in the parent process
through a WindowGlobalParent object.

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

--HG--
extra : moz-landing-system : lando
2019-12-17 11:31:28 +00:00
Mihai Alexandru Michis 4345a38d0d Backed out 9 changesets (bug 1607791, bug 1605566) for causing multiple wpt failures.
CLOSED TREE

Backed out changeset 39f34852842e (bug 1605566)
Backed out changeset 3427a92445c8 (bug 1605566)
Backed out changeset 36631ec96f1f (bug 1605566)
Backed out changeset 554b2bdce66c (bug 1605566)
Backed out changeset 37026beadbd8 (bug 1605566)
Backed out changeset f15835338319 (bug 1607791)
Backed out changeset 4c92f506cf62 (bug 1607791)
Backed out changeset 80707bcc8427 (bug 1607791)
Backed out changeset 75bc7533c899 (bug 1607791)
2020-01-15 13:45:33 +02:00
Andrea Marchesini 3ad8ed45ed Bug 1605566 - MessagePort + wasm - part 4 - Implement RefMessageBodyService, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D59615

--HG--
extra : moz-landing-system : lando
2020-01-15 10:01:24 +00:00
Andrea Marchesini a7fa32643f Bug 1605566 - MessagePort + wasm - part 3 - MessagePort serializes objects using MessageData union, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D59614

--HG--
extra : moz-landing-system : lando
2020-01-15 10:01:11 +00:00
David Teller d2634c2e40 Bug 1607530 - Fixing lifetime issues in promise closures;r=nika
Differential Revision: https://phabricator.services.mozilla.com/D59092

--HG--
extra : moz-landing-system : lando
2020-01-14 14:08:02 +00:00
Dimi Lee 1a3ae49197 Bug 1600878 - P1. Add contentBlockingEvent attribute to WindowGlobalActors.webidl r=timhuang,Ehsan
This allows us to access contentBlockingEvents in the parent process
through a WindowGlobalParent object.

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

--HG--
extra : moz-landing-system : lando
2019-12-17 11:25:25 +00:00
Eric Rahm 78ee6675cf Bug 1606187 - Part 2b: Update users of nsClassHashtable to handle UniquePtr differences r=KrisWright,froydnj
Differential Revision: https://phabricator.services.mozilla.com/D59042

--HG--
extra : moz-landing-system : lando
2020-01-13 19:18:56 +00:00
Tim Huang e30b25b1ed Bug 1599043 - Part 8: Remove the unnecessary OnContentBlockingEvent event in PBrowser. r=dimi,Ehsan
The OnContentBlockingEvent is no longer needed once we make the
OnContentBlockingEvent parent only.

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

--HG--
extra : moz-landing-system : lando
2020-01-13 14:08:53 +00:00
Tim Huang ad653f2ab0 Bug 1599043 - Part 5: Add an IPC message to allow content process to notify the OnContentBlockingEvent in the parent. r=dimi,Ehsan
This patch adds an IPC message which allows content process to notify
the OnContentBlockingEvent in the parent process. This is needed because
there are some situations that the content blocking happens in content
processes, so we need to tell the parent process to notify it. Such as,
AntiTrackingCommon::AntiTrackingCommon::AddFirstPartyStorageAccessGrantedFor().

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

--HG--
extra : moz-landing-system : lando
2020-01-13 14:08:25 +00:00
Tim Huang d06db272c2 Bug 1599043 - Part 2: Allow the WindowGlobalParent to send OnContentBlockingEvent in parent. r=dimi,Ehsan
This patch makes the WindowGlobalParent to be able to send the
OnContentBlockingEvent in the parent process.

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

--HG--
extra : moz-landing-system : lando
2020-01-13 14:07:02 +00:00
Tim Huang a30de0e0a9 Bug 1599043 - Part 1: Add a ContentBlockingLog into the WindowGlobalParent r=dimi,Ehsan
This adds a ContentBlockingLog into the WindowGlobalParent. This
ContentBlockingLog is bascially a copy of the log in the content
process. This log in parent is needed for the OnContentBlockingEvent in
parent process since we need an overview of the content blocking events
for OnContentBlockingEvent. And the ContentBlockingLog exits in the
content process in this stage, so we need to maintain a copy of it to
get the overview of the blocking events in parent.

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

--HG--
extra : moz-landing-system : lando
2020-01-13 14:06:50 +00:00
Emilio Cobos Álvarez aaecc96d81 Bug 1588791 - Make fission iframes honor and deal with the scrolling attribute. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D59630

--HG--
extra : moz-landing-system : lando
2020-01-13 11:30:44 +00:00
Emilio Cobos Álvarez 58cf568b3a Bug 1588791 - Cleanup threading of OwnerShowInfo. r=mattwoodrow
Right now we do the same thing in two pretty different code paths... That's not
great, so unify them.

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

--HG--
extra : moz-landing-system : lando
2020-01-13 11:30:36 +00:00
Ciure Andrei 51c540de3d Backed out 2 changesets (bug 1588791) for causing test_bug369370.html and test_transformed_scrolling_repaints_3.html to permafail
Backed out changeset 52e661ff161d (bug 1588791)
Backed out changeset d59e691bda9e (bug 1588791)
2020-01-13 04:49:16 +02:00
Emilio Cobos Álvarez 6e69347f9f Bug 1588791 - Make fission iframes honor and deal with the scrolling attribute. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D59630

--HG--
extra : moz-landing-system : lando
2020-01-12 22:22:29 +00:00
Emilio Cobos Álvarez 874686801b Bug 1588791 - Cleanup threading of OwnerShowInfo. r=mattwoodrow
Right now we do the same thing in two pretty different code paths... That's not
great, so unify them.

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

--HG--
extra : moz-landing-system : lando
2020-01-12 22:22:20 +00:00
alwu 2cb185805f Bug 1605536 - abort notifying controller if browsing context doesn't exist or has been discarded. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D58308

--HG--
extra : moz-landing-system : lando
2020-01-10 09:13:08 +00:00
Matt Woodrow 4c52496f39 Bug 1603196 - Skip START_STOP notifications from old process being delivered to RemoteWebProgress when process switching during a load. r=kmag,nika
This doesn't block the STATE_START notification from the new process, as we currently have a second start notification (when DocumentChannel redirects to the real channel), so this is unchanged.

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

--HG--
extra : moz-landing-system : lando
2020-01-09 22:31:40 +00:00