Commit Graph

5860 Commits

Author SHA1 Message Date
Valentin Gosu
06334e695a Bug 1530303 - Put CrossOriginOpenerPolicy in BrowsingContext r=nika
Differential Revision: https://phabricator.services.mozilla.com/D23935

--HG--
extra : moz-landing-system : lando
2019-04-09 20:10:13 +00:00
Michael Froman
ac99c1dda6 Bug 1539029 - pt 3 - de-duplicate building cmdline for shared prefs class. r=kmag
Cmd-line params for the SharedPreferenceSerializer was
duplicated in ContentParent and
SocketProcessHost.  Since we'll have a 3rd process (RDD)
using this same code, let's move the repsonsiblity for knowing how to add
these cmdline params into SharedPreferenceSerializer.

Depends on D26567

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

--HG--
extra : moz-landing-system : lando
2019-04-09 21:07:47 +00:00
Cosmin Sabou
fa0cc212b6 Merge mozilla-inbound to mozilla-central. a=merge 2019-04-09 19:24:14 +03:00
Henri Sivonen
95281be87c Bug 1532901 - Fix event.screenX and event.screenY inside out-of-process iframes. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D25582

--HG--
extra : moz-landing-system : lando
2019-04-09 10:26:31 +00:00
Henri Sivonen
b8e3697e3b Bug 1540665 - Propagate chrome flags to out-of-process iframes. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D26500

--HG--
extra : moz-landing-system : lando
2019-04-08 21:22:58 +00:00
Jan Varga
cbaad6cbbc Bug 1542535 - Ensure QuotaManagerService exists before calling AbortOperationsForProcess in ContentParent; r=asuth 2019-04-06 21:11:59 +02:00
Nika Layzell
71352e476f Bug 1542778 - Part 1: Fix clang-format fallout for FakeChannel, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D26545

--HG--
extra : moz-landing-system : lando
2019-04-08 20:30:19 +00:00
Andreas Farre
888908c3cb Bug 1523636 - Create BrowsingContext in nsFrameLoader. r=nika,qdot
Differential Revision: https://phabricator.services.mozilla.com/D25039

--HG--
extra : moz-landing-system : lando
2019-04-08 08:21:40 +00:00
Andreas Farre
56fffce764 Bug 1542204 - Normalize "_blank" to "" before calling SendCreateWindowInDifferentProcess. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D26300

--HG--
extra : moz-landing-system : lando
2019-04-05 20:14:03 +00:00
Andreas Farre
1f89df5c43 Bug 1471598 - Assert valid browsing context modifications. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D25066

--HG--
extra : moz-landing-system : lando
2019-04-05 14:36:24 +00:00
Sylvestre Ledru
03c8e8c2dd Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan
clang-format-8 upstream had some improvements wrt macros
See: https://reviews.llvm.org/D33440
This is why the diff is bigger than usual

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-05 21:41:42 +00:00
Barret Rennie
306f4c39ad Bug 1542183 - Ensure TabChilds always have a TabGroup upon initialization r=nika
Differential Revision: https://phabricator.services.mozilla.com/D26374

--HG--
extra : moz-landing-system : lando
2019-04-05 19:38:27 +00:00
Gijs Kruitbosch
d395728ea0 Bug 1537622 - fix various minor eslint issues in XUL files, r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D24297

--HG--
extra : moz-landing-system : lando
2019-04-05 12:18:24 +00:00
Csoregi Natalia
ba58e936bd Backed out changeset 4ad80127f89f (bug 1519636) for bustage on MarkupMap.h and nsAccessibilityService.cpp. CLOSED TREE 2019-04-05 09:48:19 +03:00
Sylvestre Ledru
d1c1878603 Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan
clang-format-8 upstream had some improvements wrt macros
See: https://reviews.llvm.org/D33440
This is why the diff is bigger than usual

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-04 21:36:16 +00:00
Narcis Beleuzu
24dbe577a5 Backed out changeset 389b6bbd76db (bug 1519636) for bustages on MarkupMap.h . CLOSED TREE 2019-04-05 00:27:56 +03:00
Sylvestre Ledru
399dbd28fe Bug 1519636 - clang-format-8: Reformat recent changes to the Google coding style r=Ehsan
clang-format-8 upstream had some improvements wrt macros
See: https://reviews.llvm.org/D33440
This is why the diff is bigger than usual

# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-04-04 20:12:23 +00:00
Mike Conley
a2494f98e9 Bug 1540845 - Pass the browsing context ID through the event fired when oop frames crash. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D25843

--HG--
extra : moz-landing-system : lando
2019-04-04 13:38:51 +00:00
Andrea Marchesini
10b25d6759 Bug 1539637 - Make cryptomining and fingerprinting annotations use the "strict" list always, r=dimi
Differential Revision: https://phabricator.services.mozilla.com/D25266

--HG--
extra : moz-landing-system : lando
2019-04-04 05:31:44 +00:00
Barret Rennie
9bbc7930d4 Bug 1510569 - Port onRefreshAttempted from WebProgressChild.jsm to C++ r=baku
Differential Revision: https://phabricator.services.mozilla.com/D25650

--HG--
extra : moz-landing-system : lando
2019-04-03 17:32:56 +00:00
Barret Rennie
163ec0ba8b Bug 1510569 - Port onProgressChange notifications inside WebProgressChild.jsm to C++ r=baku
We do not need to handle onProgressChange64 notifications since the TabChild's
web progress events are filtered through an nsBrowserStatusFilter, which
truncates onProgresChange64 event values to 32-bit integers and then calls
onProgressChange.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 17:32:41 +00:00
Barret Rennie
c6fc7a9f0d Bug 1510569 - Implement nsIWebProgressListener2 for TabChild r=baku
Differential Revision: https://phabricator.services.mozilla.com/D25648

--HG--
extra : moz-landing-system : lando
2019-04-03 17:32:21 +00:00
Barret Rennie
9c76d87929 Bug 1510569 - Port onStatusChange notifications inside WebProgressChild.jsm to C++ r=baku
Differential Revision: https://phabricator.services.mozilla.com/D25446

--HG--
extra : moz-landing-system : lando
2019-04-03 17:31:54 +00:00
Barret Rennie
779f6e3bbf Bug 1510569 - Reconstruct nsIWebProgress and nsIRequest for onContentBlockingEvent in TabParent r=Ehsan
Now that we have access to the RemoteWebProgress from the TabParent and can
construct RemoteWebProgress and RemoteWebProgressRequests in C++, we can
reconstruct the RemoteWebProgress and RemoteWebProgressRequest in the TabParent
instead of RemoteWebProgressManager. This improves the API for nsIBrowser and
RemoteWebProgressManager, removing the need for the
`callWebProgressContentBlockingEventListeners` method in both. It also means we
won't need to implement `callWebProgress*Listeners` for methods on nsIBrowser
and RemoteWebProgressManager for all other nsIWebProgress events.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 17:31:41 +00:00
Barret Rennie
2217e5192a Bug 1510569 - Reimplement RemoteWebProgressRequest as an XPCOM component in C++ r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24940

--HG--
extra : moz-landing-system : lando
2019-04-03 17:31:07 +00:00
Barret Rennie
0196dec3ba Bug 1510569 - Add missing includes and using namespace declarations r=Ehsan
WindowGlobalChild.cpp was relying on several headers already included by other
files in its unified build translation unit, but the addition of the
RemoteWebProgressRequest in the next change bumps them into another translation
unit and breaks the build.

The missing `#include` and `using namespace` statements have been added,
allowing builds to succeed.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 17:31:00 +00:00
Barret Rennie
611cae7854 Bug 1510569 - Reimplement RemoteWebProgress as an XPCOM component in C++ r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D24811

--HG--
extra : moz-landing-system : lando
2019-04-03 17:30:40 +00:00
Barret Rennie
c8a6795173 Bug 1510569 - Add missing includes to WindowGlobalParent.cpp r=Ehsan
Due to adding a new CPP file in the next change, the unified build fails due to
files being shuffled around between translation units. This change fixes the
build.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 17:30:27 +00:00
Barret Rennie
f5743d5bf7 Bug 1510569 - Include innerDOMWindowID in the WebProgressData sent from TabChild to TabParent r=baku
Differential Revision: https://phabricator.services.mozilla.com/D24808

--HG--
extra : moz-landing-system : lando
2019-04-03 17:29:58 +00:00
Barret Rennie
203367c7de Bug 1510569 - Ensure TabChild's IPC actor is not dead before sending OnContentBlockingEvent message to TabParent r=nika
Differential Revision: https://phabricator.services.mozilla.com/D24807

--HG--
extra : moz-landing-system : lando
2019-04-03 17:29:40 +00:00
Barret Rennie
08dfb4b9c8 Bug 1510569 - Use Maybe<T> directly in TabChild::PrepareProgressListenerData r=nika,Alex_Gaynor
Differential Revision: https://phabricator.services.mozilla.com/D24806

--HG--
extra : moz-landing-system : lando
2019-04-03 17:29:28 +00:00
Barret Rennie
27a7e12ecc Bug 1510569 - Filter TabChild nsIWebProgress events through a nsBrowserFilter r=kmag
The implementation of WebProgressChild.jsm filters all nsIWebProgress events
through an nsBrowserFilter. We need to do this in the TabChild as well, but
TabChild currently only handles onContentBlockingEvent, for which
nsBrowserFilter only calls the underlying listener.

We also unregister the progress listener much earlier in TabChild::Destroy as
this method causes OnStateChange event to be triggered later on, which we are
not interested in capturing.

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

--HG--
extra : moz-landing-system : lando
2019-04-03 17:29:15 +00:00
Ciure Andrei
58c8915ecd Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-04-04 00:57:38 +03:00
Ryan Hunt
7f35fd333c Bug 1516425 - Hold a strong reference to TabParent from nsFrameLoader and make TabParent cycle collected. r=smaug
Currently TabParent is refcounted, but nsFrameLoader hold a weak pointer. The pointer
should be cleared out when the TabParent is destroyed, but that's a bit of a footgun
and it's not obvious that we always do this correctly.

Because TabParent holds a reference to a nsFrameLoader and the frame element (which
contains a nsFrameLoader), I think this means we need to cycle collect TabParent.

--HG--
extra : rebase_source : 06e04c2ba8ea81d996d2688a1b0064aa37f45bbc
2019-04-02 10:35:51 -04:00
Eden Chuang
72b79c6fbd Bug 1442778 - Add "chromeContext" parameter to console API and console service messages. r=smaug
1. Adding a new attribute chromeContext in ConsoleEvent
2. Adding a new boolean attribute isFromChromeContext in nsIConsoleMessage
3. Sending IsFromChromeContext to the parent process

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

--HG--
extra : moz-landing-system : lando
2019-04-01 22:42:34 +00:00
Henri Sivonen
65067c9c6d Bug 1524975 - Split cross-process IME committing and blurring out of IMEStateManager::OnChangeFocusInternal(). r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D23655

--HG--
extra : moz-landing-system : lando
2019-04-01 07:22:54 +00:00
Michael Froman
23cebd517c Bug 1540587 - remove patch for 1539030 to fix decoding on additional tabs. r=jya
The patch for 1539030 didn't do what I'd hoped, and caused issues
with decoding av1 on additional tabs so I'm removing the "fix".

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

--HG--
extra : moz-landing-system : lando
2019-04-03 03:12:35 +00:00
Bogdan Tara
ab147e79ea Backed out changeset b211dc904649 (bug 1540845) for mingw bustages CLOSED TREE 2019-04-03 05:52:02 +03:00
Mike Conley
ac7e3c2732 Bug 1540845 - Pass the browsing context ID through the event fired when oop frames crash. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D25843

--HG--
extra : moz-landing-system : lando
2019-04-02 21:53:36 +00:00
Sylvestre Ledru
ef0bfc3822 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-03-31 15:12:55 +00:00
Cameron McCormack
3357fd0d3a Bug 1474793 - Part 13: Build and use shared memory user agent style sheets in parent and content processes. r=emilio,kmag
MozReview-Commit-ID: JasksR7F22Z

Depends on D17199

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

--HG--
extra : moz-landing-system : lando
2019-03-30 00:23:49 +00:00
Mike Conley
2db690d857 Bug 1538987 - Follow-up: skip incrementing the DOM_CONTENTPROCESS_OS_PRIORITY_RAISED probe for the initialization case. r=gsvelto
Differential Revision: https://phabricator.services.mozilla.com/D25440

--HG--
extra : moz-landing-system : lando
2019-03-29 22:07:13 +00:00
Gabriele Svelto
75f09dd912 Bug 1536850 - Properly detect when the browser is shutting down to avoid taking content process minidumps too late r=Ehsan
This code was already present but it had two flaws: the first one was that the
variable used to prevent minidumps from being taken when shutting down was not
being initialized which caused it to be true most of the time and thus
prevented captures even in valid scenarios. The second was that we relied on
the "profile-before-change" change event to detect shutdown but this often
happens after we've already started closing tabs and shutting down processes
thus the minidump generation would often race against it.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 19:17:56 +00:00
Haik Aftandilian
cb205c1542 Bug 1537940 - [Mac] With content sandbox disabled, processes "Not Responding" in Activity Monitor r=Alex_Gaynor
Make sure CGSShutdownServerConnections() is called regardless of whether or not the sandbox is enabled.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 13:47:44 +00:00
Masayuki Nakano
de2d589e58 Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio
This makes `Document::GetShell()` return `PresShell*` instead of `nsIPresShell`.

Additonally, "shell" is unclear ("docshell" vs. "presshell").  Therefore, this
also renames `Document::GetShell()` to `Document::GetPresShell()`.

Similarly, some other method names of `Document` are also renamed from
`*Shell*` to `*PresShell*`.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 15:12:47 +00:00
Dorel Luca
5a0fa68b78 Backed out 3 changesets (bug 1540015) for build bustage. CLOSED TREE
Backed out changeset 7b71c9da0214 (bug 1540015)
Backed out changeset 5723ddbc5c44 (bug 1540015)
Backed out changeset 9561d2c36fa5 (bug 1540015)
2019-03-29 16:14:26 +02:00
Masayuki Nakano
9273f25ce2 Bug 1540015 - part 3: Rename Document::GetShell() to Document::GetPresShell() and make it return PresShell* rather than nsIPresShell* r=smaug,emilio
This makes `Document::GetShell()` return `PresShell*` instead of `nsIPresShell`.

Additonally, "shell" is unclear ("docshell" vs. "presshell").  Therefore, this
also renames `Document::GetShell()` to `Document::GetPresShell()`.

Similarly, some other method names of `Document` are also renamed from
`*Shell*` to `*PresShell*`.

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

--HG--
extra : moz-landing-system : lando
2019-03-29 13:09:26 +00:00
Gurzau Raul
ed07da8648 Backed out 4 changesets (bug 1525427) for failing at /browser_browsingContext-embedder.js on a CLOSED TREE.
Backed out changeset 0227a59eba8e (bug 1525427)
Backed out changeset 18fba79d8671 (bug 1525427)
Backed out changeset f7c82615ea05 (bug 1525427)
Backed out changeset 4a210c9266ed (bug 1525427)
2019-03-28 20:54:28 +02:00
Nika Layzell
29c843ab84 Bug 1525427 - Part 4: Correctly tear down TabParent within BrowserBridgeParent, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D25184

--HG--
extra : moz-landing-system : lando
2019-03-28 10:08:43 +00:00
Nika Layzell
10fb5cf828 Bug 1525427 - Part 1: Expose WindowGlobalParent & Element on BrowsingContext, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D25181

--HG--
extra : moz-landing-system : lando
2019-03-28 15:03:54 +00:00