Commit Graph

584239 Commits

Author SHA1 Message Date
Simon Fraser
8dd0c7d4aa Bug 1436469 Fix task definition r=callek CLOSED TREE
--HG--
extra : amend_source : 16927e88ffeca3b658cc287b71bb7d22e36ea380
2018-03-06 15:20:50 +00:00
Neil Deakin
2f736750c6 Bug 1440146, remove unused menubutton-item binding, r=bgrins 2018-03-06 10:10:34 -05:00
Simon Fraser
a1890ef267 Bug 1436369 Add taskcluster periodic file updates r=callek
Reviewers: Callek

Reviewed By: Callek

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

--HG--
extra : rebase_source : f7f6d69c092903118b6a41aa8b69fe0419910253
2018-03-06 15:10:46 +00:00
Simon Fraser
c9bb5232b8 Bug 1436369 Move buildbot periodic file updates to clearer name r=callek
Summary:
We'll be adding the new periodic file updates task to run in parallel. This patch
moves the existing one to make it clear it's running on buildbot, so we don't get confused
later on.

Reviewers: Callek

Reviewed By: Callek

Bug #: 1436369

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

--HG--
rename : taskcluster/ci/repo-update/kind.yml => taskcluster/ci/repo-update-bb/kind.yml
extra : rebase_source : c1386a05c378589efdd508199d97cb8121308686
2018-03-06 15:09:48 +00:00
Christian Holler
022546f573 Bug 1442716 - [caps] Handle empty origin gracefully in FUZZING. r=baku 2018-03-02 19:48:49 +01:00
Christian Holler
0d3ff9caec Bug 1440627 - Use fallible setLength in StructuredCloneHolder. r=baku 2018-02-23 14:57:00 +01:00
Christian Holler
a7aaab24d3 Bug 1440402 - Handle several unsafe accesses in dom/ipc gracefully for fuzzing. r=baku 2018-02-23 14:51:26 +01:00
Christian Holler
2d642a506c Bug 1440397 - Handle unexpected principal tag gracefully in FUZZING. r=baku 2018-03-02 19:01:00 +01:00
Andreas Tolfsen
4534dde032 Bug 1443466 - Reference --marionette-port in --connect-existing docs. r=me
MozReview-Commit-ID: 16ZCieH8Pm4
2018-03-06 13:08:17 +00:00
Andreas Tolfsen
6abe1c6703 Bug 1443466 - Link to firefox-source-docs.m.o in geckodriver README. r=me
MozReview-Commit-ID: CONSsWFMQiI
2018-03-06 13:08:16 +00:00
Andreas Tolfsen
b7fda6e441 Bug 1443466 - Improve --marionette-port documentation. r=me
Explains how --marionette-port interacts with --connect-existing.

MozReview-Commit-ID: 8WwM7wHXfcn
2018-03-06 13:08:16 +00:00
Jason Laster
0815223c4d Bug 1443193 - Release debugger v19.2 (remove reference to babel-traverse);r=jdescottes
MozReview-Commit-ID: 1vdPSsZIWp0

--HG--
extra : rebase_source : 26cc2e5d706bbd436f66c181738585f9b2a9a099
2018-03-06 10:57:05 +01:00
Csoregi Natalia
0ad2abb8e9 Backed out changeset 7aef35642e5f (bug 1436156) for failing ipc/chromium/src/base/id_map.h:60. CLOSED TREE 2018-03-06 13:50:36 +02:00
Andreas Tolfsen
4ecf111696 Bug 1443180 - Move Marionette README contents to firefox-source-docs.m.o. r=me
MozReview-Commit-ID: 5t4ofKmGvyC
2018-03-06 11:04:00 +00:00
Andreas Tolfsen
1151b11940 Bug 1443180 - Move Marionette contribution advice to firefox-source-docs.m.o. r=me
Because testing/marionette/CONTRIBUTING.md is hard to find and not indexed
anywhere, this patch moves all its content to the online documentation
at https://firefox-source-docs.mozilla.org/testing/marionette/marionette/.

The file has been split up in four documents:

  * Contributing.md, which covers introduction to new contributors
    and a brief summary of the Marionette architecture.

  * Building.md, covering build instructions.

  * Patches.md, explaining how to write and get patches reviewed.

  * Testing.md, which explains how to test a patch.

MozReview-Commit-ID: HuEAls8Kpfg
2018-03-06 11:03:59 +00:00
Tom Ritter
4d71507eac Bug 1442984 - Correct pointer math in timer fuzzing. r=baku
Negative input times would carry a negative sign all the way
through to where we do pointer math. That's bad, and embaressing.

As far as I know, there was no way to have the resulting value be
outside [-32, 28]. We coerce it down to [0, 28] to always stay in
bounds.
2018-03-05 13:04:32 -06:00
Christoph Diehl
bb37ad9aba Bug 1436156 CHECK() in Chromium IPC code should be fatal when not fuzzing. r=jld 2018-03-06 00:26:06 +01:00
Tiberius Oros
f3c2b2ecf8 Merge autoland to mozilla-central. a=merge 2018-03-06 11:52:14 +02:00
Cosmin Sabou
1611e7fc4f Merge mozilla-central to inbound. a=merge on a CLOSED TREE 2018-03-06 06:31:37 +02:00
Cosmin Sabou
c17d867e25 Merge inbound to mozilla-central. a=merge
--HG--
rename : browser/base/content/tabbrowser.js => browser/modules/AsyncTabSwitcher.jsm
2018-03-06 06:27:48 +02:00
Cosmin Sabou
e3fc61986f Backed out 3 changesets (bug 1387976) because of merge conflicts on AsyncTabSwitcher.jsm.
Backed out changeset d91b6a40b32a (bug 1387976)
Backed out changeset b708ab55bc72 (bug 1387976)
Backed out changeset 7958b0ccbe0b (bug 1387976)
2018-03-06 06:25:54 +02:00
Kannan Vijayan
627eb6ae9a Bug 1411415 - r=bz r=fitzgen 2018-03-05 19:27:02 -05:00
Jared Wein
2961eba0d6 Bug 1436423 - Reduce the schedule pressure limit closer to the values that users are reporting. r=mconley
Note that this value, 300, is still far above the 95% threshold that telemetry is reporting (59 milliseconds) so this won't be noticeable to most users. The > 1% of users who are having this issue will benefit greatly from this change.

MozReview-Commit-ID: Bd51gjc5z83

--HG--
extra : rebase_source : 4a9e96eb555e8021012a3a06cb76e03413a8da20
2018-03-05 14:09:39 -05:00
Jared Wein
ef2d1dbaa6 Bug 1443229 - Add a 'command' event listener for the urlbar search suggestions checkbox. r=Gijs
This was inadvertently removed when the preference attribute was removed to clean up a race condition.

MozReview-Commit-ID: 8yNPMwkGS3u

--HG--
extra : rebase_source : f6381588a47bc0bbd9c2b087ded55a85d131ec03
2018-03-05 16:17:25 -05:00
Botond Ballo
084c2d5c2d Bug 1443231 - Another follow-up to fix a debug assertion in the gtest. r=botond
MozReview-Commit-ID: 4p1zurPLCRB

--HG--
extra : rebase_source : 078b5aa8d558bc2c8bdd13ebe142706287c8123b
2018-03-05 17:00:46 -05:00
Jim Blandy
b1a56f5e14 Bug 1438121: Part 13: Make LiveSavedFrameCache::Entry's members const. r=fitzgen
MozReview-Commit-ID: GbJhE9nylaa

--HG--
extra : rebase_source : 07d6f2480dec2e384b4b28c3ab9e5f23cc718fe5
extra : amend_source : 2e22e23b0294d8e011a2fa162b1ed7a7ac612dc3
2018-03-02 23:56:26 -08:00
Olli Pettay
51b6aa1b21 Bug 1066965, make contentEditable and spellchecking to work in ShadowDOM, r=mrbkap 2018-03-06 09:34:40 +09:00
Tom Ritter
3c7ad292ee Bug 1443252 - Make nsGlobalWindowInner/Outer final to reduce build times. r=mystor
In Bug 1332680 we got a list of classes and methods we could mark 'final',
as suggested by an LTO build of gcc. One of the items on that list was
nsGlobalWindowInner and nsGlobalWindowOuter, with quite a lot of virtual
calls:

> dom/base/nsGlobalWindowInner.h:206:7: warning: Declaring type 'struct nsGlobalWindowInner' final would enable devirtualization of 483 calls
> dom/base/nsGlobalWindowOuter.h:164:7: warning: Declaring type 'struct nsGlobalWindowOuter' final would enable devirtualization of 143 calls

After trying it out, we saw a modest improvement to a single Talos tes
(displaylist mutate got 4-8.5% better). That's not the interesting
thing though.

For Linux and OSX (and some flavors of Android) build times were reduced
by half across the board. They're a bit variable of course, but 30-70%
improvements are shown by Talos. Windows and other flavors of Android
show 10-15% improvements.

MozReview-Commit-ID: GlEGBt2JOTt
2018-03-02 09:30:03 -06:00
Masayuki Nakano
9d71742b36 Bug 662591 - HTMLEditor should set caret to start of first editable text node or before first editable inline node r=m_kato
Currently, HTMLEditor doesn't initialize caret position when it gets focus by
itself in most cases.  Only when it's in designMode, it may move caret to the
first visible (not checking CSS actually).

In most cases, caret position is adjusted when EditorBase::InitializeSelection()
calls Selection::SetAncestorLimiter().  If selected range is outside of
new limiter, it moves caret to start of the new limiter.  However, this is
really different behavior from the other browsers.  The other browsers try
to move caret to the first editable text node or before the first editable
content such as <img>, <input>, etc.

This difference causes a serious incompatible issue with Draft.js.  It doesn't
initialize caret position when it gets focus but it assumes that caret is
always set to before <br> element if there is no other content.

So, let's try to behave as what other browsers do as far as possible.

This patch makes editor behave as:
* if selection is already in the editing host except start of the editing host,
  does nothing.
* if there is non-editable element before any editable node, move caret to
  start of the editing host.
* if there is editable text node or element node which cannot have a text node,
  move its start or before it.
* if there is no editable nodes which can contain text nodes, move caret to
  start of the editing host.

Note that before applying this patch, in designMode, BeginningOfDocument() used
document element instead of <body> element.  Therefore, it may set odd position
if <head> element has some text nodes with <script> or <style>.  However,
this doesn't make sense and for making more consistent behavior between
designMode and contenteditable, this patch makes it use editing host (it's
<body> element if it's in designMode).

MozReview-Commit-ID: 5neYoTMq6Cc

--HG--
extra : rebase_source : c4d06b6864a221d7cd2833a007d73f7d67821e95
2018-03-02 14:20:25 +09:00
Cosmin Sabou
385d483eb3 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-03-06 06:30:21 +02:00
Narcis Beleuzu
8c7d795b53 Backed out 2 changesets (bug 1439777) for xpcshell failures on /test_errorhandler_2.js
Backed out changeset d99402ad9ecc (bug 1439777)
Backed out changeset 1af3426dc956 (bug 1439777)
2018-03-06 04:43:41 +02:00
Hiroyuki Ikezoe
97b67fe961 Bug 1442150 - Re-enable test_running_on_compositor.html on Android. r=birtles
Now the test works fine with the new microtask handling.

MozReview-Commit-ID: EhFcN2XAClw

--HG--
extra : rebase_source : f1066bf09df07c1bcbfe5dc5dcc59596530424d0
2018-03-06 11:01:49 +09:00
Hiroyuki Ikezoe
795bd7d475 Bug 1442150 - Wait for one more frame if the animation starts at the current timeline time in the first test case. r=birtles
MozReview-Commit-ID: DVOiauPDqhM

--HG--
extra : rebase_source : 2e9dfd0b7dbef48e92fbe48a5166ec6f3aafcabf
2018-03-06 10:55:05 +09:00
Hiroyuki Ikezoe
16a0b8373a Bug 1442150 - Move startsRightNow into testcommon.js and rename it to animationStartsRightNow. r=birtles
MozReview-Commit-ID: 58umbOjy4di

--HG--
extra : rebase_source : eb6810658f09c848c38e11f7872fb7326021f1a3
2018-03-06 10:35:26 +09:00
Hiroyuki Ikezoe
4bc9a2e83a Bug 1442150 - Rewrite test_running_on_compositor.html with async/await. r=birtles
MozReview-Commit-ID: Cdk7kQWcbXU

--HG--
extra : rebase_source : cc9b0e753c6b7804c7f0233cab0a2d3135118f28
2018-03-06 10:35:26 +09:00
Bryce Van Dyk
3114bcb097 Bug 868797 - Update libnestegg to be more tolerant of blocks with negative timecodes. r=kinetik
Bump nestegg to commit 89ed0daf2edccb25f744e5faff88b8b4684adceb. This brings
across tolerance of blocks with negative timecodes. Instead of rejecting these
the timecodes are now set to 0.

Also brings across a change to appease clang in ne_read_block_additions by
adding an explicit assignment to data_size.

MozReview-Commit-ID: 7J8YPUUwSBp

--HG--
extra : rebase_source : f55bd987465baf21f383095b60e9148349936fef
2018-02-28 16:34:05 -05:00
Botond Ballo
1b4474359e Bug 1443231 - Follow-up to fix warning-as-error on Windows (CLOSED TREE). r=botond
MozReview-Commit-ID: 52PVwcjRVu3

--HG--
extra : rebase_source : 1c2b39bdcce30f47d1b675615a35c4573556459e
2018-03-05 16:38:17 -05:00
Narcis Beleuzu
34b2bf4c13 Backed out changeset a8130e46c530 (bug 1434483) for ESlint failures on browser_change_shipping.js. CLOSED TREE 2018-03-05 23:50:02 +02:00
Hiroyuki Ikezoe
0476fc2aa7 Bug 1442861 - Clear mNeedStyleFlush flag after ProcessPendingRestyles(). r=emilio
mNeedStyleFlush is also set by animation restyle request.  So it's possible
that the flag is set again in PostRestyleForThrottledAnimations() or in
sequential tasks for updating animations after the flag is cleared at the top
DoFlushPendingNotifications().

MozReview-Commit-ID: KPSS6cJb4HX

--HG--
extra : rebase_source : 31d839f12b654d52b352cd50e19bc1953c46b7c2
2018-03-06 06:34:02 +09:00
Jim Blandy
dd76a8cf31 Bug 1438121: Part 3: Add shell tests for implicit async stacks. r=fitzgen
MozReview-Commit-ID: BfPPrvEGSgg

--HG--
extra : rebase_source : 09c9bc2b61f83d5316fd46f2da2e8a15dc986060
2018-02-25 16:22:32 -08:00
Jim Blandy
2dde84ffff Bug 1438121: Part 2: Define the 'bindToAsyncStack' JS shell testing function. r=fitzgen
See JS_FN documentation for details.

MozReview-Commit-ID: 6WUaGfdwogX

--HG--
extra : rebase_source : 24116d97e9ed40697d296b3b18879ab5b4705fe4
2018-02-25 15:43:20 -08:00
Jim Blandy
f61135a1b9 Bug 1438121: Part 1: Add job dispatch primitive to shell. r=fitzgen
See JS_FN documentation for details.

MozReview-Commit-ID: 8ZLyOX85qqh

--HG--
extra : rebase_source : 3b249dc19ffba6fb700290b88b23207de539bcb5
2018-02-25 14:06:05 -08:00
Rob Wu
7b7f160bef Bug 335545 - Add test to verify that overflowing clipboard data survives r=mstange
I accidentally broke the ability to retrieve a big string from the
clipboard, and there was no test that failed. So this provides a new
test that does the following:

1. Store a big string in a nsTransferable.
2. Copy it to the clipboard.
3. Create a new nsTransferable, initialize with small data.
4. Populate the nsTransferable with (big) data from the clipboard.
5. Populate the nsTransferable with small data.

After each step, the test checks whether the transferable holds the
expected data and length, and (on non-Windows) checks that the big
data is backed by a file, and small data is not.

MozReview-Commit-ID: 9yuXZxVqD6R

--HG--
extra : rebase_source : 6cec638c59e8ce5a18adbb642779c1dcd457cc5b
2018-02-25 19:08:12 +01:00
Rob Wu
877c911eae Bug 335545 - Make DataStruct non-copyable r=mstange
DataStruct cannot safely be copied if its mCacheFD member is set.
Currently there is no code for this case, but to avoid problems later,
mark the copy and assignment constructors private and delete them.

A move-constructor was added to compensate for the deleted copy
constructor. nsTransferable::AddDataFlavor uses this new constructor
instead of the previous implicit default copy constructor.

MozReview-Commit-ID: 3N5xjFXOUKB

--HG--
extra : rebase_source : dc609f20c7048b3630fa99fe2deef3f5be155334
2018-02-25 17:36:08 +01:00
Rob Wu
57cfe68440 Bug 335545 - Count FD instead of looking for clipboardcache in test_bug1123480.xul r=mstange
- Count open file descriptors instead of testing the existence of a file
  (because the clipboard is now only reachable through file descriptors,
  and not through a file path).

- Use a fixed string instead of a random string. The previous way of
  generating a string was non-deterministic, and there was a very small
  chance that the generated string was not large enough to trigger the
  cache-to-disk-mode.

- Use "text/unicode" instead of "text/plain", because JavaScript strings
  use two bytes, not one bytes each.

- The cache file is already created when the Transferable is created, so
  check the cache file after assigning data to the nsITransferable, but
  before copying it to the clipboard.

MozReview-Commit-ID: KOkYOm280Oh

--HG--
extra : rebase_source : 3515ff55a316720b87f2473a1450e5d8304728e8
2018-02-25 17:30:13 +01:00
Jim Blandy
011d61207b Bug 1438121: Part 5: Don't propagate the 'hasCachedSavedFrame_' bit from the RematerializedFrame to the BaselineFrame. r=fitzgen
When capturing the JavaScript stack as a chain of SavedFrames, the
hasCachedSavedFrame flag on a frame indicates that the frame has an entry in
the LiveSavedFrameCache, which may hand us the SavedFrame for a previously
captured remainder of the stack, letting us stop the stack walk early.

The LiveSavedFrameCache uses AbstractFramePtr and jit::CommonFrameLayout* values
as keys. A RematerializedFrame uses an AbstractFramePtr as its key, but the
BaselineFrame we build from it has a jit::CommonFrameLayout* as its key; the two
keys are unequal. It's valuable to be able to assert that, if a frame has its
hasCachedSavedFrame flag set, then it must have an entry in the cache; to allow
that, converting a RematerializedFrame to a BaselineFrame must clear the flag,
since the BaselineFrame's key is not present.

We could instead fix up the cache entry's key, and carry over the flag, but it's
simpler to just let the cache get repopulated as needed.

MozReview-Commit-ID: 612daDJ1R4w

--HG--
extra : rebase_source : c528eafff0b1d7eeaa5f7c688a6c82631f5282a6
2018-02-23 22:28:56 -08:00
Jim Blandy
da36f58516 Bug 1438121: Part 12: Make LiveSavedFrameCache::getFramePtr's parameter const. r=fitzgen
MozReview-Commit-ID: K4JAFidKNzJ

--HG--
extra : rebase_source : 112932d0bf455d1eab0061d3500be7e4ad838712
2018-03-02 00:05:27 -08:00
Jim Blandy
2216bc1d9b Bug 1438121: Part 8: AutoSetAsyncStackForNewCalls doc fix. DONTBUILD r=fitzgen
MozReview-Commit-ID: JwIM2EAmPZY

--HG--
extra : rebase_source : 7bf7dc85b676fe3597b919989f2a8ae2b9ec677e
2018-02-25 23:33:54 -08:00
Jim Blandy
eda1ea97d0 Bug 1438121: Part 6: Improve comments for js::LiveSavedFrameCache. DONTBUILD r=fitzgen
MozReview-Commit-ID: C4W5cgwdNtv

--HG--
extra : rebase_source : 3e0f37f632b267dd79a27b30d75d9db7fe4cab02
2018-02-24 13:57:41 -08:00
Ben Hearsum
b90100556e bug 1443313: select betas and RCs for testing when generating secondary update verify configs. r=nthomas 2018-03-05 18:02:21 -05:00