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

582077 Коммитов

Автор SHA1 Сообщение Дата
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
Nihanth Subramanya 64a18c9611 Bug 1438511 - Copy top window's uidensity attribute in sidebarUtils.js instead of forcing gUIDensity.update(). r=florian
MozReview-Commit-ID: Ljwn5iyV37V

--HG--
extra : rebase_source : e21d8f8ab9c6e035a98f6ffdf90ab640c5d19973
2018-02-15 19:59:13 +05:30
Miko Mynttinen 7a19c4858c Bug 1438165 - Ensure that all display items have a unique type r=mattwoodrow
MozReview-Commit-ID: HIlSQFcvG9A

--HG--
extra : rebase_source : aba9cdf8e578ed3fd98a77aef8a183dac08baea1
extra : amend_source : 329ff3b9124c05b35ff1e0807afe9ac455bbebce
2018-02-15 15:26:56 +01:00
shindli 763b589345 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-02-18 11:40:07 +02:00
Honza Bambas 83162dfc6a Bug 1433557 - Add a null-check for transaction when setting TCP Fast Open state on an associated connection, r=valentin 2018-02-16 07:48:00 +02:00
Sebastian Hengst a7c6902c98 Backed out 6 changesets (bug 1434717) due to issues determined during fuzzing
Backed out changeset 52f1dfd75ff7 (bug 1434717)
Backed out changeset 286c42a171d8 (bug 1434717)
Backed out changeset bf1d9d0ebbe7 (bug 1434717)
Backed out changeset 5c5ec856f0a6 (bug 1434717)
Backed out changeset 43a875bf1c8a (bug 1434717)
Backed out changeset 7fd6eaf7fc97 (bug 1434717)
2018-02-18 11:29:05 +02:00
Nihanth Subramanya a37bd50fe6 Bug 1438511 - Don't update sidebar UI density before SidebarUI is initialized, or if the sidebar is not open. r=florian
MozReview-Commit-ID: GTfBrSccecX

--HG--
extra : rebase_source : 878f733204cfcea79590975a3b3b93e365b7963c
2018-02-15 19:31:03 +05:30
Rail Aliiev ad68e73d49 Bug 1398796 - Do uptake monitoring in TC r=mtabara
MozReview-Commit-ID: 5xqEQUWOmqf

--HG--
rename : build/sparse-profiles/update-verify => build/sparse-profiles/mozharness
2018-02-15 08:49:45 -05:00
Cosmin Sabou bffee58de2 Bug 1434777 - Disabled toolkit/components/extensions/test/mochitest/test-oop-extensions/test_ext_contentscript_devtools_metadata.html for frequent failures. r=jmaher 2018-02-16 08:33:26 -05:00
Chris Peterson c6373306f8 Bug 1436263 - Part 5: Add a mach lint for virtual function declarations with multiple specifiers. r=froydnj r=ahal
Virtual function declarations should specify only one of `virtual`, `final`, or `override`, as per the Mozilla C++ style guide:

https://developer.mozilla.org/en-US/docs/Mozilla/Developer_guide/Coding_Style

This lint warns about:

  virtual void Bad1() final
  void Bad2() final override
  void Bad3() override final

Caveats: This lint doesn't warn about `virtual void NotBad() override` at this time because there are 8000+ instances. It also doesn't warn about function declarations that span multiple lines because the regex can't match across line breaks.

MozReview-Commit-ID: LcBsOAKKgz7

--HG--
extra : rebase_source : 4da72ffac59acdc9796e3f540f24bb97af989cd0
2018-02-15 00:50:02 -08:00
Jason Orendorff d928a7f5ea Bug 1438278 - Part 5: Rename some files into js/src/vm. r=jandem.
jsiter* -> vm/Iteration*
jsopcode* -> vm/BytecodeUtil*

--HG--
rename : js/src/jsopcodeinlines.h => js/src/vm/BytecodeUtil-inl.h
rename : js/src/jsopcode.cpp => js/src/vm/BytecodeUtil.cpp
rename : js/src/jsopcode.h => js/src/vm/BytecodeUtil.h
rename : js/src/jsiter.cpp => js/src/vm/Iteration.cpp
rename : js/src/jsiter.h => js/src/vm/Iteration.h
extra : rebase_source : 0e1ca938ad4d0143ddd0139f557578f8199b127f
extra : amend_source : fc0f8886d045d24a49472b0311e4a5e3f9e7ead9
extra : source : 61d959cb5208c4f5a448ef06058d92c66da906ce
2018-02-14 16:45:07 -06:00
Jason Orendorff c1d0be7190 Bug 1438278 - Part 4: Rename some files into js/src/util. r=jandem.
jsdtoa.* -> util/DoubleToString.*
jswin.h -> util/Windows.h
jsnativestack.cpp -> util/NativeStack.cpp
jsnativestack.h -> util/NativeStack.h
jsnspr.h -> util/NSPR.h

--HG--
rename : js/src/jsdtoa.cpp => js/src/util/DoubleToString.cpp
rename : js/src/jsdtoa.h => js/src/util/DoubleToString.h
rename : js/src/jsnspr.h => js/src/util/NSPR.h
rename : js/src/jsnativestack.cpp => js/src/util/NativeStack.cpp
rename : js/src/jsnativestack.h => js/src/util/NativeStack.h
rename : js/src/jswin.h => js/src/util/Windows.h
extra : rebase_source : 189adff9f7cb74dfbd101b6b39986d63b0274096
extra : amend_source : 34efb7c0a7dd23bb797940558616e0657b20ef20
extra : intermediate-source : 16fc0963cac52ccb1ed2de9c174855e8a3cb2b52
extra : source : 7b8377e2efd5994b37b65bebd1fdd4367a849b93
2018-02-14 16:04:42 -06:00
Jason Orendorff 50d9e51a7d Bug 1438278 - Part 3: Rename some files into js/src/gc. r=jonco.
jsgc.* -> gc/GC.*
jshashutil.h -> gc/HashUtil.h
jsweakmap.* -> gc/WeakMap.*
vm/WeakMapPtr.cpp -> gc/WeakMapPtr.cpp

--HG--
rename : js/src/jsgcinlines.h => js/src/gc/GC-inl.h
rename : js/src/jsgc.cpp => js/src/gc/GC.cpp
rename : js/src/jsgc.h => js/src/gc/GC.h
rename : js/src/jshashutil.h => js/src/gc/HashUtil.h
rename : js/src/jsweakmap.cpp => js/src/gc/WeakMap.cpp
rename : js/src/jsweakmap.h => js/src/gc/WeakMap.h
rename : js/src/vm/WeakMapPtr.cpp => js/src/gc/WeakMapPtr.cpp
extra : rebase_source : 8435ece63e11545a633ae0cdf6ed4a46cb017457
extra : amend_source : cfb63d098bf2fb27d63221a24457d8aaf8884137
extra : intermediate-source : 2d498c561ba67baf3ad09b6c29f4a8985997928c
extra : source : c1df7b31137da2bbea5ae1169cc07dd0f4974376
2018-02-14 16:00:46 -06:00
Jason Orendorff 7ff58bb5a7 Bug 1438278 - Part 2: Rename a template because there is another global template with the same name in jsgc.cpp. r=jonco.
--HG--
extra : rebase_source : 7bc4943739195acbfe1b52a543f32b1ecc99736a
extra : amend_source : 21dbeda4baa38db78756b31472f854994e3236e6
2018-02-16 10:54:58 -06:00
Jason Orendorff 2001443c7d Bug 1438278 - Part 1: Rename json.* -> builtin/JSON.*. r=jandem.
--HG--
rename : js/src/json.cpp => js/src/builtin/JSON.cpp
rename : js/src/json.h => js/src/builtin/JSON.h
extra : rebase_source : 1fc30184bc2b920b04fd395e301d999b1b690297
extra : amend_source : 578a7f74cf073f584ede82ed37cb70ecb1f3aacc
2018-02-14 13:35:54 -06:00
Jason Orendorff 49b816a2e2 Bug 1438278 - Part 0: Fix places where bug 1429206 left old filenames in comments. r=jandem.
--HG--
extra : rebase_source : 96ed5c3b7b4cf201675fa86ebc0e327a49d6ad2e
2018-02-14 15:56:41 -06:00
Jeff Muizelaar 167ea61674 Bug 1438631. Use a similar drawtarget when painting masks. r=mstange
Avoiding an offscreen drawtarget will avoid using Direct2D with webrender,
let us record the masking operation, and also give us OMTP.
2018-02-16 15:52:45 -05:00
Jeff Muizelaar 12ce692c26 Bug 1438631. Fix typos in IntoLuminance recording event. 2018-02-16 15:52:44 -05:00
Jason Orendorff 6554ba1e9a Bug 1438670 - Tweak gc/GCIteration filenames one more time. r=jonco.
--HG--
rename : js/src/gc/GCIteration-inl.h => js/src/gc/PrivateIterators-inl.h
rename : js/src/gc/Iteration.cpp => js/src/gc/PublicIterators.cpp
rename : js/src/gc/Iteration.h => js/src/gc/PublicIterators.h
extra : rebase_source : 0beaeb757792b82c7d4a0f2b8f112e6b9840dbf5
2018-02-16 09:41:12 -06:00
Jonathan Kew f668fe528e Bug 1438674 - For non-OpenType/TrueType fonts, use synthesized glyph origin & advance for vertical shaping, rather than just refusing to use the font. r=dholbert 2018-02-16 12:40:43 +00:00
Masayuki Nakano cf83ee7bb4 Bug 1438157 - part 2: Remove unnecessary second argument of EventUtils.synthesizeKey() r=smaug
Note that this patch also replaces legacy VK_* with KEY_*, and replaces
synthesizeKey() for inputting some characters with sendString() because
it's better and clearer what it does and it sets shiftKey state properly.

MozReview-Commit-ID: De4enbjux3T

--HG--
extra : rebase_source : 2296b84bff8e22f01eeb48cd8614fac5db11136a
2018-02-15 04:15:39 +09:00
Matthew Gaudet 93acbef591 Bug 1435569: Give the "NotAttached" case a name r=evilpie 2018-02-14 09:48:02 -05:00
Paolo Amadini f5f1c89ced Bug 1437811 - Part 1 - Fix test that didn't wait for PanelMultiView events. r=Gijs
MozReview-Commit-ID: CxWMEkzGMyZ

--HG--
extra : rebase_source : c1862d866caf1808300b174c5bc75f7f3cbddbb3
2018-02-14 14:12:57 +00:00
Masayuki Nakano a10092f7a0 Bug 1438157 - part 1: Make EventUtils.synthesizeKey()'s second argument, aEvent, optional r=smaug
Most callers of EventUtils.synthesizeKey() call it only with the first argument,
aKey.  Therefore, it should be optional argument.

This patch also fixes a bug of EventUtils.sendChar(). It sets shiftKey to
true even for "0" - "9" and " ".  When I replace syntesizeKey() which just
type text with sendString() in the following patch, I hit this bug.

MozReview-Commit-ID: 9ndL9jLho2N

--HG--
extra : rebase_source : d9dc6bd5f9091da674f0481b4b0098694360a125
2018-02-14 22:31:27 +09:00
Johann Hofmann 256143626d Bug 1438806 - Set correct default permission when showing blocked popups in the identity popup. r=prathiksha
MozReview-Commit-ID: 9dSsGViBbbU

--HG--
extra : rebase_source : cc6759d4b7dffd94312d418ea8bfb1ca75203e01
2018-02-16 12:21:02 +01:00
Margareta Eliza Balazs f9426474a8 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-02-18 18:44:47 +02:00
Masayuki Nakano 2a6bd77194 Bug 1438133 - Ctrl + Enter should cause keypress event even though the key combination doesn't input any character r=smaug
Currently, we dispatch keypress event when Enter is pressed without modifiers
or only with Shift key.  However, the other browsers dispatch keypress event
for Ctrl + Enter in any platforms even if it doesn't cause any text input.
So, we should fire keypress event for Ctrl + Enter even in strict keypress
dispatching mode.

Note that with other modifiers, it depends on browser and/or platform.
So, anyway, web developers shouldn't use keypress event to catch
Alt + Enter, Meta + Enter and two or more modifiers + Enter.

MozReview-Commit-ID: 3uUMkhL5VfJ

--HG--
extra : rebase_source : 8149acd958b238c8216f683a42fa05c3cf24570a
2018-02-14 21:21:18 +09: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
Marco Bonardo 579018b9e5 Bug 1433938 - Move Synced Tab matches above general history matches in the Address Bar. r=adw
Puts Remote (Synced) Tab matches before other history results.
Changes deduping algorithm to replace simple history matches with tab matches when the url is the same.
Keeps overriding a Remote Tab with a Local Tab when the url is the same.

MozReview-Commit-ID: 76urDklKtRF

--HG--
extra : rebase_source : f5d37af3d0c0714e0f33b5548c4bb3b90519543b
2018-02-13 14:34:44 +01:00
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
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
Richard Marti 872d855cee Bug 1437284 - Fix the spinbuttons in in-content pages. r=dao
MozReview-Commit-ID: LhRPG9tGMmE
2018-02-10 16:45:00 +01:00
Dorel Luca e3b96b7694 Merge mozilla-central to mozilla-inbound 2018-02-17 12:01:23 +02:00
Jonathan Kew f33b65d235 Bug 1438522 - Cherry-pick recent FreeType fixes for variation fonts and flex rendering. r=jrmuizel 2018-02-17 09:04:16 +00:00
Tooru Fujisawa d58a217b1c Bug 1414674 - Do not enter the compartment of the target window when calling KeyframeEffect and KeyframeEffectReadOnly constructor via Xray. r=bz,birtles
KeyframeEffect and KeyframeEffectReadOnly constructors can run in the caller
compartment, which is okay because of the following reasons:

1. The target window global is used for most operation:
     * KeyframeEffectReadOnly::ConstructKeyframeEffect uses the target window
       global instead of current global.
     * KeyframeEffectParamsFromUnion which receives `aGlobal.CallerType()`

   In Xray case, Web Animations API can be disabled on web content
   (currently disabled on beta/release by default), and in that case some API
   won't work even it's triggered from WebExtensions, but it should be fine.

2. GetKeyframesFromObject is executed in the caller's compartment to access
   the passed-in JSObject that is keyframe, with iterable/iterator protocols.
   This operation doesn't perform any GCThing allocation on the target window
   global.
2018-02-17 17:21:13 +09:00
Steve Fink 056f86b89a Bug 1439003 followup - avoid asm(), ignore hazards
Nuisance fixes on a CLOSED TREE.

--HG--
extra : amend_source : e12639d401d3a07de3714d3d6d8497459a703157
2018-02-16 16:56:44 -08:00