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

6386 Коммитов

Автор SHA1 Сообщение Дата
Matt Woodrow 03a47f121f Bug 1593560 - Allow data urls with DocumentChannel. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D51547

--HG--
extra : moz-landing-system : lando
2019-11-06 22:37:06 +00:00
Dorel Luca c780ae512f Backed out changeset b2026c2b563f (bug 1594529) for Browser-chrome failures in workspace/build/src/docshell/base/nsDocShell. CLOSED TREE 2019-11-07 03:45:01 +02:00
Jonathan Kingston e3e23ebd3f Bug 1594529 - Adding in asserts for LoadURI to ensure we have the correct contentPolicyType r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D52088

--HG--
extra : moz-landing-system : lando
2019-11-06 23:47:06 +00:00
Dorel Luca 514f02d734 Backed out changeset eaee8979fdc4 (bug 1594529) for Browser-chrome in toolkit/components/passwordmgr/test/browser/browser_doorhanger_crossframe.js. CLOSED TREE 2019-11-07 02:12:16 +02:00
Kris Maglione c4b5d4bfb9 Bug 1594529: Infer nsDocShell::IsFrame from BrowsingContext. r=nika
This fixes the content policy type for document loads in these frames, where
the explicit mIsFrame flag was not set, due to DocShell creation taking a
different code path in remote frames than in in-process frames.

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

--HG--
extra : moz-landing-system : lando
2019-11-06 20:34:36 +00:00
Coroiu Cristina cbdbc8bc4b Backed out 7 changesets (bug 1593560) for crashtest failures at tests/layout/base/crashtests/446328.html on a CLOSED TREE
Backed out changeset 7dfae085a4cb (bug 1593560)
Backed out changeset 9842c80c98d8 (bug 1593560)
Backed out changeset d67a10437af7 (bug 1593560)
Backed out changeset 3e3948e9531c (bug 1593560)
Backed out changeset a7d04e276b44 (bug 1593560)
Backed out changeset 9f52c9f6dc54 (bug 1593560)
Backed out changeset 90572c49d464 (bug 1593560)
2019-11-07 00:32:53 +02:00
Matt Woodrow b332b7b789 Bug 1593560 - Allow data urls with DocumentChannel. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D51547

--HG--
extra : moz-landing-system : lando
2019-11-06 18:22:00 +00:00
Andreas Tolfsen 243b658475 bug 1549708: docshell: add nsIDocShell.isForceReloading; r=bzbarsky
Exposes a new nsIDocShell API, isForceReloading, to determine if
the loaded document was force-reloaded or not.

It relies on the underlying behaviour of nsDocShell::IsForceReloading(),
which again relies on nsDocShell::IsForceReloadType(mLoadType).

The getter is used in the remote agent to test that
Page.reload({ignoreCache: true}) works as intended.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 13:28:23 +00:00
Sebastian Hengst a5193f0aaa Merge mozilla-central to autoland. a=merge CLOSED TREE 2019-11-06 15:00:06 +01:00
Sebastian Hengst 401f1ce710 Merge mozilla-inbound to mozilla-central. a=merge 2019-11-06 14:54:44 +01:00
Emilio Cobos Álvarez df7e6010eb Bug 1593690 - Start visited queries from an idle timer. r=mak,lina
Getting visited colors is relatively low priority during page load. GeckoView
was using a 250ms timer, which was somewhat arbitrary.

If this turns out not to be acceptable for desktop, we can change it to a higher
priority timer.

This enables batching queries from the content process. The lesser priority of
the queries, plus the batching that this enables on the content process I hope
will make a dent on the performance regression that bug 1506842 introduces
as-is.

We should probably introduce batching in the other direction too, both of those
are potential follow-up work.

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

--HG--
extra : moz-landing-system : lando
2019-11-06 12:10:59 +00:00
Andreas Farre 1cf2611bf8 Bug 1582716 - Remove nsDocShell::GetIsOnlyToplevelInTabGroup. r=nika
We can remove isOnlyToplevelInTabGroup entirely since we have
BrowsingContext/BrowsingContextGroup exposed through
chrome-webidl. Checking if a browsing context is the only top level
(auxilliary or otherwise) is only a matter of checking that there
isn't a parent, and that the size of the browsing context group is 1.

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

--HG--
extra : moz-landing-system : lando
2019-11-06 10:54:49 +00:00
Brendan Dahl eafc9e3293 Bug 1470510 - Rename nsXULWindow and nsIXULWindow to AppWindow and nsIAppWindow. r=smaug
nsXULWindow is no longer XUL specific and is somewhat confusing name.

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

--HG--
rename : xpfe/appshell/nsXULWindow.cpp => xpfe/appshell/AppWindow.cpp
rename : xpfe/appshell/nsXULWindow.h => xpfe/appshell/AppWindow.h
rename : xpfe/appshell/nsIXULWindow.idl => xpfe/appshell/nsIAppWindow.idl
extra : moz-landing-system : lando
2019-11-05 17:56:28 +00:00
Dorel Luca c8d81d0c68 Bug 1586686 = Disable test_triggeringprincipal_iframe_iframe_window_open.html on Linux64-fis-debug-webrender for frequent failures r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D51634

--HG--
extra : moz-landing-system : lando
2019-11-04 20:50:07 +00:00
Mihai Alexandru Michis b819bd25aa Backed out 2 changesets (bug 1470510) for causing bustages in widget/cocoa/nsChildView.mm CLOSED TREE
Backed out changeset a343f30c34a3 (bug 1470510)
Backed out changeset 4da64790094d (bug 1470510)

--HG--
rename : xpfe/appshell/nsIAppWindow.idl => xpfe/appshell/nsIXULWindow.idl
rename : xpfe/appshell/AppWindow.cpp => xpfe/appshell/nsXULWindow.cpp
rename : xpfe/appshell/AppWindow.h => xpfe/appshell/nsXULWindow.h
2019-11-05 09:24:26 +02:00
Brendan Dahl 0c0da7791e Bug 1470510 - Rename nsXULWindow and nsIXULWindow to AppWindow and nsIAppWindow. r=smaug
nsXULWindow is no longer XUL specific and is somewhat confusing name.

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

--HG--
rename : xpfe/appshell/nsXULWindow.cpp => xpfe/appshell/AppWindow.cpp
rename : xpfe/appshell/nsXULWindow.h => xpfe/appshell/AppWindow.h
rename : xpfe/appshell/nsIXULWindow.idl => xpfe/appshell/nsIAppWindow.idl
extra : moz-landing-system : lando
2019-11-04 23:37:31 +00:00
Peter Van der Beken 9c3b7900e5 No bug - Reformat testcases in docshell/test. r=me
--HG--
extra : rebase_source : 07436dac998b1f6e3c722a6bb432aebc04590332
extra : source : fc144a705ce9b9a8b885447fb4c168f878ca77d3
extra : histedit_source : d85e30a64c6286d762262a7344dd3cc73ede3d4f
2019-11-04 14:28:08 +01:00
Peter Van der Beken f807f9d0a0 Bug 1593183 - Restore the AbandonBFCacheEntry call that bug 1536471 removed. r=annyG
Differential Revision: https://phabricator.services.mozilla.com/D51359

--HG--
extra : rebase_source : bfa37a8296131acb2d55537820b95545cd545b05
extra : source : 199ada1714a27bf5635bf479a0f1b8f73b4cb78a
extra : histedit_source : bdb3cb1326ed5cf864d2b37b77d9098bbe289fac
2019-10-31 20:24:19 +01:00
Peter Van der Beken 20333f0715 Bug 1591899 - Make various docshell tests work with session history in the parent turned off. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50791

--HG--
extra : rebase_source : e8441d50b7bdc59933e5adc6430b01039e775515
extra : source : c24e9ca249b1d21e20f3c99cb8ae752c441e4b86
extra : histedit_source : e4071f2be4c58baef0f26303d5a16f985fea8506
2019-10-15 09:25:03 +02:00
Peter Van der Beken 8ed0cb2ea7 Bug 1588491 - Associate session history entries with a session history object from creation. Continue to allow docshells to create session history entries even if the root docshell doesn't have a session history object. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50574

--HG--
extra : rebase_source : 0381ae4297820f92caa5a77f588c9372093c8315
extra : source : ebb01f79e94a182e4886c4af5b0f27f5b7a41c4e
extra : histedit_source : 4010d5a26f2fad681984e76718112d657d2e5fa1
2019-10-24 09:17:19 +02:00
Peter Van der Beken b6d4b5e93c Bug 1588491 - Associate session history entries with a session history object from creation. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49170

--HG--
extra : rebase_source : bc4c6e8cea0de7e85ae78ffb3ce09a7465e61b4a
extra : amend_source : 956bf8fa227e613b7f816dd5af9029ed24ba2c46
extra : source : 2d4b06fe1f429eec844cdeba8a7faaa63bfc25ab
extra : histedit_source : a2345826c7f94311ee57d805bf3ac9bed2e12ea7
2019-10-17 20:03:49 +02:00
Dorel Luca 0207ce5451 Backed out 2 changesets (bug 1470510) for build bustage on /build/src/widget/cocoa/nsChildView.mm. CLOSED TREE
Backed out changeset 5967bf633574 (bug 1470510)
Backed out changeset 067a556bb614 (bug 1470510)

--HG--
rename : xpfe/appshell/nsIAppWindow.idl => xpfe/appshell/nsIXULWindow.idl
rename : xpfe/appshell/AppWindow.cpp => xpfe/appshell/nsXULWindow.cpp
rename : xpfe/appshell/AppWindow.h => xpfe/appshell/nsXULWindow.h
extra : amend_source : 752d828c6a0726c3f2df57a25741e38b36b75d6b
2019-11-04 19:18:56 +02:00
Brendan Dahl 247b257cfa Bug 1470510 - Rename nsXULWindow and nsIXULWindow to AppWindow and nsIAppWindow. r=smaug
nsXULWindow is no longer XUL specific and is somewhat confusing name.

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

--HG--
rename : xpfe/appshell/nsXULWindow.cpp => xpfe/appshell/AppWindow.cpp
rename : xpfe/appshell/nsXULWindow.h => xpfe/appshell/AppWindow.h
rename : xpfe/appshell/nsIXULWindow.idl => xpfe/appshell/nsIAppWindow.idl
extra : moz-landing-system : lando
2019-11-04 16:52:35 +00:00
Nika Layzell 89c099a0fe Bug 1590908 - Part 1: Move parent-only LoadURI method to CanonicalBrowsingContext, r=kmag
These methods are only callable from the parent process, so it doesn't make
sense to have the method available driectly on BrowsingContext.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 15:05:47 +00:00
Emilio Cobos Álvarez 5949af2c3b Bug 1591717 - Add a pref to notify of unvisited uris in the history service. r=mak,lina
Behind a pref to ensure that we can turn this off pretty easily if it has perf
impact.

I want to leave the repainting stuff to another bug to land separately, to track
potential (though I hope not!) perf regressions more easily.

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

--HG--
extra : moz-landing-system : lando
2019-11-04 13:28:58 +00:00
Dragana Damjanovic b47c2dc48a Bug 1581637 - Part 2 - Add NS_ERROR_NET_HTTP3_PROTOCOL_ERROR error. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D46647

--HG--
extra : moz-landing-system : lando
2019-11-01 14:55:54 +00:00
Nicholas Nethercote a518709339 Bug 1587162 - Fix UBSAN complaints about pref callbacks. r=erahm
Lots of these callbacks have a non-`void*` final parameter, which UBSAN
complains about. This commit changes them to have a `void*` parameter.

This requires undoing the machinery added in the first two commits of bug
1473631: `TypePrefChangeFunc` and `PREF_CHANGE_METHOD`. The resulting code is
simpler (which is good) and more boilerplate-y (which is bad) but avoids the
undefined behaviour (which is good).

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

--HG--
extra : moz-landing-system : lando
2019-11-01 02:57:20 +00:00
Paul Bone cf2f204b52 Bug 1588412 - (part 2) moz:// documents should use documentchannel r=mattwoodrow
the URL moz://a redirects to mozilla's website, Because it redirects to
https we want to use documentchannel.

Depends on D49100

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

--HG--
extra : moz-landing-system : lando
2019-10-31 18:36:56 +00:00
Cosmin Sabou 05894c8cec Backed out changeset 36a8c8887629 (bug 1588220) for causing a spike in browser chrome failures (eg: Bug 1592741).
--HG--
extra : rebase_source : 5c6e4a7f59d9cdce866139699e2257ffd801d926
2019-10-31 14:53:40 +02:00
Christoph Kerschbaumer e8e2dc31b7 Bug 1584998: Make x-frame-options work with fission enabled. r=jkt,farre,johannh,flod
Differential Revision: https://phabricator.services.mozilla.com/D50588

--HG--
extra : moz-landing-system : lando
2019-10-31 08:28:35 +00:00
Andrew McCreight 2b7c6b4c81 Bug 1592465 - Modernize browser_bug343515.js. r=bzbarsky
I rewrote BrowserUtils.addContentEventListener(), and that caused an
intermittent failure in browser_bug343515.js. The use of
addContentEventListener in the test is questionable, and the test as a
whole is old, so I freshened it up.

Instead of nShotsListener (and oneShotListener, which is a special
case of that) which waits for a hard coded number of load events to
fire to ensure that a page and its subframes are all loaded, I use
BrowserTestUtils.browserLoaded().

Instead of waitForPageshow, which runs a script in the content process
that waits for an event, it uses BrowserTestUtils.waitForContentEvent,
which does the same thing in a hopefully more resilient fashion.

The largest change in terms of number of characters changed is that I
rewrote the test so that it is written inside of a single add_task
async function, instead of being split into a chain of async
functions. I also used await to flatten a lot of .then() chained
things.

I fixed up some variable shadowing. There was some trickiness around
shadowed variable names being used as field names, so I introduced an
intermediate 'data' variable to hold the structure.

Finally, I call BrowserTestUtils.removeTab() instead of calling
removeTab() directly on the browser. I figured that was probably
better, though maybe it does not matter.

I added a check after each step that the URI is correct, where
missing, which would have caught a bug in an earlier version of this
patch.

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

--HG--
extra : moz-landing-system : lando
2019-10-31 02:47:08 +00:00
Andreea Pavel 8846cf3d21 Backed out 13 changesets (bug 1581637) for xpchell failures at test_anonymous-coalescing.js on a CLOSED TREE
Backed out changeset 3a458217248d (bug 1581637)
Backed out changeset a5df33ec7393 (bug 1581637)
Backed out changeset c5d8950b4a4b (bug 1581637)
Backed out changeset 97ff4a06c2da (bug 1581637)
Backed out changeset 496ec0c5a60f (bug 1581637)
Backed out changeset 63b7f1ff1714 (bug 1581637)
Backed out changeset 6b80553abc74 (bug 1581637)
Backed out changeset 6b6b75fbec7f (bug 1581637)
Backed out changeset f09b9a4ba633 (bug 1581637)
Backed out changeset 21b721e37d39 (bug 1581637)
Backed out changeset 58ca75a25253 (bug 1581637)
Backed out changeset c28174eaccbe (bug 1581637)
Backed out changeset e6ff3db0a421 (bug 1581637)
2019-10-31 02:45:42 +02:00
Dragana Damjanovic 7595affeb8 Bug 1581637 - Part 2 - Add NS_ERROR_NET_HTTP3_PROTOCOL_ERROR error. r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D46647

--HG--
extra : moz-landing-system : lando
2019-10-30 20:52:36 +00:00
Kashav Madan c39158719d Bug 1582531 - Update fission annotations for tests that pass, r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D50507

--HG--
extra : moz-landing-system : lando
2019-10-30 21:51:22 +00:00
Razvan Maries dc147d06b0 Backed out changeset 5f185a11889b (bug 1584998) for perma fails on browser_bug593387.js. CLOSED TREE 2019-10-30 23:26:01 +02:00
Nika Layzell 25a85c2659 Bug 1589342 - Ensure BrowsingContext is not discarded after new process spawn, r=farre
Differential Revision: https://phabricator.services.mozilla.com/D50991

--HG--
extra : moz-landing-system : lando
2019-10-30 17:43:15 +00:00
Christoph Kerschbaumer 36376205fb Bug 1584998: Make x-frame-options work with fission enabled. r=jkt,farre,johannh
Differential Revision: https://phabricator.services.mozilla.com/D50588

--HG--
extra : moz-landing-system : lando
2019-10-30 17:54:36 +00:00
Daniel Varga 617d42c7ed Backed out changeset ac8f6632f7e0 (bug 1584998) on request by dev. On a CLOSED TREE 2019-10-30 19:33:29 +02:00
Ehsan Akhgari 5b7ceaf11d Bug 1528115 - Remove support for the hidden private window; r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D51099

--HG--
extra : moz-landing-system : lando
2019-10-30 15:35:31 +00:00
Kris Maglione 00bef42aff Bug 1588220: Keep track of last active inner window when BrowsingContext is discarded. r=bzbarsky
Any number of outer windows may be attached to a BrowsingContext over its
lifetime. While the BrowsingContext is alive, it's easy to keep track of which
of these is active, and therefore which of its inner windows is active. After
it has been discarded, though, it discards its docShell reference, so all we
can tell about an inner window is whether it is active for its own outer
window, but not whether it should be considered active for its
BrowsingContext.

This patch updates the BrowsingContext detach logic to store a flag on the
current inner window recording that it was active when its BrowsingContext was
detached, and then later checks that flag to determine if it is the current
window for a detached BrowsingContext.

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

--HG--
extra : moz-landing-system : lando
2019-10-30 17:22:37 +00:00
Christoph Kerschbaumer 9c55479432 Bug 1584998: Make x-frame-options work with fission enabled. r=jkt,farre,johannh
Differential Revision: https://phabricator.services.mozilla.com/D50588

--HG--
extra : moz-landing-system : lando
2019-10-30 14:47:19 +00:00
Kashav Madan 498ac84e23 Bug 1590239 - Send a "browsing-context-discarded" notification when detaching, r=nika
Differential Revision: https://phabricator.services.mozilla.com/D50520

--HG--
extra : moz-landing-system : lando
2019-10-29 17:15:29 +00:00
Christoph Kerschbaumer 78b7848da6 Bug 1592201: Enable test_bug13871.html with fission enabled. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50905

--HG--
extra : moz-landing-system : lando
2019-10-29 14:08:20 +00:00
Olli Pettay 542288fa53 Bug 1396309, try to make file_fragment_handling_during_load.html less racy, r=peterv
The changes try to ensure we haven't really started load process of the new page, just that
there is ongoing active request. history.back() will then only affect to the fragment navigation.

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

--HG--
rename : docshell/test/navigation/file_fragment_handling_during_load_frame2.html => docshell/test/navigation/file_fragment_handling_during_load_frame2.sjs
extra : moz-landing-system : lando
2019-10-28 20:18:24 +00:00
Arthur Iakab 2db2be67ab Bug 1591865 - enable test on fission because it is fixed. a=test-only CLOSED TREE
--HG--
extra : amend_source : 1418e4a510118edec95bb8d5ceff29dba0da869b
2019-10-28 22:20:22 +02:00
Christoph Kerschbaumer 3c9fc41d3d Bug 1591865: Make browser_cross_process_csp_inheritance.js work with fission enabled. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D50842

--HG--
extra : moz-landing-system : lando
2019-10-28 18:55:53 +00:00
Edgar Chen 5c03d212e3 Bug 1587062 - Move SandboxFlags from DocShell to BrowsingContext; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D50663

--HG--
extra : moz-landing-system : lando
2019-10-28 11:48:30 +00:00
Brian Grinstead 432c1a8641 Bug 1587142 - Remove miscellaneous XBL tests r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D50652

--HG--
extra : moz-landing-system : lando
2019-10-25 21:53:33 +00:00
Andreas Farre 15dd2821c0 Bug 1575051 - Part 4: Expose JS stack access check control on FindWithName. r=peterv
Differential Revision: https://phabricator.services.mozilla.com/D49286

--HG--
extra : moz-landing-system : lando
2019-10-25 15:34:30 +00:00
Andreas Farre 6330b1de84 Bug 1575051 - Part 3: Test that nsWindowWatcher can find windows. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D48977

--HG--
extra : moz-landing-system : lando
2019-10-24 14:53:07 +00:00
Andreas Farre 5e8eaa0a0b Bug 1575051 - Part 2: Look in chrome browsing context group when docshell is missing. r=kmag
Also some minor cleanup in nsWindowWatcher, as well as a small fix,
where GetWindowByName forgot to addref its return value (as changed in
Part 1).

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

--HG--
extra : moz-landing-system : lando
2019-10-24 14:53:07 +00:00
Andreas Farre 268d5bd571 Bug 1575051 - Part 1: Remove nsIDocShellTreeItem.findItemWithName. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D46285

--HG--
extra : moz-landing-system : lando
2019-10-24 14:53:07 +00:00
Emilio Cobos Álvarez 68d7ee2298 Bug 1590816 - Remove a useless script blocker and comment from BaseHistory. r=mak
This was copied verbatim from places, but the only thing the code can do is
schedule runnables, which outlive the function, so there's no script that can
run.

Depends on D50502.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 13:02:39 +00:00
Emilio Cobos Álvarez c3dd22054d Bug 1590816 - Don't remove tracked links from GeckoViewHistory. r=lina
And make the assertions consistent with places.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 13:02:35 +00:00
Emilio Cobos Álvarez f8863b0c94 Bug 1590816 - Cleanup some link coloring APIs to make them infallible when appropriate. r=mak
GeckoView does this link clearing stuff (which is somewhat dubious), but always
used to return NS_OK.

The error handling case in Link.cpp was pretty broken anyway (it'd leave the
link marked as registered), so make that infallible, given we fatally assert in
the non-android case.

NotifyVisited is also infallible so make that infallible too.

There's no need to use NS_IMETHOD gunk when not using scriptable XPCOM, and
these functions are not called from script, so make them regular pure-virtual
functions.

Depends on D50478.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 13:02:25 +00:00
Emilio Cobos Álvarez ea222cccf7 Bug 1590816 - Various naming and comment cleanups, as suggested in review comments. r=mak
Depends on D50266

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

--HG--
extra : moz-landing-system : lando
2019-10-25 13:02:23 +00:00
Emilio Cobos Álvarez a4a8b9ded2 Bug 1590816 - Make GetLinkDocument a static function again. r=mak
Now without a duplicate version on another file :)

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

--HG--
extra : moz-landing-system : lando
2019-10-25 13:02:22 +00:00
Emilio Cobos Álvarez 462ada88ab Bug 1590816 - Move NotifyVisited to BaseHistory. r=mak,lina
Differential Revision: https://phabricator.services.mozilla.com/D50265

--HG--
extra : moz-landing-system : lando
2019-10-25 13:02:20 +00:00
Emilio Cobos Álvarez b1cb605f8c Bug 1590816 - Move Register and UnregisterVisitedCallback to BaseHistory. r=mak,lina
Differential Revision: https://phabricator.services.mozilla.com/D50264

--HG--
extra : moz-landing-system : lando
2019-10-25 13:02:18 +00:00
Emilio Cobos Álvarez 7c0ed40aed Bug 1590816 - Move History::DispatchNotifyVisited and related code to BaseHistory. r=mak,lina
Interestingly the android implementation had a potentially serious bug (was
missing a script blocker).

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

--HG--
extra : moz-landing-system : lando
2019-10-25 13:02:16 +00:00
Emilio Cobos Álvarez 32427afa56 Bug 1590816 - Introduce mozilla::BaseHistory, and move tracked URIs and a simple function there. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D50262

--HG--
extra : moz-landing-system : lando
2019-10-25 13:02:08 +00:00
Emilio Cobos Álvarez eee44e6620 Bug 1590816 - Move the tracked URIs hash table to IHistory. r=mak
In preparation for moving all the link coloring code.

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

--HG--
extra : moz-landing-system : lando
2019-10-25 13:02:04 +00:00
Emilio Cobos Álvarez 3538eb4d27 Bug 1590816 - Use the same data structures for GeckoViewHistory and places History. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D50259

--HG--
extra : moz-landing-system : lando
2019-10-25 13:02:02 +00:00
Paul Zuehlcke 7b483252bd Bug 1588461 - Added OA StripAttributes flag for privateBrowsingId. r=johannh,ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D49174

--HG--
extra : moz-landing-system : lando
2019-10-24 14:18:54 +00:00
Tim Huang 336cd10b0e Bug 1590032 - Propagate the first party domain when creating new browser in Fission. r=smaug
In this patch, we add the propagation of the first party domain through
the tabContext while creating OOP browsers. In the window.open() case,
we will propagate the first party domain from the opener's browser parent.
And in the frame case, we will propagate it from the manager of the
browserBridgeParent of the OOP frame.

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

--HG--
extra : moz-landing-system : lando
2019-10-24 08:51:06 +00:00
Matt Woodrow f44ddd9679 Bug 1590748 - Setup result principal URI on the content process LoadInfo as well as the parent process one, since ServiceWorkers depends on it there. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D50372

--HG--
extra : moz-landing-system : lando
2019-10-24 00:46:37 +00:00
Peter Van der Beken 3974b1bd53 Bug 1588489 - Fix for getting the BFCache ID from an entry in the parent process. r=annyG
Differential Revision: https://phabricator.services.mozilla.com/D49169

--HG--
extra : rebase_source : 5a095b1237a210e2ffcc6888f8271b8b5be6dd6b
extra : source : 7d400025faba588fe9a77103f151d6954a14ac13
extra : histedit_source : 55299b48422de0af4af8ae1712e08315fe2046a4
2019-10-10 11:28:20 +02:00
Anny Gakhokidze d7799e93d3 Bug 1579093 - Fix failing test docshell/test/navigation/test_load_history_entry.html on ash, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D48558

--HG--
extra : rebase_source : 6f4571435f59bd12fe79584e3ce88d12a88c661a
extra : source : 2353562bc8aa7330ee6dfae16c25b9023d8598f6
extra : histedit_source : 4601cdab3a0ebcf0e72088e8e715ea8fe15bd146
2019-09-30 17:58:02 -04:00
Peter Van der Beken 3d62c6c2fb Bug 1583321 - Allow sending same entry multiple times during one IPC call. r=nika
Differential Revision: https://phabricator.services.mozilla.com/D46935

--HG--
extra : rebase_source : 48fcbe1dc8c83af1d85575c32e33a904636d31de
extra : source : 184c14258def58dd1796cf2259a6fecf1cbc055c
extra : histedit_source : 3423197858c817b2c10140543105550a7b2ca913
2019-09-30 15:25:53 +02:00
Peter Van der Beken bc0cfa0be9 Bug 1583568 - Add getter for BFCache id in parent. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D47047

--HG--
extra : rebase_source : c4f104be390dd4af4e6e59f97898702dd18857ca
extra : source : 4de2f692d066d2e0b3a652eb0f24ab9bc56285c3
extra : histedit_source : c131a6b780740664ddc72f40eff5ca0d8f688399
2019-09-23 17:42:35 +02:00
Thomas Nguyen cf2f2ec008 Bug 1580462 - Store iframe's FeaturePolicy in browsingContext to inherit cross origin document. r=baku,farre
Differential Revision: https://phabricator.services.mozilla.com/D48825

--HG--
extra : moz-landing-system : lando
2019-10-23 19:39:00 +00:00
Razvan Maries 7fb625f8cf Backed out changeset ae33b9c001e5 (bug 1580462) for build bustages on nsWindow.cpp. CLOSED TREE 2019-10-23 11:07:00 +03:00
Thomas Nguyen a220530f6b Bug 1580462 - Store iframe's FeaturePolicy in browsingContext to inherit cross origin document. r=baku,farre
Differential Revision: https://phabricator.services.mozilla.com/D48825

--HG--
extra : moz-landing-system : lando
2019-10-22 14:36:00 +00:00
Tom Tung da052d4b6a Bug 1583251 - P1 - Propagate the targetAgentClusterId to PostMessageEvent::Run(); r=nika
Differential Revision: https://phabricator.services.mozilla.com/D48347

--HG--
extra : moz-landing-system : lando
2019-10-23 07:19:48 +00:00
Dorel Luca c50e4ba81d Backed out changeset 578e4005a84b (bug 1588118) for Browser-chrome failures in docshell/test/browser/browser_uriFixupIntegration.js. CLOSED TREE 2019-10-23 02:06:52 +03:00
Gijs Kruitbosch f5e7a6ea1b Bug 1588118 - use the right flag to guard search service use from the URI fixup code, r=mak
Differential Revision: https://phabricator.services.mozilla.com/D50051

--HG--
extra : moz-landing-system : lando
2019-10-22 22:05:53 +00:00
Matt Woodrow e398ffe261 Bug 1583700 - Copy hasNonEmptySandboxingFlags across with DocumentChannel so that it can be set on the nHttpChannel in the parent. r=JuniorHsu,valentin
Depends on D49870

We fail coop-sandbox.https.html  without this, since the changes in bug 1566868 don't apply to DocumentChannel.

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

--HG--
extra : moz-landing-system : lando
2019-10-22 19:16:28 +00:00
Matt Woodrow df21aaeee9 Bug 1583700 - Move CSP setup code to run in both processes. r=nika,ckerschb,mattwoodrow
We want this to run in both processes so that we set the cspToInherit on the LoadInfo within the child as well as the parent.

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

--HG--
extra : moz-landing-system : lando
2019-10-22 01:03:18 +00:00
Mihai Alexandru Michis f3ba6ba32f Backed out 7 changesets (bug 1583700) for causing raptor dom failures.
Backed out changeset 48ceb0dd5d09 (bug 1583700)
Backed out changeset c662a369062f (bug 1583700)
Backed out changeset dc9e317da307 (bug 1583700)
Backed out changeset 41e07201a158 (bug 1583700)
Backed out changeset 015ec42c311a (bug 1583700)
Backed out changeset cfb571dd120a (bug 1583700)
Backed out changeset b9d06db6d43c (bug 1583700)
2019-10-22 03:57:07 +03:00
Matt Woodrow c6fc3268fc Bug 1583700 - Copy hasNonEmptySandboxingFlags across with DocumentChannel so that it can be set on the nHttpChannel in the parent. r=JuniorHsu,valentin
Depends on D49870

We fail coop-sandbox.https.html  without this, since the changes in bug 1566868 don't apply to DocumentChannel.

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

--HG--
extra : moz-landing-system : lando
2019-10-21 20:47:28 +00:00
Matt Woodrow b7011c4713 Bug 1583700 - Move CSP setup code to run in both processes. r=nika,ckerschb,mattwoodrow
We want this to run in both processes so that we set the cspToInherit on the LoadInfo within the child as well as the parent.

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

--HG--
extra : moz-landing-system : lando
2019-10-15 07:52:09 +00:00
Kashav Madan 6f7ced56cb Bug 1589399 - Make BrowsingContext implement nsISupports, r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49786

--HG--
extra : moz-landing-system : lando
2019-10-18 18:58:30 +00:00
Mark Banner 2e1253978b Bug 1588785 - Make the search service also detect when the UI is not enabled. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D49652

--HG--
extra : moz-landing-system : lando
2019-10-18 18:53:36 +00:00
Oana Pop Rus 852f034b58 Backed out 2 changesets (bug 1588785) for causing bc perma failures in browser_searchDefaultEngine.js on a CLOSED TREE
Backed out changeset 6ad4b26b21d7 (bug 1588785)
Backed out changeset 4a4afa268baf (bug 1588785)
2019-10-18 18:45:58 +03:00
Razvan Maries f9d8db28af Backed out 5 changesets (bug 1583251) for rust build bustages. CLOSED TREE
Backed out changeset bfe390ad771b (bug 1583251)
Backed out changeset 0113c698b44d (bug 1583251)
Backed out changeset 248ad59168dd (bug 1583251)
Backed out changeset 5d5e3dc17118 (bug 1583251)
Backed out changeset 9e9eaa78c436 (bug 1583251)
2019-10-18 17:59:20 +03:00
Mark Banner c481f33c74 Bug 1588785 - Make the search service also detect when the UI is not enabled. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D49652

--HG--
extra : moz-landing-system : lando
2019-10-18 13:48:17 +00:00
Tom Tung 3f6f9df494 Bug 1583251 - P1 - Propagate the targetAgentClusterId to PostMessageEvent::Run(); r=nika
Differential Revision: https://phabricator.services.mozilla.com/D48347

--HG--
extra : moz-landing-system : lando
2019-10-17 19:29:54 +00:00
Edgar Chen e6da573de1 Bug 1588720 - Part 2: Track number of popup spam through BrowsingContext; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49276

--HG--
extra : moz-landing-system : lando
2019-10-18 03:04:55 +00:00
Boris Zbarsky 43391c50c0 Bug 1589309. Pass XPCOM strings, not buffer pointers, to notifyJSRunToCompletionStart. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D49650

--HG--
extra : moz-landing-system : lando
2019-10-18 02:50:45 +00:00
Olli Pettay 49bb4a7105 Bug 1586793 - [Fission] iframe.contentWindow may be null when it shouldn't be, r=peterv
The other cases when ClearWindowProxy is called seem to be fine.
It is the Unlink case which was causing null .contentWindow with test_mozfiledataurl.html

Fixes bug 1580391 and backs out bug 1581004

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

--HG--
extra : moz-landing-system : lando
2019-10-17 14:56:54 +00:00
Marco Bonardo de0b357887 Bug 1588756 - Intermittent TV docshell/test/browser/browser_uriFixupIntegration.js. r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D49473

--HG--
extra : moz-landing-system : lando
2019-10-17 10:59:56 +00:00
Andrew McCreight 2e32ec2b4b Bug 1589138 - Make addContentEventListener take an options object for the listener. r=Gijs
All but browser_bug744745.js seem to pass even without the fixes I
made, which seems odd.

browser_bug1058164.js is a little odd because it passes in {} instead
of a boolean for the useCapture argument. I think this ends up calling
addEventListener(..., {}, false), which should be the equivalent of
addEventListener(..., {}).

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

--HG--
extra : moz-landing-system : lando
2019-10-16 17:36:44 +00:00
Geoff Brown c906073cd5 Bug 1585119 - Re-enable many mochitests on android; r=geckoview-reviewers,snorp
Most of these tests have been disabled for a long time; they run well
in the current test environment.
With the additional tests running, task times increase; I have added one
more test chunk for android mochitest-plain.
These tests were identified from a random sampling of mochitest manifests;
I intend to enable more mochitests in future patches.

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

--HG--
extra : moz-landing-system : lando
2019-10-15 15:07:09 +00:00
Nika Layzell 965f006a70 Bug 1576714 - Part 3: Initiate subframe process switches from the parent, r=kmag
This flips the direction in which the BrowserBridge actor is generally created
such that it is generally created in the parent and sent down to a child
process.

This is done by making the decision about what kind of switch to perform in the
parent, and sending messages down to child processes async to orchestrate these
process changes.

Process launching is changed to use an async `MozPromise`-returning API in this
patch, though the actual process launching still occurs synchronously. A future
patch will enable performing async process launching through the
NewOrUsedBrowserProcess mechanism.

I know of at least a few timing issues which exist with the new logic,
especially around the state of the BrowsingContext during the process
transition. I decided to not try to fix all of these issues in this patch, as
many are complex and will require changing how we manage the lifecycle of
BrowsingContext substantially. I do, however, think that the new logic is more
reliable and has fewer timing issues than the previous logic.

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

--HG--
extra : moz-landing-system : lando
2019-10-15 16:19:16 +00:00
Junior Hsu 2bf558c130 Bug 1566868 - network error for non empty sandboxing flag and non-null COOP r=valentin
Adjust for new spec change (comment 23)

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

--HG--
extra : moz-landing-system : lando
2019-10-15 06:09:26 +00:00
Marco Bonardo a06a5b8ccb Bug 1588298 - Ensure CreateFromLoadURIOptions passes the appropriate PRIVATE flag to URIFixup. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D49154

--HG--
extra : moz-landing-system : lando
2019-10-15 08:11:45 +00:00
Paolo Amadini ee00161634 Bug 1532703 - Redirect "about:config" to the HTML version on all channels for browser builds. r=mconley
Differential Revision: https://phabricator.services.mozilla.com/D48960

--HG--
extra : moz-landing-system : lando
2019-10-14 15:58:42 +00:00
Narcis Beleuzu 68337a887d Backed out 3 changesets (bug 1575051) for bc failures on browser_browsingContext-getWindowByName.js . CLOSED TREE
Backed out changeset 67aaf4a157af (bug 1575051)
Backed out changeset e01256038537 (bug 1575051)
Backed out changeset 0c8f70f9328b (bug 1575051)
2019-10-14 19:19:05 +03:00
Andreas Farre c72a747c1c Bug 1575051 - Part 3: Test that nsWindowWatcher can find windows. r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D48977

--HG--
extra : moz-landing-system : lando
2019-10-14 12:07:19 +00:00
Andreas Farre d6e9e88325 Bug 1575051 - Part 2: Look in chrome browsing context group when docshell is missing. r=kmag
Also some minor cleanup in nsWindowWatcher, as well as a small fix,
where GetWindowByName forgot to addref its return value (as changed in
Part 1).

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

--HG--
extra : moz-landing-system : lando
2019-10-14 12:32:08 +00:00