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

581677 Коммитов

Автор SHA1 Сообщение Дата
Andrew Osmond 5380fd8762 Bug 1436247 - Part 3. Fix image/DecodePool.h inclusions. r=tnikkel 2018-02-13 06:43:31 -05:00
Andrew Osmond 4318a7dc60 Bug 1436247 - Part 2. Shutdown idle image decoder threads after the configured timeout. r=tnikkel
The image decoding thread pool can grow to be quite large, up to 32
threads, depending on the number of processors on the system. If the
user is not actively browsing, these threads are occupying resources
which could be reused elsewhere. After the timeout period, it will
release up to half of the threads in the pool.
2018-02-13 06:43:31 -05:00
Andrew Osmond 852af60687 Bug 1436247 - Part 1. Spawn image decoder threads on demand, rather than at startup. r=tnikkel
Currently imagelib's DecodePool spawns the maximum number of threads
during startup, based on the number of processors. This patch changes it
to spawn a single thread on startup (which cannot fail), and more up to
the maximum as jobs are added to the queue. A thread will only be
spawned if there is a backlog present when a new job is added. This
typically results in fewer threads allocated in the parent process, as
well as deferred spawning in the content processes.
2018-02-13 06:43:30 -05:00
Jon Coppeard b188b2d674 Bug 1399866 - Add gray marking asserts to proxy write functions r=sfink 2018-02-16 11:40:04 +00:00
Andrew Osmond f6a1a2419b Bug 1438207 - Finalize the current frame of an ICO decoder correctly. r=tnikkel
Originally we attempted to finalize the current frame from the contained
decoder in nsICODecoder::FinishResource. This is wrong because we
haven't acquired the frame from the contained decoder yet. This happens
in nsICODecoder::GetFinalStateFromContainedDecoder, and so
imgFrame::Finalize call should be moved there. This was causing us to
use fallback image sharing with WebRender after a GPU process crash,
instead of shared surfaces, because it can't get a new file handle for
the surface data until we have finished writing all of the image data.
2018-02-16 06:27:36 -05:00
Narcis Beleuzu 09da568225 Merge mozilla-central to inbound. a=merge on a CLOSED TREE 2018-02-16 13:15:40 +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
Matthew Gaudet 93acbef591 Bug 1435569: Give the "NotAttached" case a name r=evilpie 2018-02-14 09:48:02 -05:00
Matthew Gaudet aeb5d551d3 Bug 1435569: Change CacheIRSpewer to allow less redundency in spewing. r=tcampbell
This patch adds an inner class to CacheIRSpewer that manages access to the
CacheIRSpewer and dramatically simplifies the consuming code.

Note: this changes the CacheIRSpewer to no longer use LockGuard; instead
the raw mutex is managed by CacheIRSpewer. This is because the RAII nature
of CacheIRSpewer::Guard prevents constructing the LockGuard if-and-only-if
the spewer is enabled.
2018-02-13 18:28:20 -05:00
Kathy Brade 34468c39be Bug 1433523 - Disable Session Restore in Permanent PBM. r=mikedeboer
When in permanent private browsing mode, always return false
for isAutomaticRestoreEnabled. This ensures that there will
not be any confusion inside nsBrowserContentHandler.defaultArgs
as to whether a one time session restore will occur.

Also, for consistency and in case someone looks at the pref,
avoid setting browser.sessionstore.resume_session = true during
browser shutdown.

This bug occurred when staging was not used during the update
process. On Windows it always occurred because staging is not
used even when it should be (https://trac.torproject.org/18292).
2018-02-12 22:08:00 +02:00
Brindusan Cristian 6b4baf23bf Backed out changeset e51946bbcce3 (bug 1306696) for bc failures on dom/html/test/browser_fullscreen-newtab.js on a CLOSED TREE 2018-02-16 12:29:16 +02:00
Benjamin Bouvier b0f479ae07 Bug 1422043: Don't use LookupCode for the interpreter entry in wasm profiling iteration; r=luke
MozReview-Commit-ID: 5Jb0rio2gMi

--HG--
extra : rebase_source : cfa51e62a854c11b9b7dc3fa156e569ed2aace48
2018-02-15 19:26:34 +01:00
Benjamin Bouvier e40ac0f512 Bug 1422043: Repurpose Code::lookupRange to only target function code ranges; r=luke
MozReview-Commit-ID: 8RSXBzKjzQu

--HG--
extra : rebase_source : 0e86bd7776b64f774436d5493b418187d1d2adc9
2018-02-15 17:12:07 +01:00
Benjamin Bouvier 31d6d007e9 Bug 1422043: Put all tiered data into one new data structure wasm::CodeTier; r=luke
MozReview-Commit-ID: 6V4xkEHTXW4

--HG--
extra : rebase_source : 65c035eb6734a02c3fb91628b71b93d286324b43
2018-02-15 12:41:55 +01:00
Benjamin Bouvier a08d83185d Bug 1422043: Use pointer arithmetic to determine a wasm function index; r=luke
MozReview-Commit-ID: 8Dn0zqqmIdD

--HG--
extra : rebase_source : 4d16c590a28e01bdb9eb932e5e7574cec97f376f
2018-02-13 12:46:28 +01:00
Brindusan Cristian 8770a04e9b Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-16 11:53:00 +02:00
Xidorn Quan 60fcd2889c Bug 1306696 part 4 - Add test for this bug. r=smaug
MozReview-Commit-ID: 1Pzt6DPif00

--HG--
extra : source : fcbd7a9891af0df8d92c1931472cbf9b7f1cf40e
2018-02-16 20:25:03 +11:00
Nicholas Nethercote 046941efbf Bug 1436863 - Only send possibly-changed prefs to content processes. r=glandium.
The meaning of "possibly-changed" is provided by the big comment above
MustSendToContentProcesses.

On a new profile this reduces the number of prefs sent like so:
- Command-line: 222 --> 3
- IPC:         3129 --> 130

On an older profile:
- Command-line: 222 --> 3
- IPC:         3165 --> 180

MozReview-Commit-ID: DcgedhXhZd8

--HG--
extra : rebase_source : acef424fab5031347cbcbd5c3e6a24ee66895ef9
2018-02-09 16:31:13 +11:00
Nicholas Nethercote ca3ec907fd Bug 1436863 - Factor out several calls to ContentPrefs::GetEarlyPref(i). r=glandium
MozReview-Commit-ID: 9lGgu7oJQga

--HG--
extra : rebase_source : 70a2c1f987ac062fb965eb3128ef189e476a5df1
2018-02-09 16:20:44 +11:00
Luke Wagner 57d972ed6a Bug 1428453 - Baldr: use new traps for indirect call to null trap (r=bbouvier) 2018-02-15 20:42:43 -06:00
Luke Wagner 3f567b26ea Bug 1428453 - Baldr: use new traps for the already-reported trap (r=bbouvier) 2018-02-15 20:41:50 -06:00
Luke Wagner 004a93c6fa Bug 1428453 - Baldr: use new traps for SIMD conversion trap (r=bbouvier) 2018-02-15 20:40:56 -06:00
Jeff Walden 0f14979435 Bug 1437970 - Use mozilla::Abs in js::powi rather than unary negation, to avoid signed-integer-overflow issues with INT32_MIN. r=anba
--HG--
extra : rebase_source : 7f6051fd53e856057aba807e93e11fbf5d56efbe
2018-02-15 17:15:24 -08:00
Jeff Walden 29bf925937 Bug 1437729 - Make fdlibm::atan2(y, x)'s handling for |x == 1.0| not potentially invoke signed integer overflow. r=arai
--HG--
rename : modules/fdlibm/patches/15_use_safer_strict_assign_on_visual_studio.patch => modules/fdlibm/patches/16_use_safer_strict_assign_on_visual_studio.patch
extra : rebase_source : c4d0988163c9f854d28e67c1c1568f7c1f99929a
2018-02-13 09:00:53 -08:00
Jeff Walden abf8ff7bfe Bug 1437731 - Convert a |uint16_t * uint16_t| to |1U * uint16_t * uint16_t| to avoid integer promotion of the original two operands resulting in signed integer overflow given the right runtime inputs. r=froydnj
--HG--
extra : rebase_source : acbc3eb181e8a044f0ffd8c5b0a7c96b59f57ffe
2018-02-13 08:59:54 -08:00
Jeff Walden 792f264ae3 Bug 1437739 - Don't blacklist the entirety of the JS engine for the signed integer overflow sanitizer. jstests and jit-tests only report two runtime signed overflows, so the problem appears easily well corralled enough to not exclude the entire engine. r=decoder
--HG--
extra : rebase_source : d501e76485383cdb88dafed009615b79dfc13fc5
2018-02-02 21:35:30 -08:00
Ralph Giles 07d65e6e07 Bug 1430928 - mozboot: install rust 1.24. r=froydnj DONTBUILD
Have `./mach boostrap` update users to at least rust 1.24.0,
which is the current stable release.

MozReview-Commit-ID: 2sma2p3BktJ
2018-02-15 17:07:37 -08:00
Jan de Mooij 74263e01cf Bug 1438232 - Handle lazy scripts in CanReuseScriptForClone without forcing a delazify/clone. r=shu 2018-02-16 01:06:12 +01:00
sotaro e32352899f Bug 1438408 - Shutdown RenderThread if it exists r=nical 2018-02-16 09:04:07 +09:00
Dylan Roeh 8819d6c766 Bug 1432233 - Eliminate GeckoBundles from public APIs in GeckoSession. r=snorp 2018-02-15 12:44:32 -06:00
Margareta Eliza Balazs 9003462ae4 Backed out 2 changesets (bug 1438292) for multiple failures in /builds/worker/workspace/mozharness/mozharness/base/script.py on a CLOSED TREE
Backed out changeset 8508dc544f8b (bug 1438292)
Backed out changeset a9db2b954595 (bug 1438292)
2018-02-16 00:04:54 +02:00
Jeff Muizelaar 96c7a33c31 Bug 1438425. Delete DocumentRenderer. r=jesup
It is unused.
2018-02-15 16:28:02 -05:00