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

567650 Коммитов

Автор SHA1 Сообщение Дата
Nick Alexander af1a4a8366 Bug 1411688 - Part 4: Make single-locale repacks agree with underlying Nightly builds. r=aki
There's nothing that makes sense in the existing setup; we're only not
getting bitten because the set of things that _do_ depend on all of
the flags that differ between the underlying Nightly builds and
single-locale repacks is small, and nobody has complained.  For
example, about:licenses probably does not include the Adjust SDK
license for single-locale repacks.

This patch series recompiles the Java code as part of each
single-locale repack, and that means the feature flags, etc, need to
be the same between the underlying compiled code (from the underlying
Nightly build) and the fresh Java compile.  This patch tries to
harmonize the two.

MozReview-Commit-ID: 230q7HuD1vV

--HG--
extra : rebase_source : 1be8a389ed289c788add4d3e95c540f29165cf6b
extra : source : d7f794ec69ccd38d66ec5394fac7cc6658e29ce4
2017-10-23 13:50:51 -07:00
Nick Alexander 690d4ddcaa Bug 1411688 - Part 3: Set MOZ_UPDATE_CHANNEL in single-locale repacks. r=aki
I'm seeing "try" in my repacks, when the underlying build has
"nightly-try".  This should make the two agree.

MozReview-Commit-ID: 45yE9Qwz0v7

--HG--
extra : rebase_source : ff1ae4e50203ea032032069203558d75d348ff21
2017-11-02 09:47:10 -07:00
Nick Alexander 0b1169a83d Bug 1411688 - Part 2: Include secrets in Android single-locale repacks. r=aki
Single-locale repacks need to run aapt (--without-gradle) or Gradle
(--with-gradle).  When running --with-gradle, they need to compile the
Java source code again (in order to produce a fresh R.java with
correct IDs).  That compile will be part of the shipping APK, so it
needs to be configured "the same" as the underlying repacked.  *This
is a significant change in behaviour, but necessary to support newer
Gradle/aapt versions, which do not maintain R.java ID mappings across
invocations.*

Part of the configuration are the secret keys and features that are
gated on them.  This commit makes those secrets available to
single-locale repacks.

MozReview-Commit-ID: 4REPsIb5TgN

--HG--
extra : rebase_source : 2d23e0e0c51a61e50acf24123b316bdbb0b579ff
extra : source : a721890f7573140ca6a926e722bd3538c732dae7
2017-11-02 10:03:01 -07:00
Nick Alexander cc2129e406 Bug 1411688 - Part 1: Make --with-gradle handle single-locale repacks. r=snorp
Single-locale repacks do the following:

Download existing APK; unzip APK; update l10n resources; |mach package| with IS_LANGUAGE_REPACK=1.

This is pretty hard to accommodate, but we can try.  The key issues
here are to recognize when IS_LANGUAGE_REPACK=1 and not ask for l10n
resources (in particular, strings.xml) to be generated.

We do need to include the freshly built classes.dex when repackaging,
because newer Gradle/aapt doesn't preserve the R.java IDs.

MozReview-Commit-ID: 9FvQtmPOUjg

--HG--
extra : rebase_source : b0440ceb318662bf3c08f2139c51dae5775a6b38
2017-10-23 13:24:58 -07:00
Nick Alexander a090e4b296 Bug 1411688 - Part 0: Make --with-gradle handle single-locale repack ABIs. r=snorp
This agrees with
http://searchfox.org/mozilla-central/rev/423b2522c48e1d654e30ffc337164d677f934ec3/mobile/android/base/generate_build_config.py#95.
It should really come from the underlying binaries for repacks, but
right now we only repack ARM builds, so this will do.

MozReview-Commit-ID: 3UvrJDV1l9a

--HG--
extra : rebase_source : e57b49e32c80906bdb513850c370d64e5a140978
2017-11-02 09:38:47 -07:00
Masayuki Nakano 2fcb0a64f2 Bug 1406446 - part 2: Android widget should use API of InputContextAction rather than accessing EventStateManager r=jchen
Basically, widget code shouldn't access API in dom/events as far as possible
since it's difficult to care widget code when other developers to change under
dom/.

This patch backouts the patch for bug 1402461 which made GeckoEditableSupport
depend on EventStateManager in dom/events.  Now, necessary information is in
InputContextAction and same condition should be shared with Windows.

MozReview-Commit-ID: LMlrizswxUj

--HG--
extra : rebase_source : c13604eac143ec5994c65571bff09887d5c0c221
2017-10-24 02:53:19 +09:00
Masayuki Nakano 93977460e2 Bug 1406446 - part 1: InputContextAction should treat focus change during handling a user input as caused by user input even if it's caused by JS r=smaug
Currently, widget doesn't show VKB when input context change is caused by JS.
However, if it's caused by an event handler of a user input, user may expect
to open VKB.  For example, if a touch event in fake editor causes moving
focus to actual editable node, user expect to show VKB.

Therefore, InputContextAction should declare two causes.  One is unknown but
occurred during handling non-keyboard event.  The other is unknown but occurred
during handling keyboard event.

However, EventStateManager doesn't have an API to check if it's being handling
a keyboard event.  Therefore, this patch adds it first.
AutoHandlingUserInputStatePusher sends event type to StartHandlingUserInput()
and StopHandlingUserInput() of EventStateManager and sUserKeyboardEventDepth
manages the number of nested keyboard event handling.  Therefore,
EventStateManager::IsHandlingKeyboardInput() can return if it's handling a
keyboard event.

IMEStateManager uses this new API to adjust the cause of changes of input
context.

Finally, InputContextAction::IsUserInput() is renamed to IsHandlingUserInput()
for consistency with EventStateManager and starts to return true when the
input context change is caused by script while it's handling a user input.

MozReview-Commit-ID: 5JsLqdqeGah

--HG--
extra : rebase_source : 9fcf7687d1bf90eeebbf6eac62d4488ff64b083c
2017-10-24 02:46:15 +09:00
Phil Ringnalda 0e8c7ea1cd Backed out 5 changesets (bug 1383300) for leaks
CLOSED TREE

Backed out changeset 3879080f60c2 (bug 1383300)
Backed out changeset bc8f24ca5bb3 (bug 1383300)
Backed out changeset 908e2e2a759b (bug 1383300)
Backed out changeset 71b84c813705 (bug 1383300)
Backed out changeset 34fa5b4d4d59 (bug 1383300)

MozReview-Commit-ID: BVz3KG0Qixi
2017-11-03 20:13:58 -07:00
Ed Lee 8cc937f0de Bug 1413550 - Add per-platform styles, per-locale html and bug fixes to Activity Stream. r=k88hudson
MozReview-Commit-ID: I7Y4nfrAvLL

--HG--
extra : rebase_source : 82a7c81ba58e294761c0cb25a3b1a2253a22d541
2017-11-03 12:08:30 -07:00
Sebastian Hengst 8c8a36efd9 Backed out changeset def95432b0a1 (bug 1413550) on request from Mardak for test failure. r=backout on a CLOSED TREE 2017-11-04 01:34:19 +01:00
Sebastian Hengst 0e6433a807 Bug 1383300 - withNewDialogFrame should wait for the inner frame load: add semicolon. r=eslint-fix 2017-11-04 01:23:00 +01:00
Zibi Braniecki 4c3a3ac1fb Bug 1410736 - Replace remaining uses of general.useragent.locale with LocaleService API. r=jfkthame
MozReview-Commit-ID: F0Ofe2lHHEo

--HG--
extra : rebase_source : 420c65111dc5066eb00ef86ddf375db533008bbf
2017-11-03 17:08:34 -07:00
Ed Lee dad9d3748b Bug 1413550 - Add per-platform styles, per-locale html and bug fixes to Activity Stream. r=k88hudson
MozReview-Commit-ID: I7Y4nfrAvLL

--HG--
extra : rebase_source : b0b410b95a991b8c57b9f79f2a906137e6882c45
2017-11-03 12:08:30 -07:00
Matthew Noorenberghe defd183881 Bug 1383300 - withNewDialogFrame should wait for the inner frame load. r=MattN
MozReview-Commit-ID: 74r2jseJFeB

--HG--
extra : rebase_source : 923b2b1df78544c2322c423c1c0336176e8dace5
2017-11-03 16:37:50 -07:00
Matthew Noorenberghe 3bf0546bc6 Bug 1383300 - Test total and domain in the payment request dialog r=marcosc
MozReview-Commit-ID: GgADdcR98xd

--HG--
extra : rebase_source : c6539b3eb5330a0a329672a7a541e6b13f3db2f5
2017-10-18 15:08:04 -07:00
Matthew Noorenberghe df08534416 Bug 1383300 - Move common payment tasks, methods and details to PaymentTestUtils. r=marcosc
MozReview-Commit-ID: 2jy2NXALKyd

--HG--
rename : toolkit/components/payments/test/browser/head.js => toolkit/components/payments/test/PaymentTestUtils.jsm
extra : rebase_source : dbd3602bc9a970e5c587a0dc42177f2e293e39ef
2017-10-18 15:56:21 -07:00
Jonathan Guillotte-Blouin 9b3235f789 Bug 1383300 - Show payment request total and origin in the dialog. r=MattN
MozReview-Commit-ID: 9taFJYmQnBP

--HG--
extra : rebase_source : e71a3f8df72a7071b96834aa10a3434af94ef68d
2017-10-12 21:31:03 -04:00
Kit Cambridge 604673b3d3 Bug 1366067 - Use `JSONFile.jsm` to persist the backlog and previously failed IDs. r=tcsc
MozReview-Commit-ID: DAwMrtWI8eh

--HG--
extra : rebase_source : f6713745b09de2e6b0993539cce9ed4e8226dbbf
2017-11-01 11:10:47 -07:00
Sebastian Hengst 855fb4576a Backed out changeset dbd300f4d75b for build bustage. r=backout on a CLOSED TREE 2017-11-04 00:55:25 +01:00
Sebastian Hengst eebc5b65c0 Backed out changeset 0637dca8a971 (bug 1410736) for eslint failure at toolkit/components/extensions/test/xpcshell/test_ext_i18n_css.js:130: Unexpected var, use let or const instead. r=backout on a CLOSED TREE 2017-11-04 00:51:02 +01:00
Sebastian Hengst 07b805d165 Backed out 5 changesets (bug 1411688) for flake8 linting failure at testing/mozharness/scripts/mobile_l10n.py. r=backout on a CLOSED TREE
Backed out changeset 8ddf3257a8db (bug 1411688)
Backed out changeset c313d76f2aa5 (bug 1411688)
Backed out changeset 3df83a3b7e9c (bug 1411688)
Backed out changeset 133417cefdab (bug 1411688)
Backed out changeset a8fd33d8a2af (bug 1411688)
2017-11-04 00:49:47 +01:00
Rand Mustafa 1151820f71 Bug 1411602 - controlCenter_about does not show the control center. r=MattN
MozReview-Commit-ID: 7d0dvAebymF

--HG--
extra : rebase_source : 0acda3bbb5b2677c0a0e31b37c21dcc1e2753d55
2017-11-03 16:39:30 -04:00
Ursula Sarracini df4f8ff8c2 Bug 1373258 - Convert PageThumbsProtocol.js to PageThumbsProtocol.cpp r=adw
MozReview-Commit-ID: tdNee2EPdV

--HG--
extra : rebase_source : 436ef616173f22b6d8386b8e7b3f482f1acabca4
2017-06-05 10:04:06 -04:00
Dave Townsend 1a6bee3827 Bug 1412361: Remove unused XBL checkbox-baseline and checkbox-radio. r=nalexander
MozReview-Commit-ID: 3wHHhkcGXEC

--HG--
extra : rebase_source : a9d03c421f47b6c8ed47cf37d7a9c2ebb3900626
2017-11-02 10:28:53 -07:00
Nick Alexander 032f7f4f46 Bug 1411688 - Part 4: Make single-locale repacks agree with underlying Nightly builds. r=aki
There's nothing that makes sense in the existing setup; we're only not
getting bitten because the set of things that _do_ depend on all of
the flags that differ between the underlying Nightly builds and
single-locale repacks is small, and nobody has complained.  For
example, about:licenses probably does not include the Adjust SDK
license for single-locale repacks.

This patch series recompiles the Java code as part of each
single-locale repack, and that means the feature flags, etc, need to
be the same between the underlying compiled code (from the underlying
Nightly build) and the fresh Java compile.  This patch tries to
harmonize the two.

MozReview-Commit-ID: 230q7HuD1vV

--HG--
extra : rebase_source : 40bdac7073614fcb366e97b733ad98afb4f2dfb4
extra : source : d7f794ec69ccd38d66ec5394fac7cc6658e29ce4
2017-10-23 13:50:51 -07:00
Nick Alexander da9eb82801 Bug 1411688 - Part 3: Set MOZ_UPDATE_CHANNEL in single-locale repacks. r=aki
I'm seeing "try" in my repacks, when the underlying build has
"nightly-try".  This should make the two agree.

MozReview-Commit-ID: 45yE9Qwz0v7

--HG--
extra : rebase_source : 8b524470680e248c649bf3e4e532cdd5487ec538
2017-11-02 09:47:10 -07:00
Nick Alexander 68167070f8 Bug 1411688 - Part 2: Include secrets in Android single-locale repacks. r=aki
Single-locale repacks need to run aapt (--without-gradle) or Gradle
(--with-gradle).  When running --with-gradle, they need to compile the
Java source code again (in order to produce a fresh R.java with
correct IDs).  That compile will be part of the shipping APK, so it
needs to be configured "the same" as the underlying repacked.  *This
is a significant change in behaviour, but necessary to support newer
Gradle/aapt versions, which do not maintain R.java ID mappings across
invocations.*

Part of the configuration are the secret keys and features that are
gated on them.  This commit makes those secrets available to
single-locale repacks.

MozReview-Commit-ID: 4REPsIb5TgN

--HG--
extra : rebase_source : 9a74ea5f6633d1a4bd52d6116b60edaf974d11eb
extra : source : a721890f7573140ca6a926e722bd3538c732dae7
2017-11-02 10:03:01 -07:00
Nick Alexander 9de930db2b Bug 1411688 - Part 1: Make --with-gradle handle single-locale repacks. r=snorp
Single-locale repacks do the following:

Download existing APK; unzip APK; update l10n resources; |mach package| with IS_LANGUAGE_REPACK=1.

This is pretty hard to accommodate, but we can try.  The key issues
here are to recognize when IS_LANGUAGE_REPACK=1 and not ask for l10n
resources (in particular, strings.xml) to be generated.

We do need to include the freshly built classes.dex when repackaging,
because newer Gradle/aapt doesn't preserve the R.java IDs.

MozReview-Commit-ID: 9FvQtmPOUjg

--HG--
extra : rebase_source : 6a34a8c299138ea39c6703f334c8fd5f49b03237
2017-10-23 13:24:58 -07:00
Nick Alexander e5ebccdd4f Bug 1411688 - Part 0: Make --with-gradle handle single-locale repack ABIs. r=snorp
This agrees with
http://searchfox.org/mozilla-central/rev/423b2522c48e1d654e30ffc337164d677f934ec3/mobile/android/base/generate_build_config.py#95.
It should really come from the underlying binaries for repacks, but
right now we only repack ARM builds, so this will do.

MozReview-Commit-ID: 3UvrJDV1l9a

--HG--
extra : rebase_source : 64afca521be49b0bfb4c4a677be24886c0e7f412
2017-11-02 09:38:47 -07:00
Thom Chiovoloni 4a77d5a93f Bug 1388224 - Remove SyncStorageRequest HTTP wrapper class, which is no longer used r=kitcambridge
MozReview-Commit-ID: EgExfizNll5

--HG--
extra : rebase_source : 85a6098a5b985990bd3a8483936bf6cf768f1f0b
2017-11-01 17:17:46 -04:00
Zibi Braniecki 5db1dc8a9d Bug 1410736 - Replace remaining uses of general.useragent.locale with LocaleService API. r=jfkthame
MozReview-Commit-ID: CmXBFcKxOkX

--HG--
extra : rebase_source : deeeee81fd187aa9ca4f26f9f5c69633ff405e34
2017-11-02 14:11:41 -07:00
Francois Marier 576717207b Bug 1393627 - Expose the full tracking protection UI preferences. r=mossop
MozReview-Commit-ID: KyDBuHyDPLP

--HG--
extra : rebase_source : 29050cd192aaeb237786a4ffe74a2bf460af66ed
2017-11-03 11:44:43 -07:00
Felipe Gomes 29343567b3 Bug 1413296 - Remove the E10SCohort annotation from a crash test, as it doesn't exist anymore. r=gsvelto
MozReview-Commit-ID: AGZF0xpxAPY

--HG--
extra : rebase_source : a7229fcb5a28e278644411fcab997d011b999904
2017-11-03 15:07:28 -02:00
Felipe Gomes f35bb278f5 Bug 1413296 - Remove the e10sCohort annotation from the Telemetry environment. r=chutten
MozReview-Commit-ID: 1k0NAqylXUG

--HG--
extra : rebase_source : a6b9117c9beea6a68f6f2dd69591439c53f09a82
2017-11-03 15:06:40 -02:00
Emilio Cobos Álvarez ab3406e598 servo: Merge #19108 - stylo: querySelector{,All} optimizations (from emilio:qsa); r=xidorn,bz
Bug: 1410624
Source-Repo: https://github.com/servo/servo
Source-Revision: a0cd781bdcdfa9db8b33632f0117e4d835ea1892

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 78c5ebda8da554c83af4c750bd5642fa17be8745
2017-11-03 14:27:34 -05:00
Kit Cambridge 064ed56076 Bug 1368209 - Refactor `Engine::_processIncoming` into three stages. r=eoger,tcsc
* In the first stage, we fetch changed records, newest first, up to the
  download limit. We keep track of the oldest record modified time we
  see.
* Once we've fetched all records, we reconcile, noting records that
  fail to decrypt or reconcile for the next sync. We then ask the store
  to apply all remaining records. Previously, `applyIncomingBatchSize`
  specified how many records to apply at a time. I removed this because
  it added an extra layer of indirection that's no longer necessary,
  now that download batching buffers all records in memory, and all
  stores are async.
* In the second stage, we fetch IDs for all remaining records changed
  between the last sync and the oldest modified time we saw in the
  first stage. We *don't* set the download limit here, to ensure we
  add *all* changed records to our backlog, and we use the `"oldest"`
  sort order instead of `"index"`.
* In the third stage, we backfill as before. We don't want large deltas
  to delay other engines from syncing, so we still only take IDs up to
  the download limit from the backlog, and include failed IDs from the
  previous sync. On subsequent syncs, we'll keep fetching from the
  backlog until it's empty.

Other changes to note in this patch:

* `Collection::_rebuildURL` now allows callers to specify both `older`
  and `newer`. According to :rfkelly, this is explicitly and
  intentionally supported.
* Tests that exercise `applyIncomingBatchSize` are gone, since that's
  no longer a thing.
* The test server now shuffles records if the sort order is
  unspecified.

MozReview-Commit-ID: 4EXvNOa8mIo

--HG--
extra : rebase_source : f382f0a883c5aa1f6a4466fefe22ad1a88ab6d20
2017-11-01 11:09:57 -07:00
Kit Cambridge 96593594d3 Bug 1368209 - Add a test for fetching backlogged history records. r=tcsc
The test captures the existing logic in `_processIncoming`, even though
it's not quite correct:

* First, we fetch all records changed since the last sync, up to the
  download limit, and without an explicit sort order. This happens to
  work correctly now because the Python server uses "newest" by
  default, but can change in the future.
* If we reached the download limit fetching records, we request
  IDs for all records changed since the last sync, also up to the
  download limit, and sorted by index. This is likely to return IDs
  for records we've already seen, since the index is based on the
  frecency. It's also likely to miss IDs for other changed records,
  because the number of changed records might be higher than the
  download limit.
* Since we then fast-forward the last sync time, we'll never download
  any remaining changed records that we didn't add to our backlog.
* Finally, we backfill previously failed and backlogged records.

MozReview-Commit-ID: 7uQLXMseMIU

--HG--
extra : rebase_source : 719ee2d9e46102195251b410f093da3247095c22
2017-10-27 17:54:48 -07:00
Kit Cambridge 432850c0aa Bug 1368209 - Add support for `sortindex` and `older` to the mock Sync server. r=tcsc
MozReview-Commit-ID: 6YI1OEE8x7R

--HG--
extra : rebase_source : 2f0da0cd2a1554685fff5af3de100e4b01564447
2017-10-27 17:55:30 -07:00
Edouard Oger 3e7662202d Bug 1413685 - Unify AsyncResource and Resource. r=tcsc
MozReview-Commit-ID: 1yEeAwpbGxJ

--HG--
extra : rebase_source : 8c87b0d16138acf2b55be70767fe0547f4ac1d42
2017-11-02 14:30:59 -04:00
Sebastian Hengst 1133016f04 Backed out 6 changesets (bug 1386404) for XPCshell failures, at least on Linux. r=backout on a CLOSED TREE
Backed out changeset c80acdea24c1 (bug 1386404)
Backed out changeset 6224ffae752a (bug 1386404)
Backed out changeset 9eba087cf64a (bug 1386404)
Backed out changeset eac6eb517096 (bug 1386404)
Backed out changeset 802a00ea50e7 (bug 1386404)
Backed out changeset d7f697bac6ef (bug 1386404)
2017-11-03 20:28:00 +01:00
CYBAI aaebe2318c servo: Merge #19101 - style: Move font -moz-script-level outside of mako (from CYBAI:moz-script-level-out-of-mako); r=emilio
This is a sub-PR of #19015
r? emilio

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #19068 (github issue number if applicable).
- [x] These changes do not require tests because _____

Source-Repo: https://github.com/servo/servo
Source-Revision: 107ead64d073f9e13ce2c4477624a20bcd0dd30e

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : 2915fb39cc3e87625c957746a7772ca63257e46e
2017-11-03 11:09:39 -05:00
Tim Nguyen a8c84381e2 Bug 1347190 - Add support for toolbar_top/bottom/vertical_separator in the theming API. r=jaws
MozReview-Commit-ID: EWQar4tKHs0

--HG--
extra : rebase_source : c5b7af5e7155c0ed1318ce4d99f5c30f9fee5f01
2017-11-03 18:00:51 +00:00
Mike Park 8ecb745b70 Bug 1412273 - Adjust CSS shapes highlighter toggle to be visible in dark theme. r=jdescottes
MozReview-Commit-ID: GilM6JKDpMF

--HG--
extra : rebase_source : c671b3ddc0876c054b295dbd0b1f16a250b2b888
2017-11-01 12:25:50 -04:00
Mike Park 4ad079896b Bug 1282721 - Add unit tests for shapes highlighter translate/scale for all shapes. r=pbro
MozReview-Commit-ID: JJg0zFtvi9s

--HG--
extra : rebase_source : ec44826d7cc58a6df797a340912644ff6f9ed222
2017-10-12 15:54:45 -04:00
Mike Park f5bef41c46 Bug 1282721 - Add transform mode to shapes highlighter with translation/scaling for all shapes. r=pbro
MozReview-Commit-ID: HhWY1pT7Mqu

--HG--
extra : rebase_source : 4c4eb2b4a14abc7bfa8d106562c7274ab75a7f4d
2017-10-10 14:05:50 -04:00
Servo VCS Sync c83538c183 No bug - Revendor rust dependencies 2017-11-03 18:06:07 +00:00
Julian Descottes 2c5cda8646 Bug 1411906 - add close button to about:devtools if devtools are disabled;r=nchevobbe
A close button on the starting page of the devtools onboarding flow
will be helpful for users who triggered the shortcut by mistake and
would like to escape the flow.

MozReview-Commit-ID: 7rZ50jFepJ3

--HG--
extra : rebase_source : 9f0dadf3a68f084d05e9f0098a8a7ac90becf964
2017-11-02 21:56:26 +01:00
Henrik Skupin 406c0a5bf2 Bug 1414221 - Update README.de for moz:webdriverClick capability. r=ato,automatedtester
While the usage of this capability was optional before, it will
be of help starting with Firefox 58. With this version the
webdriver conformant click will be enabled by default. As
fallback the legacy click should still be able to get selected,
and as such the capability has to be set.

DONTBUILD

MozReview-Commit-ID: 1iU8FPK353N

--HG--
extra : rebase_source : 0c296507d0f7d1884c88bb2f0fbbf267e99f219b
2017-11-03 11:25:21 +01:00
Dão Gottwald d7ee263691 Bug 1411640 - Consolidate <radio> bindings and styling across platforms. r=bgrins
MozReview-Commit-ID: 4Z6cdsiLMio

--HG--
extra : rebase_source : e37a614089d472810764816991a17e5cfe78f789
2017-11-03 18:05:16 +01:00
J. Ryan Stinnett b746489c0b Bug 1412359 - Filter to matching device on remove. r=gl
The local device removal path used by RDM had a bug in its `findIndex` call
which caused it to always return `true` for the first device.

Effectively this meant that each separate device removal button always removed
the first device!  This would lead to all sorts of user confusion and UI
divergence.

Here we clean this up by allowing the caller (RDM in this case) to specify via a
callback which device is intended for removal.

MozReview-Commit-ID: 22VwEDZAXOa

--HG--
extra : rebase_source : a48b314090a321aa13cf8ca436e2beefa3dcc392
2017-10-30 11:00:55 -05:00