Commit Graph

652580 Commits

Author SHA1 Message Date
Barret Rennie
f795631269 Bug 1510569 - Keep track of whether we are navigating to a new URI in nsDocShell r=mconley,kmag,qdot
Previously the `WebNavigationChild` would keep track of when triggering its
`nsIWebNavigation`, `goForward`, `goBack`, `gotoIndex`, and `loadURI` methods.
It's `nsIWebNavigation` instance is always an `nsIDocShell` and as part of
porting `OnStateChange` and `OnLocationChange` events from
`WebProgressChild`/`RemoteWebProgress` to `BrowserChild`/`BrowserParent`, this
informations needs to be available from the `BrowserChild`. As it stands, it is
currently an expando property on the `WebProgressChild`.

Instead of introducing yet another XPCOM interface for the WebProgressChild, we
now store this information directly on the `nsDocShell`. Furthermore, instead
of having the `WebNavigationChild` manage this part of the `nsDocShell`'s
state, we can have the `nsDocShell` manage this state itself so it is always
consistent.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 21:34:54 +00:00
Barret Rennie
6681172c57 Bug 1510569 - Refactor BrowserParent nsIWebProgress handlers r=kmag
The BrowserParent's IPC receive methods for nsIWebProgress events in the
BrowserChild were all doing the same set up to ensure they had the correct
state to process them. This has now been refactored out into a single method.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 21:34:40 +00:00
Barret Rennie
7e22278a50 Bug 1510569 - Only forward nsIWebProgress events to the BrowserParent after the WebProgressChild has loaded r=kmag,mconley
Before the WebProgress event handlers started migrating to C++, the parent
process would only receive WebProgress events after the child process had
finished loading the WebProgressChild script. Now that listeners are registered
much earlier (before the BrowserChild has finished setting up its frame
scripts), the BrowserParent would receive WebProgress events that were
heretofore not received unless the BrowserChild was *very* careful about when
it sent the IPC messages.

However, even while being very careful, the OnStateChange event handler would
always fire events for initial about:blank loads that break a lot of unit
tests. Before porting that event, we are now ensuring that the WebProgressChild
has finished loading before the BrowserChild will send IPC messages for these
events to the BrowserParent.

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

--HG--
extra : moz-landing-system : lando
2019-05-22 17:49:29 +00:00
Agi Sferro
6994cf11f2 Bug 1553371 - Load chrome frameScripts when switching processes. r=snorp
Whenever we switch processes in GeckoView we didn't inject frameScripts.

This change adds a new method `loadInitFrameScript` that is called whenever a
module's new browser is attached to a window so that the frame script is loaded
correctly into the new browser.

This fixes a bug in WebExtension pages where the WebExtension Process Script
would never be notified of a new WebExtension page window, breaking privileged
APIs.

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

--HG--
extra : moz-landing-system : lando
2019-05-22 19:20:54 +00:00
Agi Sferro
92c0a96191 Bug 1553371 - Load moz-extension pages in extension principal. r=snorp
WebExtension can always open their respective WebExtension pages even when the
WebExtension page is not content accessible.

However, this is not true for `tabs.update`, which couldn't link to
WebExtension pages at all.

Similarly, a user should be able to open a WebExtension page directly by typing
the URL.

To fix the above problems we pass the correct `triggeringPrincipal` when
loading such URIs. This change also makes URI typed by the user not use the
`systemPrincipal` anymore but a more restrictive codebase principal local to
the page that's being typed to avoid unintended side-effects. This also makes
the triggering URI always the page for these privileged pages, so we need to
adjust some tests to account for that by loading unprivileged `http` pages
instead.

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

--HG--
extra : moz-landing-system : lando
2019-05-22 19:20:54 +00:00
Lee Salzman
29c7c2b8d3 Backed out changeset 6440419b9d33 (Bug 1533546). r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D32180

--HG--
extra : moz-landing-system : lando
2019-05-22 18:20:09 +00:00
Sebastian Hengst
14f9191527 Backed out changeset e20df5f95e44 (bug 1552434) for devtools failures in devtools/client/framework/test/browser_toolbox_options.js CLOSED TREE 2019-05-22 23:35:43 +02:00
Csoregi Natalia
46226cbf2b Backed out changeset edba72c0c8c6 (bug 1551320) for failures on test_autoselect_project.html. CLOSED TREE 2019-05-22 22:04:10 +03:00
Emilio Cobos Álvarez
300ed443b9 Bug 416771 - Allow window.focus() to switch tabs. r=NeilDeakin,dao CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D31643

--HG--
extra : source : 5acccb49a66840b5c2266edfb7a8953878a2a040
extra : histedit_source : 33a19d54114ef5eda00aefb1c997d6dbcfb40501
2019-05-22 17:21:29 +00:00
Bogdan Tara
e34a09a25c Backed out changeset 5acccb49a668 (bug 416771) for gecko decision bustage CLOSED TREE 2019-05-22 20:38:33 +03:00
Emilio Cobos Álvarez
f11ec3db68 Bug 416771 - Allow window.focus() to switch tabs. r=NeilDeakin,dao
Differential Revision: https://phabricator.services.mozilla.com/D31643

--HG--
extra : moz-landing-system : lando
2019-05-22 17:21:29 +00:00
Ashley Hauck
6a02746c8b Bug 1553543 - Don't touch file if there are no changes. r=arai
Differential Revision: https://phabricator.services.mozilla.com/D32168

--HG--
extra : moz-landing-system : lando
2019-05-22 16:32:20 +00:00
Denis Palmeiro
a559bca492 Bug 1553362 - Add empty spew inline functions for when tracelogger is disabled r=iain
The new trace logger spew routines do not have a corresponding empty inline version for when --disable-trace-logging is used.

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

--HG--
extra : moz-landing-system : lando
2019-05-22 15:59:05 +00:00
Tom Ritter
ccda570925 Bug 1553481 - Filter out pdbs from CPP_UNIT_TEST_BINS so we don't try to strip them r=firefox-build-system-reviewers,dmajor
Differential Revision: https://phabricator.services.mozilla.com/D32141

--HG--
extra : moz-landing-system : lando
2019-05-22 15:08:07 +00:00
Andreas Pehrson
70a3da3e8f Bug 1389983 - Re-enable tests. r=jib
Differential Revision: https://phabricator.services.mozilla.com/D31774

--HG--
extra : moz-landing-system : lando
2019-05-22 14:45:57 +00:00
Nicolas Chevobbe
0f03ba2e09 Bug 1552434 - Move timestamp preference change handler from webconsole-ui to App component. r=rcaliman.
It makes more sense to declare the preference changes in the root
React component, as other components (aboutdebugging, netmonitor, ...)
already do it.
Since we don't want to unmount the App component (which means we
won't fire any componentWillUnmount), we're turning the observer
into a weak referenced one so we don't leak.

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

--HG--
extra : moz-landing-system : lando
2019-05-22 15:30:28 +00:00
shindli
931018bb0c Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-05-22 18:32:55 +03:00
shindli
bdf94edb89 Merge inbound to mozilla-central. a=merge 2019-05-22 18:26:18 +03:00
shindli
163045035c Merge autoland to mozilla-central. a=merge 2019-05-22 18:23:32 +03:00
Emilio Cobos Álvarez
7874fd4a2d Bug 1552636 - Remove eStyleImageType_URL. r=TYLin
It was introduced in bug 1352096 to reduce complexity with Stylo (apparently).

Right now it doesn't look like it reduces any complexity, and it's a bit
annoying with some of the patches that I'm writing at the moment.

So unless there's any objection I think it should go away.

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

--HG--
extra : moz-landing-system : lando
2019-05-22 11:34:23 +00:00
Jonathan Kew
5ee1a7fd40 Bug 1418472 - Flush line-breaks when encountering a Placeholder for an absolutely-positioned frame. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D32023

--HG--
extra : moz-landing-system : lando
2019-05-22 11:33:21 +00:00
Andrew Osmond
774c428cae Bug 1550523 - Ensure that decoding methods for frozen images request the correct frame. r=tnikkel
With WebRender, we had observed that the print preview for animated
images was not displaying correctly. It should display the first frame
but it was showing nothing the first time the preview was opened. Once
the decoded image was available in the cache, it would display
correctly if the preview was reloaded.

The StartDecoding and RequestDecode variants always requested
FRAME_CURRENT for animated images. They should use FRAME_FIRST for
static requests / FrozenImage. Correcting this fixes the print preview.


Differential Revision: https://phabricator.services.mozilla.com/D32033
2019-05-22 06:22:50 -04:00
Brindusan Cristian
952521e616 Backed out changeset fa4c37c31dfd (bug 1550956) as requested by mikedeboer on IRC for causing mach to stop working on Python 2. a=backout 2019-05-22 12:33:23 +03:00
shindli
ae27e42724 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-05-22 12:17:03 +03:00
Brindusan Cristian
2dc620b799 Backed out changeset 1691176e9819 (bug 1553011) for GTest crashes. CLOSED TREE 2019-05-22 08:50:19 +03:00
Haik Aftandilian
42b2325351 Bug 1550771 - Deadlock in SharedMemoryBasic_mach triggered by AV1 playback r=jld
Don't hold gMutex when calling HandleSharePortsMessage() from PortServerThread to avoid deadlock.

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

--HG--
extra : moz-landing-system : lando
2019-05-22 01:33:46 +00:00
Nico Grunbaum
731efc8297 Bug 1553011 - update import of Rust SDP parser - r=drno
update import of Rust SDP parser

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

--HG--
extra : moz-landing-system : lando
2019-05-22 04:30:33 +00:00
Chris Manchester
75b9d34484 Bug 1532329 - Build sccache for macOS as a toolchain task. r=nalexander
Differential Revision: https://phabricator.services.mozilla.com/D31692

--HG--
extra : moz-landing-system : lando
2019-05-22 03:27:23 +00:00
Jared Wein
85a73bedf5 Bug 1553321 - Remove connect-src https and img-src https from about:logins CSP. r=MattN
Differential Revision: https://phabricator.services.mozilla.com/D32087

--HG--
extra : moz-landing-system : lando
2019-05-22 03:20:37 +00:00
Matt Howell
7f16a3b9c6 Bug 1548612 Part 8 - Implement the new stub installer UI design for release/beta. r=agashlin
This patch implements the new stub installer UI design for the official branding
and leaves the other brandings mostly alone. Leaving them entirely alone was not
a goal because it wouldn't have been worth the hacks required, but the layouts
and overall designs should be unchanged. The differences between the two designs
are intended to be driven entirely by the branding files, so that the new design
can be easily expanded to the other channels once art assets exist.

Depends on D31145

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

--HG--
extra : moz-landing-system : lando
2019-05-21 23:29:05 +00:00
Matt Howell
dbcb1ec8a1 Bug 1548612 Part 7 - Add and normalize stub installer UI parameters. r=agashlin
This patch adds a bunch of new defines for stub installer UI parameters that
were previously hard coded or implicit, moves several that were universal into
the branding files, removes several no longer used ones, and changes the names
of some others to match a standard naming convention.

Depends on D31144

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

--HG--
extra : moz-landing-system : lando
2019-05-21 23:29:22 +00:00
Jorg K
86b762eb51 Bug 1553124 - Disable search engine-specific tests for Thunderbird. r=standard8 2019-05-22 00:34:47 +02:00
Noemi Erli
98ff24cc58 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-05-22 06:45:38 +03:00
Emilio Cobos Álvarez
d6c1e69556 Bug 1553227 - followup: fix animation-type-longhand.js. 2019-05-22 02:47:22 +02:00
Kagami Sascha Rosylight
2dd546dac6 Bug 1550956: Import builtins in Python 3 compatible way r=firefox-build-system-reviewers,chmanchester
Differential Revision: https://phabricator.services.mozilla.com/D30790

--HG--
extra : moz-landing-system : lando
2019-05-21 18:38:46 +00:00
Noemi Erli
3156eab2a3 Backed out changeset 52f04e977ce5 (bug 1552998) for xpcshell failures in test_ext_telemetry.js 2019-05-22 03:25:10 +03:00
Ed Lee
2903e9b58d Bug 1553334 - Add experimentation sizing, card actions and bug fixes to Activity Stream r=r1cky
Differential Revision: https://phabricator.services.mozilla.com/D32076

--HG--
extra : moz-landing-system : lando
2019-05-21 23:43:23 +00:00
Sean Feng
cd60ceaea9 Bug 1550606 - Fix a race condition in WPT related to postMessage r=smaug
We used to use 2 rAFs to stop the load event from racing with
onmessage event, but this was not the proper solution and it was
still racy, especially after Bug 1534012 is landed. So we fixed it
by instead letting racy postMessage to be sent, we wait for the
proper postMessage to be sent, and the test would automatically
timeout if the proper postMessage failed to sent.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 19:11:29 +00:00
Noemi Erli
ea4d1bdf44 Backed out changeset aadea84deaeb (bug 1532329) for toolchains bustages CLOSED TREE 2019-05-22 02:40:58 +03:00
Mike Hommey
4a87ec2ddc Bug 1553058 - Remove unused gPageSize case. r=njn
MALLOC_STATIC_PAGESIZE is only set on some platforms. Specifically, it's
not set on ia64 and sparc. Which means the case MALLOC_STATIC_PAGESIZE
&& (sparc || ia64) never happens, and gPageSize is never 8 KiB.

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

--HG--
extra : moz-landing-system : lando
2019-05-21 23:01:21 +00:00
Christoph Kerschbaumer
796a800303 Bug 965637: Move CSP from Principal into Client, part 4: test updates. r=mccr8,jkt
Differential Revision: https://phabricator.services.mozilla.com/D27657

--HG--
extra : moz-landing-system : lando
2019-05-21 23:15:08 +00:00
Christoph Kerschbaumer
30b618ff6e Bug 965637: Move CSP from Principal into Client, part 3: frontend changes. r=Gijs
Differential Revision: https://phabricator.services.mozilla.com/D27656

--HG--
extra : moz-landing-system : lando
2019-05-21 23:15:08 +00:00
Christoph Kerschbaumer
b282f81f84 Bug 965637: Move CSP from Principal into Client, part 2: worker changes. r=baku
Differential Revision: https://phabricator.services.mozilla.com/D27655

--HG--
extra : moz-landing-system : lando
2019-05-21 23:14:50 +00:00
Christoph Kerschbaumer
b633427366 Bug 965637: Move CSP from Principal into Client, part 1: backend changes. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D27654

--HG--
extra : moz-landing-system : lando
2019-05-21 23:14:27 +00:00
Emilio Cobos Álvarez
ca59532ce8 Bug 1553227 - Remove old CSS scroll snap implementation. r=hiro
This will save us some time from figuring out what's the best thing to do in
bug 1552587, so that other patches I have in flight (mainly bug 1552708) can
land, since we cannot add a single byte to nsStyleDisplay right now otherwise.

The code removed here is well isolated and not that complicated, so it seems to
me that should be easy to bring back should we have an emergency (and I commit
to doing that while preserving the nsStyleDisplay size limit if we need to :)).

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

--HG--
extra : moz-landing-system : lando
2019-05-21 22:51:54 +00:00
Jonathan Kew
2ba7f6d756 Bug 1418472 - Add WPT reftests for the abs-pos at line-break issue here. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D32022

--HG--
extra : moz-landing-system : lando
2019-05-21 17:02:21 +00:00
Oana Pop Rus
d71e3be10c Backed out changeset 3c2a368a4c8b (bug 1552464) for xpcshell failures on test_rotate_viewport.js on a CLOSED TREE
--HG--
extra : amend_source : 15c8845b921292468c076b10b0b68c523a835e98
2019-05-22 14:57:46 +03:00
Mathieu Leplatre
ecf5714fea Bug 1548542 - Remove notions of Kinto in blocklists unit tests r=keeler,Gijs
Differential Revision: https://phabricator.services.mozilla.com/D31221

--HG--
extra : moz-landing-system : lando
2019-05-22 11:25:04 +00:00
Kestrel
94d172dfbc Bug 1553385 - Add context fill to about:preferences permanent private browsing mode info icon for dark mode r=dao
Differential Revision: https://phabricator.services.mozilla.com/D32096

--HG--
extra : moz-landing-system : lando
2019-05-22 08:41:31 +00:00
Mathieu Leplatre
8eb7224e54 Bug 1526018 - Initialize PSM clients in their own service r=Gijs,jcj
Differential Revision: https://phabricator.services.mozilla.com/D31603

--HG--
extra : moz-landing-system : lando
2019-05-21 21:14:11 +00:00