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

581575 Коммитов

Автор SHA1 Сообщение Дата
Valentin Gosu f4c1136d9d Bug 1334465 - Set mIPCClosed to true before calling SendDeleteSelf in order to avoid race r=bagder
In the previous code, a race condition could cause us to call SendSetPriority() after calling SendDeleteSelf.

For example:
T1: SendDeleteSelf()
T2: if (!mIPCClosed) SendSetPriority()
T1: mIPCClosed = true

MozReview-Commit-ID: 3XOwCaphb2o

--HG--
extra : source : 4ebdab0e332892378558817e30d0138c95199ce5
2018-02-11 03:51:09 +01:00
Valentin Gosu da17e84fb1 Bug 1334465 - Make HttpChannelParent::mIPCClosed atomic r=bagder
MozReview-Commit-ID: 6irCJMAjzjW

--HG--
extra : source : bd315ae86709c3459a3dbf0778022ff3b1908723
2018-02-09 13:20:04 +01:00
Cosmin Sabou a37e19d5a9 Bug 1429361 - Disabled devtools/client/webconsole/new-console-output/test/mochitest/browser_webconsole_network_messages_expand.js for frequent failures. r=jmaher 2018-02-15 08:30:08 -05:00
Jon Coppeard 9b97fa3a81 Bug 1342416 - Preload module scripts r=baku 2018-02-15 13:18:59 +00:00
Jon Coppeard 3fb78c2a71 Bug 1342416 - Add JS API to associate scripts with DOM elements after compilation r=nbp 2018-02-15 13:18:59 +00:00
Xidorn Quan 3502123fbc Bug 1306696 part 4 - Add test for this bug. r=smaug
MozReview-Commit-ID: 1Pzt6DPif00

--HG--
extra : source : d13b32c799947ca9814ed9cfd6d032bc4572ff95
2018-02-15 23:57:41 +11:00
Paolo Amadini 2967d1be2f Bug 1434877 - Rework default styles for richlistbox autocomplete. r=mak
The default styles of richlistbox autocomplete were originally created to support the location bar popup, but now every autocomplete field uses the richlistbox version. This reworks the styles so that the number of overrides is minimized.

MozReview-Commit-ID: BwagKpMR5Dt

--HG--
extra : rebase_source : 52eda7f9d561dd23f279a3d15659e84f6c46eec6
2018-02-14 15:04:11 +00:00
Paolo Amadini 59e7401941 Bug 1436876 - Fix the value shown for the first suggestion in the search bar. r=florian
MozReview-Commit-ID: 6UGjosi3ppX

--HG--
extra : rebase_source : a499dcde26f501f126234fa13338b3c6b8a967ea
2018-02-09 15:21:49 +00:00
Johann Hofmann 165e9c4253 Bug 1421737 - Part 4 - Update site data manager tests to include cookies. r=Gijs
This adds a dedicated test for showing and deleting cookies in site data
management as well as amending tests for sorting, grouping, etc.

MozReview-Commit-ID: 59mN3uASwPP

--HG--
extra : rebase_source : 04fdb5c952a676cc99d73f2c7dfa54300682b977
2018-02-09 00:04:03 +01:00
Johann Hofmann 76c23ddfda Bug 1421737 - Part 3 - Simplify the "remove selected sites" dialog in site data management. r=Gijs
We are no longer implicitly deleting cookies when removing site data because
cookies are now listed as part of the site data manager. We're also no longer
deleting cookies based on the base domain, which makes most of the UI in the
removal dialog unnecessary. Instead of a tree box with sub domains we're now
showing a simple listbox domains to be deleted.

MozReview-Commit-ID: GWv5QVxEiiy

--HG--
extra : rebase_source : bc202a92d62ff8d4ddfd40ff4096c9ad1fdb0735
2018-02-05 17:42:54 +01:00
Johann Hofmann 0b02dd1d11 Bug 1421737 - Part 2 - Convert the siteListItem XBL binding to plain JS and add a cookies row. r=Gijs
This commit primarily intends to add cookies to the site data manager,
but while touching this code I transformed the siteListItem XBL binding to plain JS.

This also removes the #SiteDataRemoveSelectedDialog binding rule, because it is
unnecessary, <dialog> elements already have this binding.

MozReview-Commit-ID: EpTd2E0vPN9

--HG--
extra : rebase_source : 90e6666e565aaa74bd2545e13534bdebe8f090ee
2018-02-09 20:56:04 +01:00
Johann Hofmann cceba44da2 Bug 1421737 - Part 1 - Include cookies in SiteDataManager.jsm. r=Gijs
MozReview-Commit-ID: HovCREaRbgL

--HG--
extra : rebase_source : bf53095ef8b58bec3fcfed6d6b47c2f8db87192d
2018-02-09 20:47:07 +01:00
Jan de Mooij 41232bec4e Bug 1438126 part 3 - Don't release small ExecutablePools when they're still in use elsewhere. r=tcampbell 2018-02-15 12:37:09 +01:00
Jan de Mooij efcce26cc4 Bug 1438126 part 2 - Use mozilla::EnumeratedArray in ExecutableAllocator to track bytes per kind. r=tcampbell 2018-02-15 12:37:04 +01:00
Jan de Mooij 5f81eafeaa Bug 1438126 part 1 - Make CodeKind an enum class. r=tcampbell 2018-02-15 12:36:59 +01:00
Jonathan Kew b9dbb6ad68 Bug 1436997 - Add reftests to check that we accept the *-variations format strings iff the variation-font pref is enabled. r=jwatt 2018-02-15 10:56:43 +00:00
Jonathan Kew 252d458bf8 Bug 1436997 - When variation-font support is enabled, accept new CSS Fonts 4 format-hint strings for variation fonts. r=jwatt 2018-02-15 10:56:42 +00:00
Andreea Pavel a403fc3f13 Merge mozilla-central to mozilla-inbound. on a CLOSED TREE 2018-02-15 12:37:30 +02:00
Andreea Pavel 74b7ffee40 Merge mozilla-inbound to mozilla-central a=merge
--HG--
rename : js/src/jscompartment.cpp => js/src/vm/JSCompartment.cpp
rename : js/src/jscompartment.h => js/src/vm/JSCompartment.h
rename : js/src/jsscript.cpp => js/src/vm/JSScript.cpp
rename : js/src/jsscript.h => js/src/vm/JSScript.h
extra : amend_source : 9c233cb959c45e401189d089a094f9d141d2b912
2018-02-15 12:24:21 +02:00
Emilio Cobos Álvarez 3385ce6d00 Bug 1435566: Make sure to drop frames for manual NAC from display: contents nodes. r=bz
MozReview-Commit-ID: 9CQIueSPwCV
2018-02-15 11:22:39 +01:00
Olli Pettay b9ac198b01 Bug 1413102 - Ensure Shadow DOM boundaries are dealt properly in event handling, r=masayuki 2018-02-15 12:08:42 +02:00
Olli Pettay a3eb8e6045 Bug 1438357 - MozDOMPointerLock:Exited is dispatched when DOM is at unstable state, r=baku 2018-02-15 12:07:16 +02:00
Ciure Andrei fbd74d8452 Backed out changeset b8eeddf07480 (bug 1437374) for failing builds/worker/workspace/build/tests/reftest/tests/layout/reftests/display-list/1437374-1.html a=backout on a CLOSED TREE 2018-02-15 11:37:21 +02:00
Kartikaya Gupta 73cdb9f334 Bug 1437949 - Follow-up to make the GL context current before poking the WR renderer. r=sotaro
MozReview-Commit-ID: DIpnRZcGb3Q
2018-02-15 04:24:13 -05:00
Jan de Mooij bc9fdd80d1 Bug 1425580 part 10 - Devirtualize LNode::numSuccessors and LNode::getSuccessor. r=nbp 2018-02-15 10:18:08 +01:00
Andrea Marchesini e5c251aaca Bug 1438163 - BroadcastChannel must release the IPC actor using a WorkerControlRunnable when the worker thread goes away, r=smaug 2018-02-15 08:50:49 +01:00
Yura Zenevich 7e286766a3 Bug 1428443 - allow panels to override picker functionality when they are active. r=pbro
MozReview-Commit-ID: 6VE4Y8FYfoN
2018-02-14 23:57:19 -05:00
Jan Odvarko 96233200ee Bug 1311171 - Implement the devtools.network.onRequestFinished API event; r=jdescottes,rpl
MozReview-Commit-ID: IymuzcUg0VN

--HG--
extra : rebase_source : 5c262babe60132c9a73acc7dadf3b38f30133ecc
2018-02-14 11:32:10 +01:00
Matthew Noorenberghe 75efe914ce Bug 1438349 - Disable credit card support for Form Autofill in Beta 59+. r=Dolske
MozReview-Commit-ID: fhS44Dk5bL

--HG--
extra : rebase_source : ed0da0db8721cb96ec0bc0bbd969a5e5790c8c32
2018-02-14 16:29:28 -08:00
Hiroyuki Ikezoe 14075ea4f4 Bug 1438397 - Don't process RepaintSelection() if the presshell is being destroyed. r=masayuki
MozReview-Commit-ID: 4vihEDBw7BH

--HG--
extra : rebase_source : 1f9a89b543d4f41ab6cf22e840d4ea279f05aead
2018-02-15 11:21:32 +09:00
Masayuki Nakano 18912959bd Bug 1406726 - HTMLEditRules::WillInsertBreak() should reset mNewNode with caret position r=m_kato
HTMLEditRules::WillInsertBreak() started to use HTMLEditRules::MakeBasicBlock()
to wrap existing inline elements with default paragraph separator if inline
elements are children of editing host.  However,
HTMLEditRules::ApplyBlockStyle() called by HTMLEditRules::MakeBasicBlock() sets
mNewNode to last new block node.  So, if it wraps inline elements after caret
position, mNewNode becomes after expected caret position and
HTMLEditRules::AfterEditInner() will move caret into it.

This patch make HTMLEditRules::WillInsertBreak() reset mNewNode with
caret position after calling HTMLEditRules::MakeBasicBlock().

Additionally, this patch fixes a bug of HTMLEditor::IsVisibleBRElement().
That is, it uses only editable nodes to check if given <br> element is
visible.  However, editable state is not related to this check.  If <br>
element is followed by non-editable inline node (except invisible data
nodes), it always visible.  This bug caused getting wrong nodes with
HTMLEditRules::GetNodesFromSelection() which is used by
HTMLEditRules::MakeBasicBlock().  Therefore, this patch also adds lots of
EditorBase::Get(Next|Previous)ElementOrText*() and
HTMLEditor::Get(Next|Previous)HTMLElementOrText*() to ignore only invisible
data nodes.

Note that even with this fix, the range of nodes computed by
HTMLEditRules::GetNodesFromSelection() is still odd if only non-editable
elements follow a <br> node which is first <br> element after the caret
position.  However, what is expected by the execCommand spec is unclear.
So, automated test added by this patch checks current inconsistent behavior
for now.

MozReview-Commit-ID: 2m52StwoEEH

--HG--
extra : rebase_source : 6b9b2338e35c4d2e89a405fd8e1ffc7b0873ca1e
2018-02-13 19:01:42 +09:00
Dorel Luca 0a16fae4da Backed out changeset eedbb054f2ae (bug 1437694) for failing Browser chrome on browser/components/search/test/browser_searchbar_openpopup.js 2018-02-15 06:49:07 +02:00
Lars T Hansen 45b041d44c Bug 1437780 - Wasm baseline, remove platform dependencies. r=bbouvier
--HG--
extra : source : 5ba01ae30fc713d09ed5f26c912c07f25b5c0a0a
2018-02-13 08:00:38 +01:00
Matt Woodrow adf4e4cd1a Bug 1437374 - Don't intersect the rebuild rect with the frame's overflow area if we're about to take the displayport into account. r=miko 2018-02-15 19:31:47 +13:00
Botond Ballo 0c2204538e Bug 1437694 - Gracefully recover from hit testing bugs affecting scrollbar dragging. r=kats
The recovery is only enabled for release builds, to avoid papering over
such hit testing bugs. On nightly builds, a diagnostic assert is issued.

MozReview-Commit-ID: Aos0j0jv6Lb

--HG--
extra : rebase_source : 1cb7fa24ed1f3cba7344f52670626bdeb41b51cc
2018-02-12 17:58:36 -05:00
Coroiu Cristina 4d5bfdec43 Backed out changeset 067ee834b07b (bug 1404688) for xpcshell failures at toolkit/mozapps/extensions/test/xpcshell/test_LightweightThemeManager.js 2018-02-15 05:15:10 +02:00
Tim Nguyen 461f749a68 Bug 1404688 - Make headerURL optional and remove text-shadow when there is no headerURL. r=jaws
MozReview-Commit-ID: BWhStvcLpkL

--HG--
extra : rebase_source : b50632db25916f113cd85e089759e892493e3be3
2018-02-15 02:30:44 +00:00
Michael Froman a9c9593126 Bug 1436759 - Release NrIceMediaStreams on sts thread in transport_unittests.cpp. r=bwc
MozReview-Commit-ID: BLasqfQJxw

--HG--
extra : rebase_source : bca09672917ce5fc4a5450864c9f461952847b3f
2018-02-14 14:24:50 -06:00
Emilio Cobos Álvarez 0ec91dd66b Bug 1429962: Don't add frames / reframe text that is going to get reframed anyway. r=bz
MozReview-Commit-ID: GuWjYYP0dBR

--HG--
extra : rebase_source : 327207f7ecf00771a3e2ecb807464577065091fd
2018-02-14 12:35:43 +01:00
Nicholas Nethercote b91c61842a Bug 1438088 - Store a Pref* in each hash table slot instead of a Pref. r=erahm.
This has two advantages. First, it reduces memory usage, as per the following
calculation.

64-bit:
- Old sizes:
  - sizeof(Pref) = 32
- New sizes:
  - sizeof(PrefEntry) = 16
  - sizeof(Pref) = 32
- Change:
  - -16 per empty slot in the hash table
  - +16 per used slot
  - A win if less than half the table slots are used

32-bit
- Old sizes:
  - sizeof(Pref) = 20
- New sizes:
  - sizeof(PrefEntry) = 8
  - sizeof(Pref) = 16
- Change:
  - -12 per empty slot in the hash table
  - +4 per used slot in the hash table
  - A win if table is < 75% full

Table size:
- The table is currently less than half full: ~3100 used out of 8192 slots.
- The table is always <= 75% full, because that's the max load factor (for
  non-gigantic tables).
- Therefore it's a win for both cases.

Old sizes, chrome process, 64-bit:

> 718,712 B (00.36%) -- preferences
> +--262,176 B (00.13%) -- hash-table
> +--197,384 B (00.10%) -- callbacks
> +--114,688 B (00.06%) -- pref-name-arena
> +---92,240 B (00.05%) -- root-branches
> +---30,456 B (00.02%) -- string-values
> +---21,688 B (00.01%) -- cache-data
> +-------80 B (00.00%) -- misc

New sizes, chrome process, 64-bit:

> 672,568 B (00.41%) -- preferences
> +--181,160 B (00.11%) -- callbacks
> +--131,104 B (00.08%) -- hash-table      # smaller
> +--114,688 B (00.07%) -- pref-name-arena
> +--101,152 B (00.06%) -- pref-values     # new
> +---92,240 B (00.06%) -- root-branches
> +---30,456 B (00.02%) -- string-values
> +---21,688 B (00.01%) -- cache-data
> +-------80 B (00.00%) -- misc

Old sizes, smallest content process, 64-bit:

> 500,712 B (02.89%) -- preferences
> +--262,176 B (01.51%) -- hash-table
> +--114,688 B (00.66%) -- pref-name-arena
> +---62,520 B (00.36%) -- callbacks
> +---30,456 B (00.18%) -- string-values
> +---17,832 B (00.10%) -- cache-data
> +---12,960 B (00.07%) -- root-branches
> +-------80 B (00.00%) -- misc

New sizes, smallest content process, 64-bit:

> 470,792 B (02.70%) -- preferences
> +--131,104 B (00.75%) -- hash-table       # smaller
> +--114,688 B (00.66%) -- pref-name-arena
> +--101,152 B (00.58%) -- pref-values      # new
> +---62,520 B (00.36%) -- callbacks
> +---30,456 B (00.17%) -- string-values
> +---17,832 B (00.10%) -- cache-data
> +---12,960 B (00.07%) -- root-branches
> +-------80 B (00.00%) -- misc

The "hash-table" values drop by more than the size of the new "pref-values"
value.

On 64-bit, this reduces memory usage per process by 30--40 KB. On 32-bit, the
number is slightly more.

The second major advantage of this change is flexibility -- it opens up the
possibility of different Pref objects being stored in different way. For
example, static Prefs could be stared statically, letting them be shared
between processes so long as they don't change (see bug 1437168).

MozReview-Commit-ID: KmgbJaoOQ1J

--HG--
extra : rebase_source : 9f8201583432c1414ab3e17e80fe23a369ac264b
2018-02-02 16:30:13 +11:00
sotaro 71d9e881b1 Bug 1436020 - Disable WebRender profiler UI during readback r=nical 2018-02-15 11:29:40 +09:00
Eric Rahm 3efc420b11 Bug 1437693 - Stop warning about unknown content lengths. r=bkelly
--HG--
extra : rebase_source : 943658882837ad790542231634d2a24c21906094
2018-02-12 14:54:14 -08:00
Eric Rahm 87736606f3 Bug 1436768 - Avoid initializing LogModuleManager more than once. r=froydnj
This adds some assertions to make the intended usage of LogModuleManager::Init
more clear.

--HG--
extra : rebase_source : c61e1736cedfbeaa96951ba40cdc954bbc0094d5
2018-02-08 16:25:07 -08:00
Dorel Luca 011cfbabae Backed out changeset ab4aab822769 (bug 1426467) for Mochitest failure on dom/workers/test/test_suspend.html 2018-02-15 01:31:10 +02:00
Andrew Osmond ac545b4747 Bug 1433646 - Allow ContentChild::Recv(Re)InitRendering to fail with the GPU process. r=rhunt
When ContentChild::RecvInitRendering is received, it tries to setup the
IPDL actors related to rendering. If the GPU process crashes before or
during this process, it will fail, and cause the content process to
crash as well. This is unnecessary because the UI process will either
restart the GPU process, or subsume its job into itself, and trigger
ContentChild::RecvReinitRendering. It is a similar case for failures in
ContentChild::RecvReinitRendering.

Since the GPU process crashing should be a recoverable scenario, we now
check if the remote IPDL actor is in the UI or the GPU process. If it is
in the UI process, it will fail/crash as it does today. If it is in the
GPU process, it will wait for the next
ContentChild::RecvReinitRendering.

For failures that are not IPDL related (e.g. failed to get some resource
like spawning a thread), we release assert specifically for those
failures. They are not recoverable.
2018-02-14 18:07:53 -05:00
Luke Wagner 56087150ce Bug 1437546 - Odin: check MaxParams and MaxLocals when asm.js emits wasm (r=bbouvier)
--HG--
extra : rebase_source : ecdcc960fd050c9ad80da41576ba2a600b27605a
2018-02-14 16:57:56 -06:00
Luke Wagner 4923d63d42 Bug 1437534 - Odin: ensureBallast in EmitCallArgs loop (r=bbouvier)
--HG--
extra : rebase_source : 29bf2f7cfa5fb4d79ec556dd8d4d991dd8f49001
2018-02-14 16:57:06 -06:00
Dorel Luca 75f385b6d6 Merge mozilla-centra to mozilla-inbound 2018-02-15 00:37:44 +02:00
Coroiu Cristina 8d8b007f64 Backed out changeset 7953b08f4886 (bug 1437374) for reftest failures at reftest/tests/layout/reftests/display-list/1437374-1.html 2018-02-15 00:31:36 +02:00
Dorel Luca 4234703a53 Merge mozilla-inbound to mozilla-central a=merge 2018-02-15 00:23:02 +02:00