Commit Graph

601454 Commits

Author SHA1 Message Date
Boris Zbarsky
e2386da2d1 Bug 1209035. Fix incorrect "is this control focused?" checks in form code. r=smaug
For number controls, nsContentUtils::IsFocusedContent doesn't really do the
right thing, because the thing it thinks is focused is the anonymous text
element inside the number control.  As a result, we weren't properly updating
the state of the currently-focused number control when hitting enter in it to
submit the form.

The HTMLFormElement change is enough on its own to fix the bug.  The constraint
validation change is a just-in-case.

I haven't figured out a sane way to write a reftest for this, unfortunately:
the enter key press needs to look like a real user event to trigger the
submission behavior.
2018-06-27 12:04:26 -04:00
Emilio Cobos Álvarez
3ef9fe1263 Bug 1464782: Regenerate the devtools db. r=me
MozReview-Commit-ID: FJxRDsDFsaU
2018-06-27 18:03:10 +02:00
Nathan Froyd
713a85aa66 Bug 1471614 - remove some dead code in CycleCollectedJSRuntime; r=mccr8
Not only is it dead code, but it's a significant amount of useless work!
2018-06-27 18:03:10 +02:00
Dorel Luca
f7aa7c9447 Backed out changeset 0ca9cade7725 (bug 1471614) for XPCshell failures on devtools/shared/tests/unit/test_css-properties-db.js 2018-06-27 18:42:30 +03:00
Emilio Cobos Álvarez
8aaca6bf90 Bug 1464782: Allow logical aliases in the property database. r=me
MozReview-Commit-ID: 68WqG0OViPQ
2018-06-27 17:35:46 +02:00
Nathan Froyd
9fd8289cf9 Bug 1471435 - part 2 - micro-optimize deferred MaybeOpen calls; r=valentin
We shouldn't need to QueryInterface from nsIFile to nsIFile!
2018-06-27 11:27:33 -04:00
Nathan Froyd
d65aee9de5 Bug 1471435 - part 1 - clean up nsFile{Input,Ouput}Stream::Create; r=valentin
We should be using smart pointers here, and there's no need to check for
allocation failure with our infallible new policy.
2018-06-27 11:27:33 -04:00
Jonathan Kew
899b2539d6 Bug 1471584 - Micro-optimize text shaping by avoiding an unnecessary virtual method call. r=lsalzman 2018-06-27 16:12:43 +01:00
Jonathan Kew
1e3aec53f9 Bug 1422530 - Don't initiate new font downloads for a fontGroup where we've already set mSkipDrawing because we're waiting on a resource to be available. r=heycam 2018-06-27 16:12:42 +01:00
Jonathan Kew
498696bbb5 Bug 1461573 - Mark various dynamicDirAuto-* tests as slightly fuzzy on Android due to painting inconsistency. r=mats 2018-06-27 16:12:41 +01:00
Nathan Froyd
1185b20068 Bug 1471614 - remove some dead code in CycleCollectedJSRuntime; r=mccr8
Not only is it dead code, but it's a significant amount of useless work!
2018-06-27 11:10:31 -04:00
Marco Castelluccio
37e7ee033d Bug 1470151 - Support resetting/dumping coverage counters in per-test mode for xpcshell on Linux. r=jmaher
--HG--
extra : rebase_source : f2d33c3f952a04c96a4ca02691e10ff5241522bf
extra : source : c73f394a4bef01cccd76d635bce9d67e4a48f721
2018-06-21 14:41:32 +01:00
Marco Castelluccio
41d0c90dd9 Bug 1470151 - Add a PerTestCoverageUtils JavaScript module to manage resetting/dumping coverage counters for tests. r=jmaher
--HG--
extra : rebase_source : 9b7051f9b607bd205a9519e124688c7710a4c241
extra : source : 3579431e03dc89c5e09b069acdd45e15bd640fe6
2018-06-21 14:40:20 +01:00
Marco Castelluccio
1f679b4e78 Bug 1470151 - Make dumpCoverage and resetCoverage return a Promise that is resolved when the parent process and all content processes are done with dumping or resetting coverage counters. r=froydnj
--HG--
extra : rebase_source : a393fb7eddfad3be12162791c864fa7f2dad7f1b
extra : source : ddde7dd347d451798becc0615468dd9acc5e609c
2018-06-22 14:31:59 +01:00
Dorel Luca
66a9ac9f63 Backed out 2 changesets (bug 1394102) for Web platform test failures. CLOSED TREE
Backed out changeset 4133f5b222de (bug 1394102)
Backed out changeset 39784ddfdbb0 (bug 1394102)
2018-06-27 17:53:26 +03:00
Emilio Cobos Álvarez
688e2c1d75 Bug 1464782: Put offset-* aliases behind a pref. r=xidorn
MozReview-Commit-ID: Hl6Muim3wVH
2018-06-27 16:12:04 +02:00
Emilio Cobos Álvarez
e0ca8be691 Bug 1464782: Update references to offset-* properties in the rest of the tree. r=xidorn
MozReview-Commit-ID: AOMoLSJKySy
2018-06-27 16:12:02 +02:00
Emilio Cobos Álvarez
d73b4b0679 Bug 1464782: Rename offset-* logical properties to inset-*. r=xidorn
MozReview-Commit-ID: BW44sru99RF
2018-06-27 16:12:01 +02:00
Coroiu Cristina
a2ea371c3c Backed out 3 changesets (bug 1470151) for build bustage at testing/xpcshell/selftest.py on a CLOSED TREE
Backed out changeset c73f394a4bef (bug 1470151)
Backed out changeset 3579431e03dc (bug 1470151)
Backed out changeset ddde7dd347d4 (bug 1470151)
2018-06-27 16:57:10 +03:00
Joel Maher
e923cd7f53 Bug 1468198 - remove tests that only run on b2g. r=smaug,mcmanus,whimboo 2018-06-27 09:52:19 -04:00
Ben Kelly
818897b5a1 Bug 1471303 Fix CopyableErrorResult::operator==() to actually compile with ipdl types. r=bz 2018-06-27 06:51:24 -07:00
Nathan Froyd
8f2baafcb6 Bug 1471434 - micro-optimize refcounting for directory enumerators; r=erahm
We were not being as efficient as we could be with passing ownership.
2018-06-27 09:46:33 -04:00
Nicolas B. Pierron
befc08424b Bug 1471589 - Ensure that ranges do not overlap in diagnostic builds. r=tcampbell 2018-06-27 13:41:10 +00:00
Marco Castelluccio
09c7d31a96 Bug 1470151 - Support resetting/dumping coverage counters in per-test mode for xpcshell on Linux. r=jmaher
--HG--
extra : rebase_source : 92336abb5c9e97dd42d322b4e683c9f617ea4cc2
2018-06-21 14:41:32 +01:00
Marco Castelluccio
a5007cf994 Bug 1470151 - Add a PerTestCoverageUtils JavaScript module to manage resetting/dumping coverage counters for tests. r=jmaher
--HG--
extra : rebase_source : cab07616038e535e8bc5ba2cf268a4f292b384aa
2018-06-21 14:40:20 +01:00
Marco Castelluccio
2a4568f6f1 Bug 1470151 - Make dumpCoverage and resetCoverage return a Promise that is resolved when the parent process and all content processes are done with dumping or resetting coverage counters. r=froydnj
--HG--
extra : rebase_source : 1c6e668346b49a409b6271b9b51b731784a57cf5
2018-06-22 14:31:59 +01:00
Nicolas B. Pierron
ef998f1b54 Bug 1471234 - Assert LifoAlloc::steal does not trash BumpChunks. r=tcampbell 2018-06-27 13:24:05 +00:00
Matthew Gaudet
a2d5894efe Bug 1471361: Keep stack height constant when fastpathing truncation r=tcampbell
--HG--
extra : rebase_source : b2f2238e73a1c24ce3b926dd76d147feef5a0ddf
2018-06-26 18:09:34 -04:00
Tom Ritter
0f2235111d Bug 1469933 When using ./mach run --debugger=windbg, use the x64 version of WinDBG r=ted
Summary: Bug 1469933 When using ./mach run --debugger=windbg, use the x64 version of WinDBG r?ted

Reviewers: ted

Reviewed By: ted

Bug #: 1469933

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

--HG--
extra : amend_source : 67de4dae3a129df77976da82005acb47ad64b5ed
2018-06-27 16:16:57 +03:00
Alex Gaynor
eac6fdd4b0 Bug 1470890 - handle deserialization failure gracefully in JS IPC; r=evilpie
Summary: This primarily affects the efficiency of fuzzing.

Reviewers: evilpie

Reviewed By: evilpie

Bug #: 1470890

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

--HG--
extra : rebase_source : 43f92c8989262259bb9ec604d2be60b1195ee802
extra : amend_source : 5899b2672fb8602b0b1fb806cb3807677493daa7
2018-06-27 16:10:41 +03:00
Alex Gaynor
ac56b410a9 Bug 1470994 - remove unused accuracy field from SensorData; r=gsvelto
Reviewers: gsvelto

Reviewed By: gsvelto

Bug #: 1470994

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

--HG--
extra : rebase_source : 03e1aee4934bcba96968578ba92d6c2ec6275747
extra : amend_source : 6f6e69fb6e18d092090e99db765e12c16021f265
2018-06-27 16:05:48 +03:00
Nicolas B. Pierron
3b7262f482 Bug 1470732 - Add test case. r=tcampbell 2018-06-27 12:53:28 +00:00
Nicolas B. Pierron
683ad5a8de Bug 1470732 - Reprotect memory of pending Ion compilations in case of moving GCs. r=jonco 2018-06-27 12:53:01 +00:00
Nicolas B. Pierron
1d376fe5d7 Bug 1470732 - Unprotect memory before moving to the list of finished/cancelled compilations. r=tcampbell 2018-06-27 12:53:00 +00:00
Andrea Marchesini
473293997d Bug 1394102 - FetchEvent Request.signal should be aborted when the corrisponding nsIChannel is canceled - test, r=bkelly 2018-06-27 14:51:57 +02:00
Andrea Marchesini
81a7e68e79 Bug 1394102 - FetchEvent Request.signal should be aborted when the corrisponding nsIChannel is canceled r=bkelly 2018-06-27 14:51:43 +02:00
Thomas P.
5f96c00e81 Bug 1464257: fix lut8Type tag implementation. r=bas 2018-06-26 02:20:22 +00:00
Dorel Luca
48178c7559 Merge mozilla-central to mozilla-inbound. CLOSED TREE 2018-06-27 14:09:04 +03:00
Dorel Luca
d296624690 Backed out 5 changesets (bug 1340498) for build bustage due to conflicts with bug 1470325. a=backout
Backed out changeset 28bedb658af4 (bug 1340498)
Backed out changeset f950a2310e26 (bug 1340498)
Backed out changeset 5fcd31c65fe0 (bug 1340498)
Backed out changeset 515bb5e24dd7 (bug 1340498)
Backed out changeset 79a8619bd3e2 (bug 1340498)
2018-06-27 14:05:20 +03:00
Dorel Luca
fad3d6e777 Merge mozilla-central to mozilla-inbound
--HG--
extra : rebase_source : 66cecebb4b7699e57e8a3b73ae5664702dfeda78
2018-06-27 13:39:34 +03:00
Dorel Luca
f51c4fa5d9 Merge mozilla-inbound to mozilla-central. a=merge 2018-06-27 13:26:49 +03:00
Jon Coppeard
db3005b5b3 Bug 1470992 - Don't call though public APIs when converting atoms to strings in the parser r=jandem 2018-06-27 11:23:15 +01:00
Coroiu Cristina
e555bb0ae4 Backed out 2 changesets (bug 1447591) for mochitest failures at dom/base/test/test_postMessages.html
Backed out changeset 0800fdb509d2 (bug 1447591)
Backed out changeset 9b5347dee1f2 (bug 1447591)
2018-06-27 13:09:31 +03:00
Emilio Cobos Álvarez
0004f1c6ae No bug - Remove some useless intermediate variables. r=me
MozReview-Commit-ID: LFGpL7JImwK
2018-06-27 11:50:13 +02:00
Emilio Cobos Álvarez
a24ebbee4e Bug 1470545: Add chromeonly "shadowrootattached" event for devtools. r=smaug
Summary:

document.addEventListener("shadowrootattached", e => {
  // Do stuff with composedTarget.
});

I didn't bother to add tests for the event itself since this is going to get
tested in bug 1449333, but I can look into writing a chrome mochitest if you
want.

Test Plan: See above.

Reviewers: smaug

Bug #: 1470545

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

MozReview-Commit-ID: 55cVMSsznMS
2018-06-27 11:24:43 +02:00
Emilio Cobos Álvarez
89fd549c61 Bug 1471013: Make MozAutoplayMediaBlocked chrome-only. r=smaug
Summary: MozReview-Commit-ID: JVLMpCeMkAs

Reviewers: smaug

Tags: #secure-revision

Bug #: 1471013

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

MozReview-Commit-ID: 2he7tHFbZ8t
2018-06-27 11:24:17 +02:00
Coroiu Cristina
614012f859 Backed out changeset a1db50f691f0 (bug 1442737) for frequent mochitest failures on e.g: dom/workers/test/browser_fileURL.js 2018-06-27 10:58:48 +03:00
Christoph Kerschbaumer
25caec9ca2 Bug 1463663 - Prefix exported functions of the RemotePageManager with RPM. r=mossop 2018-06-27 09:08:32 +02:00
Xidorn Quan
4b65f18d5a Bug 1471114 part 7 - Scripts used to generated the previous patches. r=emilio
MozReview-Commit-ID: E9dB5l9AmeS

--HG--
extra : source : 960b212b998e728f90bbf564f5899a92f65c9e0e
2018-06-27 15:34:29 +10:00
Xidorn Quan
882b6f2f03 Bug 1471114 part 6 - Remove unused CSS keywords. r=emilio
This is done with the following script:
```python
#!/usr/bin/env python3

import re
import subprocess

LIST_FILE = "layout/style/nsCSSKeywordList.h"

RE_KEYWORD = re.compile(r"\beCSSKeyword_(\w+)")
rg_result = subprocess.check_output(["rg", r"eCSSKeyword_\w+"], encoding="UTF-8")
to_keep = set()
for item in rg_result.splitlines():
    file, line = item.split(':', 1)
    for m in RE_KEYWORD.finditer(line):
        to_keep.add(m.group(1))

remaining_lines = []
RE_ITEM = re.compile(r"CSS_KEY\(.+, (\w+)\)")
with open(LIST_FILE, "r") as f:
    for line in f:
        m = RE_ITEM.search(line)
        if m is not None and m.group(1) not in to_keep:
            print("Removing " + m.group(1))
            continue
        remaining_lines.append(line)
with open(LIST_FILE, "w", newline="") as f:
    f.writelines(remaining_lines)
```

MozReview-Commit-ID: upyTPc8984

--HG--
extra : source : 65a744682fe99d8f0de4fa4b7a478e10aba0349e
2018-06-27 15:34:29 +10:00