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

7400 Коммитов

Автор SHA1 Сообщение Дата
Bogdan Tara d62176d3d7 Backed out 2 changesets (bug 1498742) for nsMacUtilsImpl.cpp related build bustage a=backout
Backed out changeset 6729dc168afd (bug 1498742)
Backed out changeset e5eed57a9111 (bug 1498742)
2019-06-14 12:50:04 +03:00
Boris Zbarsky a4410ccb51 Bug 1558726. Stop using [array] in nsISocketTransportService. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D34668

--HG--
extra : moz-landing-system : lando
2019-06-13 04:21:32 +00:00
Sebastian Streich 5462226932 Bug 1450965 Skip Cors Check for Early WebExtention Redirects r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D30509

--HG--
extra : moz-landing-system : lando
2019-06-13 09:57:13 +00:00
Haik Aftandilian fa1979ab86 Bug 1498742 - Part 1 - Move GetRepoDir() and GetObjDir() from ContentChild to nsMacUtilsImpl r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D34084

--HG--
extra : moz-landing-system : lando
2019-06-13 06:32:54 +00:00
Andreea Pavel 307e3f181b Backed out 2 changesets (bug 1498742) for build bustages at GMPProcessParent.cpp on a CLOSED TREE
Backed out changeset 5f9d32e26c71 (bug 1498742)
Backed out changeset ffc8d151cf3a (bug 1498742)
2019-06-13 04:38:56 +03:00
Haik Aftandilian a195f66f52 Bug 1498742 - Part 1 - Move GetRepoDir(), GetObjDir(), IsDevelopmentBuild() from ContentChild to nsMacUtilsImpl r=spohl
Differential Revision: https://phabricator.services.mozilla.com/D34084

--HG--
extra : moz-landing-system : lando
2019-06-12 23:41:39 +00:00
Valentin Gosu 340e0822c9 Bug 1459573 - Support Cross Origin Resource Policy (CORP) r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D33747

--HG--
extra : moz-landing-system : lando
2019-06-12 13:30:05 +00:00
Honza Bambas ee6363e0d7 Bug 1556479 - Fix log in nsHttpConnectionMgr::OnMsgNewTransaction to be trackable in logan, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D33530

--HG--
extra : moz-landing-system : lando
2019-06-11 17:37:11 +00:00
Boris Zbarsky d5a8a4a595 Bug 1557793 part 3. Change the signatures of various nsContentUtils localization methods to play nicer with the new stringbundle API. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D34201

--HG--
extra : moz-landing-system : lando
2019-06-08 21:26:12 +00:00
Boris Zbarsky 9de72a3ac6 Bug 1557793 part 2. Stop using [array] in nsIStringBundle. r=Pike
Differential Revision: https://phabricator.services.mozilla.com/D34196

--HG--
extra : moz-landing-system : lando
2019-06-11 15:51:51 +00:00
Kershaw Chang 84202aaa22 Bug 1545523 - Set mRaceCacheWithNetwork to true if mCacheOpenFunc is assigned r=michal
Differential Revision: https://phabricator.services.mozilla.com/D33070

--HG--
extra : moz-landing-system : lando
2019-06-10 13:37:04 +00:00
Gijs Kruitbosch 9d7947d8a1 Bug 1556559 - make about:license non-web-linkable again, r=valentin
This ensures that links in about:license to about:rights and about:buildconfig actually work.

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

--HG--
extra : moz-landing-system : lando
2019-06-07 12:11:34 +00:00
Valentin Gosu 05f11128da Bug 1554680 - Use WindowGlobalParent::IsInitialDocument instead of WindowGlobalParent::DocumentPrincipal to figure out if the page is the initial about:blank r=nika
For a popup, the principal will be that of the opener, so we can't use that to
determine if the window is about:blank.

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

--HG--
extra : moz-landing-system : lando
2019-06-04 22:08:20 +00:00
Valentin Gosu 48a10d1cfd Bug 1555359 - Treat the ExtensionProtocolHandler as threadsafe r=mayhemer
Since the RESOLVE_JAR_URI flag is not used for moz-extension, ResolveJARURI
would never get called in ExtensionProtocolHandler, so it's OK to consider
it threadsafe.

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

--HG--
extra : moz-landing-system : lando
2019-06-06 20:15:11 +00:00
Nika Layzell 03a2f40528 Bug 1553272 - Eliminate the unnecessary ProtocolState object, r=froydnj
The vast majority of the virtual methods which were used on ProtocolState were
actually methods which only had meaningful implementations on the toplevel
protocol. This patch adds a new field to IProtocol holding a direct pointer to
the protocol's `IToplevelProtocol`, and the methods formerly implemented with
ProtocolState now directly call the corresponding method on IToplevelProtocol.
IToplevelProtocol then shadows these methods with the toplevel protocol
implementation, meaning that the right code is run in the right places.

In addition, some state was maintained for protocols inside of the separate
ProtocolState allocation, and this patch moves that state back into the actor
itself.

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

--HG--
extra : moz-landing-system : lando
2019-06-06 14:57:34 +00:00
Michal Novotny 8e84b11096 Bug 1556987 - Invalid assertion in nsHttpChannel::OnPush, r=dragana
NS_HTTP_ONPUSH_LISTENER capability is set in nsHttpChannel::SetupTransaction when notification callbacks implement nsIHttpPushListener, but nsHttpChannel::OnPush event is initiated on socket thread in Http2PushedStream::TryOnPush and the channel can be closed and listeners released before nsHttpChannel::OnPush is called on the main thread.

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

--HG--
extra : moz-landing-system : lando
2019-06-06 06:35:50 +00:00
Valentin Gosu 2c2ccd2797 Bug 1533877 - Frame navigations should check their parent's Cross-Origin policy r=nika
Differential Revision: https://phabricator.services.mozilla.com/D32972

--HG--
extra : moz-landing-system : lando
2019-06-04 12:24:56 +00:00
Andrea Marchesini b4b9392f9d Bug 1554847 - Improve cross-origin checks in canvas API - propagate allRedirectsSameOrigin to HttpChannelChild actor, r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D32793

--HG--
extra : moz-landing-system : lando
2019-06-04 06:33:11 +00:00
Coroiu Cristina 73edc6621b Backed out 4 changesets (bug 1554847) for wpt failures at /service-workers/service-worker/fetch-canvas-tainting-video-cache.https.html
Backed out changeset 17e36d139ac2 (bug 1554847)
Backed out changeset 101bd1c2d688 (bug 1554847)
Backed out changeset 3ff9a221f3e5 (bug 1554847)
Backed out changeset 946e4d9420dd (bug 1554847)
2019-06-04 03:24:42 +03:00
shindli 18d693fe12 Backed out 5 changesets (bug 1533877) for causing wpt permafailure in /html/cross-origin/anonymous.tentative.html CLOSED TREE
Backed out changeset 1804d3178cd4 (bug 1533877)
Backed out changeset b5a3e938f421 (bug 1533877)
Backed out changeset 08efb10cceb2 (bug 1533877)
Backed out changeset c4b8d755873b (bug 1533877)
Backed out changeset e53056e11429 (bug 1533877)
2019-06-03 22:06:38 +03:00
Valentin Gosu e1092f8add Bug 1533877 - Frame navigations should check their parent's Cross-Origin policy r=nika
Differential Revision: https://phabricator.services.mozilla.com/D32972

--HG--
extra : moz-landing-system : lando
2019-06-03 14:57:13 +00:00
Andrea Marchesini 21cf95c1c2 Bug 1554847 - Improve cross-origin checks in canvas API - propagate allRedirectsSameOrigin to HttpChannelChild actor, r=mayhemer
Differential Revision: https://phabricator.services.mozilla.com/D32793

--HG--
extra : moz-landing-system : lando
2019-06-03 09:55:08 +00:00
arthur.iakab 36d75a7e56 Merge mozilla-central to mozilla-inbound 2019-06-01 01:30:47 +03:00
Kartikaya Gupta 0d8a0d2546 Bug 1555966 - Back out cset ecceef291b89 (bug 1551601) for regressions. rs=valentin 2019-05-31 16:07:18 -04:00
Honza Bambas c35df87597 Bug 1545421 - New nsresult error codes for 407, 502 and 504 http response codes returned by proxies + test, r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D32817

--HG--
extra : moz-landing-system : lando
2019-05-31 17:29:53 +00:00
Ehsan Akhgari 58702e4a1d Bug 1555715 - Remove WebSocketChannelParent::mIPCOpen; r=valentin
It is no longer necesssary for individual actors to do this book-keeping
manually.

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

--HG--
extra : moz-landing-system : lando
2019-05-31 12:08:02 +00:00
Honza Bambas d47b46c009 Bug 1553927 - Do not do immediate captive portal check on certificate/ssl errors when connecting a plain URL to prevent loops, r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D33032

--HG--
extra : moz-landing-system : lando
2019-05-29 16:13:46 +00:00
Christian Holler d67b031492 Bug 1528950 - Implement HTTP fuzzing target for Necko. r=dragana
Differential Revision: https://phabricator.services.mozilla.com/D32755

--HG--
extra : moz-landing-system : lando
2019-05-31 09:34:00 +00:00
Andrea Marchesini aa84d3c812 Bug 1436674 - nsICookieService.idl should use ACString XPIDL type in place of the string type, r=Ehsan
Differential Revision: https://phabricator.services.mozilla.com/D32662

--HG--
extra : moz-landing-system : lando
2019-05-31 09:36:44 +00:00
Thomas Nguyen cd48bd6695 Bug 1554289 - Add non-null checks around assignment referrerInfo to preflight HTTP channel r=valentin
Differential Revision: https://phabricator.services.mozilla.com/D32976

--HG--
extra : moz-landing-system : lando
2019-05-31 09:39:51 +00:00
Kris Maglione ffe2477ea3 Bug 1555439: Store enterprise policy about: whitelist in static array. r=mkaply
Differential Revision: https://phabricator.services.mozilla.com/D33058

--HG--
extra : rebase_source : 68ee1c16d2008a3766faad2b661788ee0a381db1
2019-05-29 11:21:06 -07:00
Gijs Kruitbosch e561d233e9 Bug 1552993 - r=valentin,dragana
Differential Revision: https://phabricator.services.mozilla.com/D32066

--HG--
extra : moz-landing-system : lando
2019-05-27 09:14:33 +00:00
Tom Ritter b8705a8481 Bug 1539595 - Rename Priveleged Content Process to PrivlegedAbout Content Process r=mconley,flod
We do this because we will be introducing more privileged content processes
and we want to be able to distinguish them.

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

--HG--
rename : browser/base/content/test/tabs/browser_new_tab_in_privileged_process_pref.js => browser/base/content/test/tabs/browser_new_tab_in_privilegedabout_process_pref.js
extra : moz-landing-system : lando
2019-05-29 11:31:31 +00:00
Ehsan Akhgari 6c4174f1f6 Bug 1554713 - Remove HttpChannelChild::mIPCOpen; r=michal
Differential Revision: https://phabricator.services.mozilla.com/D32717

--HG--
extra : moz-landing-system : lando
2019-05-28 17:06:01 +00:00
Sebastian Hengst fba75a919c Backed out 4 changesets (bug 1539595) for build bustage in nsAboutRedirector.cpp. CLOSED TREE
Backed out changeset 2b0bb889b087 (bug 1539595)
Backed out changeset 95f0b82ec253 (bug 1539595)
Backed out changeset 6310e6dabceb (bug 1539595)
Backed out changeset ba3e353c6957 (bug 1539595)

--HG--
rename : browser/base/content/test/tabs/browser_e10s_about_page_triggeringprincipal.js => browser/base/content/test/general/browser_e10s_about_page_triggeringprincipal.js
rename : browser/base/content/test/tabs/browser_e10s_about_process.js => browser/base/content/test/general/browser_e10s_about_process.js
rename : browser/base/content/test/tabs/browser_e10s_chrome_process.js => browser/base/content/test/general/browser_e10s_chrome_process.js
rename : browser/base/content/test/tabs/browser_e10s_javascript.js => browser/base/content/test/general/browser_e10s_javascript.js
rename : browser/base/content/test/tabs/browser_e10s_switchbrowser.js => browser/base/content/test/general/browser_e10s_switchbrowser.js
rename : browser/base/content/test/tabs/file_about_child.html => browser/base/content/test/general/file_about_child.html
rename : browser/base/content/test/tabs/file_about_parent.html => browser/base/content/test/general/file_about_parent.html
rename : browser/base/content/test/tabs/test_process_flags_chrome.html => browser/base/content/test/general/test_process_flags_chrome.html
rename : browser/base/content/test/tabs/browser_new_tab_in_privilegedabout_process_pref.js => browser/base/content/test/tabs/browser_new_tab_in_privileged_process_pref.js
2019-05-28 19:49:17 +02:00
Tom Ritter 03b41fa512 Bug 1539595 - Rename Priveleged Content Process to PrivlegedAbout Content Process r=mconley,flod
We do this because we will be introducing more privileged content processes
and we want to be able to distinguish them.

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

--HG--
rename : browser/base/content/test/tabs/browser_new_tab_in_privileged_process_pref.js => browser/base/content/test/tabs/browser_new_tab_in_privilegedabout_process_pref.js
extra : moz-landing-system : lando
2019-05-28 14:19:11 +00:00
Valentin Gosu 124a1062f6 Bug 1536744 - Rename NS_NewURIOnAnyThread to NS_NewURI. r=baku
The only protocol that can't be created off the main thread at the moment is
moz-extension, and that can be handled at a later time.

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

--HG--
extra : moz-landing-system : lando
2019-05-28 14:17:04 +00:00
Valentin Gosu 393c44437c Bug 1536744 - Add nsGIOProtocolHandler::GetSingleton(). Make sure nsIOService::GetProtocolHandler only returns it when it's supported. r=baku
Before, we'd try to create a URI using the GIO protocol handler, and if that
succeeded, we'd return the protocol handler.
Now we can't return it if NS_NewURI succeeds, because NS_NewURI doesn't check
the protocol handler anymore. So instead we just instantiate the handler,
check if the scheme is supported, and if so return it.

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

--HG--
extra : moz-landing-system : lando
2019-05-28 13:50:20 +00:00
Valentin Gosu b8bdfab7c9 Bug 1536744 - Remove nsIProtocolHandler.newURI r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30703

--HG--
extra : moz-landing-system : lando
2019-05-28 13:49:27 +00:00
Valentin Gosu 875ad56974 Bug 1536744 - Add "about" protocol to NS_NewURIOnAnyThread r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30701

--HG--
extra : moz-landing-system : lando
2019-05-28 13:49:17 +00:00
Valentin Gosu 1c26cb2cac Bug 1536744 - Make resource protocol handler thread safe r=baku
This is achieved by adding a RWLock to SubstitutingProtocolHandler

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

--HG--
extra : moz-landing-system : lando
2019-05-28 13:49:05 +00:00
Valentin Gosu 43021cd88a Bug 1536744 - Add "resource" and "moz-extension" to NS_NewURIOnAnyThread. r=baku
* Add main thread assertions for "resource" and "moz-extension" protocols
* Use ::GetSingleton() for resource and moz-extension protocol handlers

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

--HG--
extra : moz-landing-system : lando
2019-05-28 13:48:56 +00:00
Valentin Gosu 8ce8ef49f6 Bug 1536744 - Add {nsAboutProtocolHandler,nsViewSourceHandler,SubstitutingProtocolHandler}::CreateNewURI() static methods r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30697

--HG--
extra : moz-landing-system : lando
2019-05-28 13:48:49 +00:00
Valentin Gosu 804b1c0cb2 Bug 1536744 - NS_NewURIOnAnyThread should construct nsStandardURLs for smb and sftp URLs r=baku
These URL types need both specific applications to be installed on Linux, and for the pref to list them as supported.
We do these checks in nsGIOProtocolHandler::NewChannel instead of performing them when creating the URLs.

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

--HG--
extra : moz-landing-system : lando
2019-05-28 13:47:18 +00:00
Valentin Gosu 10a3eb98ad Bug 1536744 - Make SubstitutingProtocolHandler::NewURI only call ResolveJARURI if the host is android r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30694

--HG--
extra : moz-landing-system : lando
2019-05-28 13:46:55 +00:00
Valentin Gosu 552486a275 Bug 1536744 - Add nsAboutProtocolHandler::CreateNewURI() r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30693

--HG--
extra : moz-landing-system : lando
2019-05-28 13:46:35 +00:00
Valentin Gosu ef2b6cf771 Bug 1536744 - Add nsResProtocolHandler::GetSingleton() r=baku
Differential Revision: https://phabricator.services.mozilla.com/D30692

--HG--
extra : moz-landing-system : lando
2019-05-28 13:46:17 +00:00
Valentin Gosu 33c3bf5390 Bug 1551601 - Do process switch _before_ processing cached redirect r=mayhemer
This patch splits ReadFromCache in two - by adding ContinueReadFromCache.
ContinueReadFromCache is called asycly when a cross-process-redirect is
complete.

Sometimes, the channel will be cancelled before the cross-process-redirect
is complete, such as in:
testing/firefox-ui/tests/functional/safebrowsing/test_notification.py
In that case we must make sure to call HandleAsyncAbort if the listener's
onStart/StopRequest callbacks haven't been called.

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

--HG--
extra : moz-landing-system : lando
2019-05-28 09:37:06 +00:00
Kershaw Chang 5d000eeb62 Bug 1544619 - Ignore response body if method is HEAD or CONNECT r=mayhemer
According to the spec, we should ignore the response body for the HEAD and CONNECT requests.

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

--HG--
extra : moz-landing-system : lando
2019-05-27 09:08:50 +00:00
Sylvestre Ledru d57d4905f1 Bug 1519636 - Reformat recent changes to the Google coding style r=Ehsan
# ignore-this-changeset

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

--HG--
extra : moz-landing-system : lando
2019-05-25 17:46:15 +00:00