Commit Graph

581696 Commits

Author SHA1 Message Date
Thomas Wisniewski
bd0b3ab10a Bug 792808 - Migrate BodyExtractor away from using nsIXHRSendable; r=baku
MozReview-Commit-ID: 1fNcm1mPJJB

--HG--
extra : rebase_source : 443ad7309f2e6a064b54466ece967ced0c3155ea
2017-09-19 21:32:12 -04:00
Thomas Wisniewski
4476561b7d Bug 792808 - Migrate nsXMLParseEndListener away from nsIXMLHttpRequest interfaces; r=baku
MozReview-Commit-ID: 14Lxuj37GdJ

--HG--
extra : rebase_source : ac146258773810adf01ba05f14d0901b0f5ad663
2017-09-25 22:20:26 -04:00
Thomas Wisniewski
73df5c19c6 Bug 792808 - Migrate XMLHttpRequestWorker away from using other nsIXMLHttpRequest interfaces; r=baku
MozReview-Commit-ID: IiaaeNyNSDv

--HG--
extra : rebase_source : a164b1486f43dbe15f468539a7bae566010d9859
2017-09-27 11:35:30 -04:00
Thomas Wisniewski
284a7bbf1d Bug 792808 - Migrate XMLHttpRequestWorker from using the XMLHttpRequestEventTarget and nsIXMLHttpRequestUpload interfaces; r=baku
MozReview-Commit-ID: BeCDNvY94dQ

--HG--
extra : rebase_source : 154c8c0f8c7b3490428dd3d5f51a7cd8aa14b483
2017-09-24 18:20:10 -04:00
Thomas Wisniewski
b63ef5b534 Bug 792808 - Migrate XMLHttpRequestWorker from using the nsIVariant send() XHR method; r=baku
MozReview-Commit-ID: DGSy3kdh8uH

--HG--
extra : rebase_source : fb3271f09994485f03ac13b84b46e36a00ca69c8
2017-09-28 17:24:32 -04:00
Thomas Wisniewski
1a7374f71c Bug 792808 - Migrate XMLHttpRequestMainThread away from needing nsIXMLHttpRequest's constants; r=baku
MozReview-Commit-ID: 1yaM9DAKPW7

--HG--
extra : rebase_source : b81366e7572ddf4da342ca40016de54bc8a6fd33
2017-09-24 14:08:38 -04:00
Thomas Wisniewski
16742d6e24 Bug 792808 - Change test_SpecialPowersExtension.html to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=mrbkap
MozReview-Commit-ID: JW37fmAuxE2

--HG--
extra : rebase_source : 4b2a3e05f619332f9fdeb42190e9253ad6e9a26d
2017-09-19 12:18:59 -04:00
Thomas Wisniewski
1966e88a4a Bug 792808 - Change pktApi.jsm to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=Gijs
MozReview-Commit-ID: 8jdzIb95MmB

--HG--
extra : rebase_source : 34383e0d7a6279e82cde23a3e93c69a001c6fe93
2017-09-19 12:18:20 -04:00
Thomas Wisniewski
38494f65a3 Bug 792808 - Change PdfStreamConverter.jsm to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=mossop
MozReview-Commit-ID: 3dj92XGY1G2

--HG--
extra : rebase_source : c2567ca292d91a65e23c5a22729f3eb20071575a
2017-09-19 12:17:59 -04:00
Thomas Wisniewski
dd793ee47a Bug 792808 - Change asan-reporter bootstrap script to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=froydnj
MozReview-Commit-ID: GwciLYuTG3G

--HG--
extra : rebase_source : 7687aeba58c0b035ca0314379e0d199ed35a4ebf
2017-09-19 12:17:39 -04:00
Thomas Wisniewski
7b962d7fdd Bug 792808 - Change browser/[components|modules|experiments] to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=mconley
MozReview-Commit-ID: 66ubjdJssU9

--HG--
extra : rebase_source : 58b161234b7c94d568d368acbea5eb141a5d7ca7
2017-09-19 12:17:10 -04:00
Thomas Wisniewski
9abe8a6b3b Bug 792808 - Change js/xpconnect to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=bz
MozReview-Commit-ID: DZZ9NUysT5I

--HG--
extra : rebase_source : 00b248d242c38a1cd70535aa357b284ba60732b4
2018-01-21 14:46:11 -05:00
Thomas Wisniewski
14c2bbe588 Bug 792808 - Change mobile/android/ to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=sebastian
MozReview-Commit-ID: JHIHB11vdWL

--HG--
extra : rebase_source : ac365f5a97f5b2c8ddfcda1d5444dbd4cc6a240e
2017-09-19 12:05:47 -04:00
Thomas Wisniewski
16a55b16e6 Bug 792808 - Change devtools/ to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest), and the same for FormData; r=Honza
MozReview-Commit-ID: HCziNedavb0

--HG--
extra : rebase_source : cec5be97236b096bdb85a77f06cd5127fd80f7fb
2017-11-20 00:27:39 -05:00
Thomas Wisniewski
faf8fd28bb Bug 792808 - Change dom/push to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=bz,dragana
MozReview-Commit-ID: KbyYOz9ZWHq

--HG--
extra : rebase_source : 5e150ed0bef41c335a4a06591a13be860676d921
2017-09-19 11:47:55 -04:00
Thomas Wisniewski
2e1d9d26f8 Bug 792808 - Change dom/system to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=bz,jdm
MozReview-Commit-ID: AhiiiVUoGSW

--HG--
extra : rebase_source : d72ecb5ad73d7110534badc0e03fe07fe00901a4
2017-09-19 11:47:37 -04:00
Thomas Wisniewski
3cf9bab95e Bug 792808 - Change dom/[base|tests|url] to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=baku
MozReview-Commit-ID: 2laGRmDgWkd

--HG--
extra : rebase_source : c0458818c6e0b18e944631d3be3c267f1db8b89e
2017-09-19 11:45:16 -04:00
Thomas Wisniewski
72d29b6bc6 Bug 792808 - Change security/manager/tools scripts to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=keeler
MozReview-Commit-ID: 9lddED1IGeD

--HG--
extra : rebase_source : a5888307baddb6c293bf968c90590572b065d932
2017-09-19 11:40:14 -04:00
Thomas Wisniewski
1e7a2879c3 Bug 792808 - Change netwerk/ to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=valentin
MozReview-Commit-ID: LHiYPIkG0i2

--HG--
extra : rebase_source : 25368b1edad92a6c4aa5ca4242427fd18b578db8
2017-09-19 11:36:43 -04:00
Thomas Wisniewski
2dacf095ab Bug 792808 - Change toolkit/ to import and instantiate XHRs from global properties rather than using Cc.createInstance(Ci.nsIXMLHttpRequest); r=aswan
MozReview-Commit-ID: CUrMOocHBNu

--HG--
extra : rebase_source : 9a3f993cfa9cf1e89c746b4b6507ad3002bd07db
2018-02-08 20:09:57 -05:00
Michael Kaply
61690407ea Bug 1438559 - Add Ecosia for German Firefox. r=flod
MozReview-Commit-ID: 9ajRqAPlp0N

--HG--
extra : rebase_source : fe2fad4db9806cff8d8b823b7fcd4ab6c4683a38
2018-02-15 11:38:51 -06:00
Timothy Guan-tin Chien
a2a559db3e Bug 1234008 - Recompress some png images with zopflipng r=Dolske,Grisha,jryans
MozReview-Commit-ID: Cr2iMSB04uu

--HG--
extra : rebase_source : 49f69cca3a4f27af1060ed82283b5cc96f717229
2018-01-27 15:57:42 +08:00
Greg Mierzwinski
1c4584793b Bug 1435040 - Remove object iterator implementation from CoverageUtils.jsm. r=bz
This patch removes the object iterator implementation that was used to fix bug 1317019 in favor of using Object.entries() when recording method-level JS code coverage through the JS Debugger.

MozReview-Commit-ID: AxeG5QglwRm

--HG--
extra : rebase_source : 36a09469ddf1a9a6fa0954aadc53534a4308d2b0
2018-02-02 11:44:26 -05:00
Xidorn Quan
e6e1ebf367 Bug 1417138 part 2 - Enable stylo-chrome by default. r=bholley
MozReview-Commit-ID: D19QBD4nqWf

--HG--
extra : rebase_source : 614ee44f14447ad6719b5c1c55073a736da88533
extra : source : 8e0394db471fdc75cdee12013944ed9a2873cd62
2018-02-13 16:30:43 +11:00
Xidorn Quan
9bb5738ddd Bug 1417138 part 1 - Skip about:downloads in about url test. r=Gijs
MozReview-Commit-ID: HfgQI5OlvI9

--HG--
extra : rebase_source : 3b782d17b6a92f485ff56bd0ed826d8c447114c1
2018-02-14 17:01:57 +11:00
Jesse Schwartzentruber
8edb6105b8 Bug 1421728 - Add a macosx64 fuzzing-asan build. r=dustin,froydnj
MozReview-Commit-ID: DNNu4jyG50Z

--HG--
extra : rebase_source : 4440c958965ee6021a3aaf732f9a87cc10763245
2018-02-08 17:16:41 -05:00
Narcis Beleuzu
b3044d8b90 Backed out changeset 2de04e1a46bd (bug 1431872) on request from marco for running ccov builds also on autoland and inbound. a=backout
--HG--
extra : source : 928f0f09172fae67f6ec00e7a63969f7b28bd12e
2018-02-16 14:29:18 +02:00
Fernando Jiménez Moreno
60d2a92c58 servo: Merge #20054 - Implement element.innerText setter (from ferjm:innertext.setter); r=emilio
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #16107
- [X] There are tests for these changes

Source-Repo: https://github.com/servo/servo
Source-Revision: a6113af87335d69d11e53bc0ef2618dc7f6d16a0

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : e25dc9d4f6a0e66cb91b06e6232d5311f237ea74
2018-02-16 05:38:38 -05:00
Narcis Beleuzu
dd4d7d0d2d Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-02-16 13:14:26 +02:00
Narcis Beleuzu
eeb962c7c9 Backed out changeset a8aa7e2af130 (bug 1436151) for xpcshell failures on /test_setBreakpoint-at-the-beginning-of-a-line.js. a=backout 2018-02-16 13:08:04 +02:00
Cosmin Sabou
d513f914b8 Merge inbound to mozilla-central. a=merge 2018-02-16 12:15:38 +02:00
Narcis Beleuzu
2d9816273c Merge inbound to mozilla-central. a=merge 2018-02-16 11:49:59 +02:00
Dão Gottwald
694859a3f8 Backed out changeset f23ac3f571cf
MozReview-Commit-ID: FLl0Gd0oG6o
2018-02-16 09:27:40 +01:00
Dão Gottwald
080e52a924 Backed out changeset c03c60285f5d
MozReview-Commit-ID: 1JWaWpvbii6
2018-02-16 09:27:22 +01:00
Dão Gottwald
3907cbdf72 Backed out changeset 9833d3aa5451
MozReview-Commit-ID: HwyR97pKxfA
2018-02-16 09:27:05 +01:00
Markus Stange
e50b258807 Bug 1385998 - Fix a typo in a comment.
MozReview-Commit-ID: AiHDDUKGHhi
2018-02-15 22:29:32 -05:00
Jashank Jeremy
5e7e2c2a06 Bug 1438120 - Fix non-MOZ_GECKO_PROFILER build by adding the missing AUTO_PROFILER_LABEL_FAST declaration. r=mstange
--HG--
extra : amend_source : ba4360be040c3d765f380d3c92e6fabf0cdfd436
2018-02-15 22:27:33 -05:00
Daniel Holbert
f757d9abf0 Bug 1438704: Adjust some flexbox reftests to use special Ahem character rather than border-color to signal directionality. r=mats
This patch just removes the following styles from these reftests:
     border-block-start-color: orange;
     border-inline-start-color: lime;
(which latest Chrome, Safari, and Edge don't support anyway)
...and adjusts all text runs to start with 'p' -- which has special rendering
in Ahem -- so that directionality can still be inferred.

MozReview-Commit-ID: KBCsW0wjON7

--HG--
extra : rebase_source : d75bb1f1feb40cfe3541cbd3fe6694c63d71cd46
2018-02-15 15:54:19 -08:00
Noemi Erli
106264f662 Backed out changeset dd4694fdd87b (bug 1417138) followup- backout for failing in slave/test/build/tests/reftest/tests/layout/reftests/xul/menulist-shrinkwrap-2.xul r=xidorn on a CLOSED TREE 2018-02-16 05:20:51 +02:00
Margareta Eliza Balazs
428a385d22 Backed out changeset ebbcdc3e642d (bug 1433593) for X failing in toolkit/components/passwordmgr/test/unit/test_maybeImportLogin.js on a CLOSED TREE 2018-02-16 04:50:42 +02:00
Noemi Erli
060d1f8fed Backed out 2 changesets (bug 1417138) for failing in slave/test/build/tests/reftest/tests/layout/reftests/xul/menulist-shrinkwrap-2.xul on a CLOSED TREE
Backed out changeset 4e0d4c91940b (bug 1417138)
Backed out changeset 92fa88d94170 (bug 1417138)
2018-02-16 04:48:23 +02:00
Ralph Giles
8b1594f943 Bug 1438692 - Build sccache with rust 1.24. r=glandium
Update sccache build description to use the latest stable
rust toolchain. We didn't upgrade earlier because of problems
on Windows.

Note that we can't just depend on the stable rust toolchain
alias, because the toolchain deps are resolved in a single
pass. Instead, we use the current stable version explicitly.

MozReview-Commit-ID: 4OVbFsYZZLZ

--HG--
extra : rebase_source : 5b65d05f646f061a4018e0fad2e31e48e884912a
2018-02-15 15:02:08 -08:00
Hiroyuki Ikezoe
7034a44b02 Bug 1432396 - Add assertions that we don't allow reinitialization of variables that were reset in nsDocShell::Destroy(). r=bz
Here is the list of variables which are reset in nsDocShell::Destroy().
The right column shows the function where the variable is set.  In this patch
all the functions other than SetTreeOwner(*1) have an assertion that we don't
allow the function to be called or bail out during destroying the docshell.

It is possible that SetTreeOwner() is called in script through
`browser.setAttribute("primary", "true")`.  So we can't assert there, we just
bail out from SetTreeOwner when the docshell is being destroyed.

mInitialClientSource              MaybeCreateInitialClientSource()
mObserveErrorPages:               Initially true, never sets true again
mLoadingURI:                      CreateContentViewer()
mOSHE->SetEditorData(nullptr):    DetachEditorFromWindow()
mLSHE->SetEditorData(nullptr):    Setting again in RestoreFromHistory() after bailing out if mIsBeingDestroyed is true
mContentListener:                 Init()
Stop(nsIWebNavigation::STOP_ALL)
  mRestorePresentationEvent:      RestorePresentation()
  mFailedChannel:                 LoadErrorPage()
  mFailedURI:                     LoadErrorPage()
  mRefreshURIList:                RefreshURI()
mEditorData:                      ReattachEditorToWindow() and EnsureEditorData()
mTransferableHookData:            EnsureTransferableHookData()
mContentViewer:                   SetupNewViewer()
mParentWidget:                    SetParentWidget()
mCurrentURI:                      SetCurrentURI()
mScriptGlobal:                    EnsureScriptEnvironment()
mSessionHistory                   SetSessionHistory()
SetTreeOwner():                   SetTreeOwner() *1
mOnePermittedSandboxedNavigator:  SetOnePermittedSandboxedNavigator()
mSecurityUI:                      SetSecurityUI()
CancelRefreshURITimers()
  mRefreshURIList:                RefreshURI()
  mSavedRefreshURIList:           RefreshURI()
mPrivateBrowsingId:               SetPrivateBrowsing()
mOriginAttributes:                SetOriginAttributes()
DecreasePrivateDocShellCount:     SetAffectPrivateSessionLifetime()

MozReview-Commit-ID: G5d941R9K8V

--HG--
extra : rebase_source : 978e5b232e76a803c104c030bbeb91315d886491
2018-02-16 06:29:59 +09:00
Hiroyuki Ikezoe
fbdb88bdd8 Bug 1432396 - Do not process nsDocShell::Destroy() if the docshell is already being destroyed. r=bz
The test case in this patch is harmless without this fix, no assertion happens,
no failure happens in the test, but nsDocShell::Destroy() is processed twice.

MozReview-Commit-ID: 2g949emc7at

--HG--
extra : rebase_source : 34209e5cd5310521b2eec4d4f67f355bfdae5d8d
2018-02-16 06:15:04 +09:00
Hiroyuki Ikezoe
74793b07f2 Bug 1432396 - Stop the newly create orphaned viewer when the docshell is destroyed in nsDocShell::CreateContentViewer(). r=bz
Normally the docshell stops the content viewer in nsDocShell::Stop(), but in this
case it won't be stopped in that function since the new content viewer has never
been associated with this docshell.

dom/base/test/test_bug1126851.html is a test case that we bail out
from CreateContentViewer() due to win.close() in an unload event callback.

MozReview-Commit-ID: 7O7TmwHN9re

--HG--
extra : rebase_source : 8f50efd4b582d3283ad482fd896b5d558c0e8269
2018-02-16 06:15:03 +09:00
Hiroyuki Ikezoe
cb1555c1b4 Bug 1432396 - Bail out if the docshell is being destroyed due to pagehide notification. r=bz
There are four call sites of FirePageHideNotification().  Two of them are
handled in this patch.  The other two will be taken care of in the subsequent
patches in this patch series respectively.

Without this fix, the test case in this patch causes assertions when
cycle collection happens.

MozReview-Commit-ID: 6GSxjdfXGcY

--HG--
extra : rebase_source : 998b95ae90a1ad80dc177d5eecf1a592ba375116
2018-02-16 06:15:03 +09:00
Hiroyuki Ikezoe
a337532619 Bug 1432396 - Check the docshell is being destroyed along with the tree owner at the top of nsDocShell::CreateContentViewer(). r=bz
We bail out the function to make sure we don't process CreateContentViewer
and mLoadingURI is not re-initialized in the function while destroying the
docshell.

MozReview-Commit-ID: AYJ1t2N786N

--HG--
extra : rebase_source : b02c6a061a8938936b40195e166ac2b6c187406d
2018-02-16 06:15:02 +09:00
Hiroyuki Ikezoe
befb3a6212 Bug 1432396 - Call UnblockOnload only if we've already blocked load event. r=bz
When the window is destroyed in unload event callbacks for the previous
document, we haven't started loading, i.e. we haven't called BlockOnload()
for the new document in nsContentSink::WillBuildModelImpl, so if we called
nsDocument::StopDocumentLoad() in such cases, UnblockOnload calls will mismatch
BlockOnload calls.

MozReview-Commit-ID: HjLtmGGvXKS

--HG--
extra : rebase_source : 8d81afd5cd7988cb165d9fee5dcfbf5fbf702331
2018-02-16 06:15:01 +09:00
Gijs Kruitbosch
bfee896494 Bug 1437147 - report warnings when the sanitizer removes stuff for chrome documents, r=bz
MozReview-Commit-ID: Lx1JjpYrLpD

--HG--
extra : rebase_source : fcd98b67a194a59e2d4e6d44a5442e359ce22255
2018-02-15 16:03:19 +00:00
Alexis Beingessner
51067a00b9 Bug 1437620 - mark tests as newly passing under wr. r=kats
MozReview-Commit-ID: 60vPkV1guOo

--HG--
extra : rebase_source : 0203d81d4a27dbc7f6d3fdbc9ef1df1003b66360
2018-02-15 13:19:46 -05:00