Commit Graph

608731 Commits

Author SHA1 Message Date
Adrian Wielgosik
be0c1a4f55 Bug 1481645 - Remove some redundant uses of do_QueryInterface. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D2893

--HG--
extra : moz-landing-system : lando
2018-08-13 09:05:19 +00:00
Tudor-Gabriel Vîjială
1c6dbcaf24 Bug 1474869 - Fix mach try fuzzy when using multiple source checkouts. r=ahal
MozReview-Commit-ID: Dz9EOClembh

--HG--
extra : rebase_source : 2d82cd4f2aa86df5052023f1bbd912162bdb2a84
2018-08-06 11:36:09 +01:00
trisha
7526b69b1d Bug 1476509 - Implement a new clock skew error page r=flod,johannh
MozReview-Commit-ID: 5WmgrxUcSZ6

--HG--
extra : rebase_source : 340fd6b1468e4b0ecd80a7eea2233a8d5499da40
2018-08-02 22:59:04 +05:30
Alexandre Poirot
caaa9566c0 Bug 1482090 - Instanciate Debugger API in the same global as DevTools modules. r=jdescottes
MozReview-Commit-ID: LS6t5CFSVom

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

--HG--
extra : moz-landing-system : lando
2018-08-13 12:47:40 +00:00
Alexandre Poirot
5135b70a76 Bug 1299344 - Fix exceptions when accessing DOMWindow and contentCharset when reload page against the netmonitor. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D3020

--HG--
extra : moz-landing-system : lando
2018-08-13 12:37:41 +00:00
Nicolas Chevobbe
f29e124ad5 Bug 1479521 - Only run browser_jsterm_accessibility.js with old jsterm; r=Honza.
Depends on D2826

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

--HG--
extra : moz-landing-system : lando
2018-08-13 10:07:00 +00:00
Nicolas Chevobbe
7a43defa74 Bug 1479521 - Update tests to match the new jsterm behavior; r=Honza.
Some test were relying on the existence of the complete function
and were using it in order to do integration test.
We modify those and instead trigger real user interaction for
making those assertions.
Additional test cases are added to the test files they fit in
so we have a broader coverage of user interaction in regard
to autocompletion.

Depends on D2825

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

--HG--
extra : moz-landing-system : lando
2018-08-13 08:37:09 +00:00
Nicolas Chevobbe
37a433fdf6 Bug 1479521 - Remove browser_jsterm_no_autocompletion_on_defined_variables.js; r=Honza.
The test wasn't doing what it was supposed to do (there was definitely
an autocomplete text displayed, we were not waiting properly for it.).
Also, the original issue with this was that that an unwanted token was
entered instead of the one the user wanted (user generated). Maybe at
that time the autocomplete did not contained user defined variables,
but now we do, and we are testing that in other tests.

Depends on D2824

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

--HG--
extra : moz-landing-system : lando
2018-08-13 08:39:16 +00:00
Nicolas Chevobbe
01f2cedfe4 Bug 1479521 - Refactor JsTerm autocompletion behavior; r=Honza.
We used to rely on different things to both display
the autocompletion text and accept an autocompletion.
This patches introduces new helper functions in order
to make the code more easy to reason about.
We also rollback our decision to show the popup when
there is only 1 item in the autocompletion list in
order to be more consistent with what Chrome does.

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

--HG--
extra : moz-landing-system : lando
2018-08-13 10:07:15 +00:00
ffxbld
2c0753e09e No Bug, taskcluster/docker/funsize-update-generator pipfile-update. r=sfraser
Differential Revision: https://phabricator.services.mozilla.com/D3194

--HG--
extra : moz-landing-system : lando
2018-08-13 10:08:49 +00:00
Nicolas Chevobbe
8aa0bb46cf Bug 1482826 - Fix DAMP autocomplete test; r=Honza.
We can now simply call setInputValue and the autocompletion
will happen. Since we are forcing the call to jsterm.complete,
there were 2 calls made to the server, making the measurements
in the test erroneous.
This also revealed a race in setInputValue: the text was
set by codeMirror before the cursor was actually moved. Which
means we were sending an erroneous autocompletion query to the
server.
We use codeMirror.operation to tell codeMirror to both set the
text and the cursor in a single operation.

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

--HG--
extra : moz-landing-system : lando
2018-08-13 10:07:18 +00:00
Bogdan Tara
b0c136d0b1 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-13 12:59:10 +03:00
Bogdan Tara
8374f362e7 Merge inbound to mozilla-central. a=merge 2018-08-13 12:56:44 +03:00
Olli Pettay
2b7b8b9b62 bug 1482820, fix a small typo in nsFocusManager.cpp, r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D3193

--HG--
extra : moz-landing-system : lando
2018-08-13 09:43:05 +00:00
Sylvestre Ledru
7d9218913e bug 1482792 - Only enable -Wno-unused-private-field for clang. Doesn't exit (yet?) in gcc r=jya
Differential Revision: https://phabricator.services.mozilla.com/D3190

--HG--
extra : moz-landing-system : lando
2018-08-13 08:49:42 +00:00
Alex Chronopoulos
0a6ae381d4 Bug 1481957 - Make input device enumeration for Android similar to other platforms when cubeb is disabled. r=padenot
In the case that cubeb is disabled we do not need to offer the dummy device on android because will leave gUM request thinking that everything is good, which will create other side effects. Also the special handling for android increases the complexity.

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

--HG--
extra : moz-landing-system : lando
2018-08-13 08:25:38 +00:00
Ionut Goldan
958d7d166b Bug 1472979 - Add Web Tooling Benchmark as a jsshell-bench test r=jmaher
Add Web Tooling Benchmark & (WIP) setup fetch task

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

--HG--
extra : moz-landing-system : lando
2018-08-13 07:29:07 +00:00
Daisuke Akatsuka
32c964c1cf Bug 1477598 - Part 5: Remove extra css loading. r=me 2018-08-13 16:26:15 +09:00
Masayuki Nakano
e235a4e390 Bug 1482015 - Create HTMLEditor::RemoveInlinePropertyInternal() for internal use r=m_kato
For making it possible to distinguish if HTMLEditor::RemoveInlineProperty() is
called by outer class or editor itself, this patch creates
Create HTMLEditor::RemoveInlinePropertyInternal() and makes the internal
callers use this new method.

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

--HG--
extra : moz-landing-system : lando
2018-08-13 06:16:24 +00:00
James Teh
0912c08892 Bug 1480060: Support aria-multiselectable on role tablist. r=MarcoZ
Differential Revision: https://phabricator.services.mozilla.com/D3076

--HG--
extra : moz-landing-system : lando
2018-08-13 06:28:35 +00:00
Masayuki Nakano
205851fb7c Bug 1482013 - Create HTMLEditor::SetInlinePropertyInternal() for internal use r=m_kato
For making it possible to distinguish if SetInlineProperty() is called by outer
class or the editor itself, this patch creates SetInlinePropertyInternal().

Additionally, this makes the first argument of SetInlineProperty() from
nsAtom* to nsAtom& since it's not nullable.

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

--HG--
extra : moz-landing-system : lando
2018-08-13 05:16:10 +00:00
Masayuki Nakano
c0e869978e Bug 1482012 - part 2: Create TextEditor::PasteAsAction() as non-virtual method for outer C++ code r=m_kato
User may paste a lot with pressing Accel+V for a while (i.e., with auto repeat).
So, calling nsIEditor::Paste() may be in a hot path and we can now make
non-virtual public method with AsHTMLEditor().

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

--HG--
extra : moz-landing-system : lando
2018-08-13 04:37:56 +00:00
Masayuki Nakano
fa50ac3342 Bug 1482012 - part 1: Create HTMLEditor::PasteInternal() for internal use r=m_kato
HTMLEditor::Paste() is an override of nsIEditor.  So, it's virtual and public.
We should use protected method for internal use and should make it non-virtual
if possible.  This patch creates PasteInternal() which is a protected
non-virtual method.

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

--HG--
extra : moz-landing-system : lando
2018-08-13 04:15:34 +00:00
Daisuke Akatsuka
021e22e1ec Bug 1477598 - Part 4: Add a listener to detect updating the extensions. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D3090
2018-08-10 17:04:32 +09:00
Daisuke Akatsuka
a13587f219 Bug 1477598 - Part 3: Implement inspection action. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D3087
2018-08-10 16:40:46 +09:00
Daisuke Akatsuka
780f8d0ac7 Bug 1477598 - Part 2: Implement UI for extensions. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D3084
2018-08-10 16:04:47 +09:00
Daisuke Akatsuka
d167eeed73 Bug 1477598 - Part 1: Implement a mechanism to dispatch extensions. r=jdescottes
Differential Revision: https://phabricator.services.mozilla.com/D3083
2018-08-10 15:56:05 +09:00
Martin Thomson
59b2975f6c Bug 1479501 - Disable TLS version fallback, r=ekr
--HG--
extra : source : 91fcd26d7794d96c757a44cdffe6e799ccdc6d3a
extra : amend_source : f72f8d7c6500b3fe825dd24d676558438609e699
2018-08-10 12:10:35 +10:00
Nicholas Nethercote
b9e071e2e8 Bug 1481998 - Make mozilla::Hash{Map,Set}'s entry storage allocation lazy. r=luke,sfink
Entry storage allocation now occurs on the first lookupForAdd()/put()/putNew().
This removes the need for init() and initialized(), and matches how
PLDHashTable/nsTHashtable work. It also removes the need for init() functions
in a lot of types that are built on top of mozilla::Hash{Map,Set}.

Pros:

- No need for init() calls and subsequent checks.

- No memory allocated for empty tables, which are not that uncommon.

Cons:

- An extra branch in lookup() and lookupForAdd(), but not in put()/putNew(),
  because the existing checkOverloaded() can handle it.

Specifics:

- Construction now can take a length parameter.

- init() is removed. Explicit length-setting, when necessary, now occurs in the
  constructors.

- initialized() is removed.

- capacity() now returns zero when the entry storage is absent.

- lookupForAdd() is no longer `const`, because it can instantiate the storage,
  which requires modifications.

- lookupForAdd() can now return an invalid AddPtr in two cases:

  - old: hashing failure (due to OOM in the hasher)

  - new: OOM while instantiating entry storage

  The existing failure handling paths for the old case work for the new case.

- clear(), finish(), and clearAndShrink() are replaced by clear(), compact(),
  and reserve(). The old compactIfUnderloaded() is also removed.

- Capacity computation code is now in its own functions, bestCapacity() and
  hashShift(). setTableSizeLog2() is removed.

- uint32_t is used throughout for capacities, instead of size_t, for
  consistency with other similar values.

- changeTableSize() now takes a capacity instead of a deltaLog2, and it can now
  handle !mTable.

Measurements:

- Total source code size is reduced by over 900 lines. Also, lots of existing
  lines got shorter (i.e. two checks were reduced to one).

- Executable size barely changed, down by 2 KiB on Linux64. The extra branches
  are compensated for by the lack of init() calls.

- Speed changed negligibly. The instruction count for Bench_Cpp_MozHash
  increased from 2.84 billion to 2.89 billion but any execution time change was
  well below noise.
2018-08-10 18:00:29 +10:00
Nicholas Nethercote
a04c29f828 Bug 1481998 - Define lookup() in terms of readonlyThreadsafeLookup(). r=luke
The two functions are almost identical. This change minimizes duplication.

--HG--
extra : rebase_source : 08bb79d21084eec63702525ce6179e22686bec5c
2018-08-10 15:35:13 +10:00
Makoto Kato
fef13a2f66 Bug 1464251 - SplitNodeDeepWithTransaction might create orphan node. r=masayuki
SplitStyleAbovePoint calls SplitNodeDeepWithTransaction repeatedly. If
SplitNodeDeepWithTransaction creates orphan node like this test case,
this crash occurs.  So we should check whether node becomes orphan node.

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

--HG--
extra : moz-landing-system : lando
2018-08-09 08:22:50 +00:00
Xidorn Quan
0b27da2b4b Bug 1478178 - Sync the condition in ApplyFrameJustification as that in ComputeFrameJustification. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D2817

--HG--
extra : moz-landing-system : lando
2018-08-13 00:07:35 +00:00
Cameron McCormack
a2eba7a28c Bug 1482677 - Remove unused BorrowedAtom. r=emilio,TYLin
MozReview-Commit-ID: FEnicnGj118

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

--HG--
extra : moz-landing-system : lando
2018-08-12 11:16:25 +00:00
Emilio Cobos Álvarez
727fe6d4b7 Bug 1482694 - Don't clear the insertion point from ClearInsertedChildren if we're not the insertion point the node is assigned to. r=smaug
What's going on is that nested XBL insertion points are completely unsound, and
we leave all sorts of kids in mInsertedChildren when bindings dynamically
change.

So if bindings change in a particular way so that the innermost insertion point
is cleared, but the outermost bindings aren't, like this, we end up with an
inconsistent flattened tree.

This prevents the inconsistent flattened tree in this case, though what ought
to happen in the SetXBLInsertionPoint(nullptr) case is setting the insertion
point to the outer insertion point.

But we don't keep track of all our insertion points, and I don't think it's
worth to fix that given XBL is going away unless it gives us more problems. See
also bug 1425362 & co.

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

--HG--
extra : moz-landing-system : lando
2018-08-12 18:17:48 +00:00
Brindusan Cristian
ba708c34ec Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-13 00:53:06 +03:00
Brindusan Cristian
8d06786539 Merge inbound to mozilla-central. a=merge 2018-08-13 00:49:13 +03:00
Brindusan Cristian
91db530d6b Merge autoland to mozilla-central. a=merge 2018-08-13 00:47:25 +03:00
makmm
0d42280111 Bug 1476580 - rewrite italic font toggle using ::before. r=rcaliman
Differential Revision: https://phabricator.services.mozilla.com/D3013

--HG--
extra : moz-landing-system : lando
2018-08-12 20:15:27 +00:00
Narcis Beleuzu
f4e5fb2d0f Backed out 2 changesets (bug 1474028) per chmanchester`s request. a=backout
Backed out changeset 52bd814d3589 (bug 1474028)
Backed out changeset 39a528147c34 (bug 1474028)
2018-08-12 21:22:45 +03:00
Francesco Lodolo (:flod)
69e36d1081 Bug 1482637 - Add missing trailing period to contentBlocking.notDetected string r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D3144

--HG--
extra : moz-landing-system : lando
2018-08-12 15:13:57 +00:00
Cosmin Sabou
ca86972424 Backed out 8 changesets (bug 1481009) for causing devtools crashes @XUL + 0x37bba19. a=backout
Backed out changeset 11ee868c5903 (bug 1481009)
Backed out changeset 4a0c7dd5e1ac (bug 1481009)
Backed out changeset 4e6908123a97 (bug 1481009)
Backed out changeset 6869ea5ebd32 (bug 1481009)
Backed out changeset 85eec9cfc3d9 (bug 1481009)
Backed out changeset f7f4127aa9d8 (bug 1481009)
Backed out changeset 58598aa3cf0c (bug 1481009)
Backed out changeset 1ec7f635f4f3 (bug 1481009)
2018-08-12 14:50:41 +03:00
Nicholas Nethercote
cbac1e147a Bug 1481998 - Change sJSObjWrappers initialization. r=luke
GCHashMap will shortly lose its initialized() function, so we need another way
to indicate whether this table has been created. This patch changes it to use a
pointer instead.

--HG--
extra : rebase_source : 05ce9f2938d1fc8373cbac77c0b3bd62633f93d8
2018-08-09 14:15:42 +10:00
Brindusan Cristian
6823adfae8 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-13 00:54:04 +03:00
Kris Maglione
c65e3607f7 Bug 1481021: Follow-up: Fix another test that relies on bad COW behavior. r=me,test-only
--HG--
extra : rebase_source : 253c3dbdfd1dc6dc586198049384ac466e8a73a8
extra : amend_source : d8e5bbb6acf2d53fdc1055cfd269153ebc55018e
2018-08-11 17:12:34 -07:00
Kris Maglione
7ce09e1fd8 Bug 1481025: Fix devtools code which calls message manager methods with a null target. r=ochameau
MozReview-Commit-ID: KJeQjwhfJbw

--HG--
extra : rebase_source : 682a0007b1fa802643e5ec43e0ff40db8efded03
2018-08-04 15:51:56 -07:00
Kris Maglione
637cac1ea7 Bug 1481024: Stop relying on lexical variables being available across frame scripts. r=yzen
The accessibility tests currently rely, in many places, on lexical variables
defined in global frame scripts being available to other non-global frame
scripts. While that is currently the case, it will stop being so soon.

And, while the simplest solution would be to define them as properties on the
frame message manager by using `var` rather than `let`, storing references to
the current content window in a frame script scope is unsafe at best, and
should be avoided at all costs.

MozReview-Commit-ID: 4FCGtLgcFzl

--HG--
extra : rebase_source : d21206c9f119ca0ce61f9956f84a2e2d11484bca
2018-08-02 20:19:50 -07:00
Ciure Andrei
1c0025e0de Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-08-12 05:19:52 +03:00
Dorel Luca
2325ef30c4 Backed out 16 changesets (bug 1481478, bug 1482434, bug 1477230, bug 1459618, bug 1460281, bug 1450151, bug 1480787, bug 1480724, bug 1459593, bug 1480560) for wpt failures on multipefiles. CLOSED TREE
Backed out changeset 16c9abfa230c (bug 1482434)
Backed out changeset 0cff8da6a4f4 (bug 1481478)
Backed out changeset f4716486af30 (bug 1460281)
Backed out changeset bf082e33a824 (bug 1459593)
Backed out changeset 936c2d035358 (bug 1459593)
Backed out changeset b0e2387b5781 (bug 1450151)
Backed out changeset 7fe7da394986 (bug 1450151)
Backed out changeset 5fd6d3ad49ea (bug 1459618)
Backed out changeset e08114ea42d3 (bug 1459618)
Backed out changeset ba42a3f7a317 (bug 1480724)
Backed out changeset 21ac820030f7 (bug 1480724)
Backed out changeset d7eaecb758f7 (bug 1480787)
Backed out changeset 509f61d497cd (bug 1480560)
Backed out changeset 63a59e79c1dd (bug 1480560)
Backed out changeset d7389a33caea (bug 1477230)
Backed out changeset 04e49a49f1ea (bug 1477230)
2018-08-12 02:40:19 +03:00
Ciure Andrei
f900c72a93 Merge inbound to mozilla-central. a=merge 2018-08-12 00:53:49 +03:00
Dorel Luca
3eadc92da5 Backed out changeset 4575c3b6b09c (bug 1450824) for failing wpt on svg/painting/reftests/markers-orient-001.svg. CLOSED TREE 2018-08-12 00:51:29 +03:00