Commit graph

17534 commits

Author SHA1 Message Date
Marco Bonardo
04c132a988 Bug 1416377 - Use new async Places APIs in test_refresh_firefox.py. r=standard8
MozReview-Commit-ID: HvN8oHgIbbq

--HG--
extra : rebase_source : 5a21dba36985008f5383ed6332571f91565716a5
2018-01-23 15:14:38 +01:00
Mark Banner
22a702ba40 Bug 1432520 - Fix a double separator in the Places Organize menu. r=mak
MozReview-Commit-ID: IVRls70hJSX

--HG--
extra : rebase_source : d62f8d26e3bf93601d075125a05496d7b78eea4a
2018-01-23 20:39:24 +00:00
hemant
df042c21a8 Bug 1370881 - Replace calls to asyncHistory.isURIVisited and promiseIsURIVisited with PlacesUtils.history.hasVisits r=standard8
MozReview-Commit-ID: BHWkJpdYA0g

--HG--
extra : rebase_source : 927cd89c69ed2cdbf6ebf8e954c38238ebbdd273
2018-01-24 20:58:57 +05:30
Rob Wu
2cf5e43401 Bug 1215376 - fix linting and test issues from rebase r=mixedpuppy
- Work-around in browser_ext_menus_events.js for bug 1428213
- Fix indentation issues (eslint)
- Hide the "pageUrl" property for bookmark menu events
  (fixes test failure in test_bookmark_contextmenu).

MozReview-Commit-ID: 4YHJci0J7Rh

--HG--
extra : rebase_source : 3879e843bd2826fcd34dbd41708d570024e681e8
2018-01-05 01:13:04 +01:00
Rob Wu
31f0051ebc Bug 1215376 - Test menu event order: onShown, onClicked, onHidden r=mixedpuppy
This test ensures that the menu events will always be fired in the
natural event order.

Two menus are tested:
- A context menu in the page.
- The tools menu.

MozReview-Commit-ID: 4sLyvgMYMtE

--HG--
extra : rebase_source : 9837661f034530b63c9cbbbb3104fb6367f513a8
2017-09-26 19:25:22 +02:00
Rob Wu
ea69a1a9b5 Bug 1215376 - Fire menus.onShown for every menu r=mixedpuppy
This commit lifts the restriction that onShown is only fired for
extensions with a visible menu item.

MozReview-Commit-ID: Ao4MgBoRWLR

--HG--
extra : rebase_source : c1acd1bcbfdcc6ef4bfaf199f3f016dde71ad2e5
2017-09-14 18:28:36 +02:00
Rob Wu
c9ac969282 Bug 1215376 - refactor: re-use onShown event generator for onClicked r=mixedpuppy
The logic in onClicked had some flaws:
- editable can be undefined instead of a boolean.
- linkText, linkUrl is set in non-link contexts.
- srcUrl is set even in non-media contexts.

This change does not add new tests, because test coverage for the
event data generator is provided by:
browser/components/extensions/test/browser/browser_ext_menus_events.js

There is one observable change here.
Previously, linkUrl and linkText would also be set for non-link context
if the selected text contained a URL. When this happens, then
nsContextMenu.js sets onPlainTextLink=true.
With this refactor, linkText and linkUrl are only set if the context is
"link" (onLink=true).

MozReview-Commit-ID: 2xf1F41bn0U

--HG--
extra : rebase_source : 698e0b9a2eb10f58d02e062f930753752aff9a54
2017-09-14 16:41:14 +02:00
Rob Wu
fc7e2d4ea9 Bug 1215376 - Add more contextual information to onShown r=mixedpuppy
- Adds most of the OnClickData properties to the onShown event parameter
  (except for menu-specific properties such as parentMenuId / checked).
- Add tests to verify the values of these properties.

MozReview-Commit-ID: 7705sJyAOIJ

--HG--
extra : rebase_source : 8948ea20129cfd1c34653a3cbe9b36cebd6fa00d
2017-09-14 16:37:57 +02:00
Rob Wu
582474fa51 Bug 1215376 - Always use old contextData upon refresh r=mixedpuppy
MozReview-Commit-ID: K1wfFCYpMqB

--HG--
extra : rebase_source : c82f9d01631e3d4160de0c49657dd7d8ca8c7a6a
2017-09-14 02:11:29 +02:00
Rob Wu
e86d6006f0 Bug 1215376 - Add menus.refresh to update menus r=mixedpuppy
Together with the previous patches that introduced menus.onShown,
this enabled extensions to update/remove menu items after a menu
has been shown.

At this point, it is not yet possible to add a menu item if an
extension has not shown a menu item before; this can be added later.

MozReview-Commit-ID: E0JrE9gd4gS

--HG--
extra : rebase_source : 0d21c369eb17b3a819603f27af8d9f9fccf5b783
2017-09-13 03:14:00 +02:00
Rob Wu
13cdced616 Bug 1215376 - Refactor gMenuBuilder.build r=mixedpuppy
Splot gMenuBuilder.build in three separate functions because the
individual functionality is needed later.

This is just moving some code around, nothing interesting to see.

MozReview-Commit-ID: Lo6QmLQBtO5

--HG--
extra : rebase_source : 6476a8834c378d6fa059fab1a5f2323f82688658
2017-09-12 02:34:41 +02:00
Rob Wu
a495a0b1c0 Bug 1215376 - Ensure that menu elements have a unique ID r=mixedpuppy
Previously, there was no guarantee for the uniqueness of the ID.
Now the ID is unique, and always set.

See https://bugzil.la/1358213#c6 and #c7 for examples of collisions.

MozReview-Commit-ID: 7CHP6tWFDUg

--HG--
extra : rebase_source : a585dcfd3a83eb590de9b69a02dba8b4bb1b0a0c
2017-09-11 01:01:41 +02:00
Rob Wu
e9a64ba705 Bug 1215376 - Add onShown and onHidden to contextMenus/menus API r=mixedpuppy
This commit adds the bare minimum to support the onShown and onHidden
methods in the contextMenus and menus API (plus tests).

The onShown event data may be extended in a separate commit, to make it
easier to see how the additional properties are reflected in the tests.

MozReview-Commit-ID: 20VJS2YLhTN

--HG--
extra : rebase_source : 1fe9985b2e5daa1be455e07ccf58e36e6d9fe508
2017-09-10 01:38:45 +02:00
Rob Wu
5926434b44 Bug 1215376 - allow itemToSelect to be null in menu closing test utility r=mixedpuppy
Most close*Menu methods in browser tests allow itemToSelect to be null.
Some did not.
Now they do (after this commit)

MozReview-Commit-ID: 2jSGAi2R3ZD

--HG--
extra : rebase_source : 897d4a66f5b1da8027180f85c5f5f5284734e860
2017-09-09 19:41:56 +02:00
Mark Hammond
4772b1fe2e Bug 1432277 - Replace iOS and Android link in Prefs for signed-in users with device actions. r=eoger
MozReview-Commit-ID: 1Lwe2g1bFpw

--HG--
extra : rebase_source : 6529420b5a2e1b4438f2472313abbc7e7dcf7dc1
2018-01-23 17:47:19 +11:00
Narcis Beleuzu
9279994eae Merge inbound to mozilla-central. a=merge 2018-01-24 23:56:14 +02:00
Sebastian Hengst
78d2a3c1db Merge mozilla-central to mozilla-inbound 2018-01-24 14:24:05 +02:00
Doug Thayer
c84d12a090 Bug 862127 - Fix migrator tests to use async interfaces r=Gijs
MozReview-Commit-ID: 9qFA4y8viSW

--HG--
extra : rebase_source : 8addec4f65d58c05c83009ca4bd23917d9961c0c
2018-01-11 15:35:05 -08:00
Doug Thayer
9cae8e6dac Bug 862127 - Remove all sync IO from Chrome migration r=Gijs
Now that the interfaces are all async, we can simply replace all
the sync IO in the Chrome migrator with the equivalent async IO.
Other browsers will be addressed in separate patches.

MozReview-Commit-ID: FyGRRKY57Gm

--HG--
extra : rebase_source : 0228b9b72c7217e3f6e607256cb3828bf5819189
2018-01-11 09:52:56 -08:00
Doug Thayer
cec5b96dc3 Bug 862127 - Convert migration.js to use async migration interfaces r=Gijs
migration.js is a special case where we generally need blocking
calls in order for the wizard to work correctly. Accordingly we
block waiting for the new async interfaces. With automigration
and potential new UIs that are in the works for migration, the
asynchronicity of these interfaces will be more relevant, but
here it's not really important enough to make big changes to the
way the UI is implemented.

MozReview-Commit-ID: LkfwBVfpCJO

--HG--
extra : rebase_source : 1f9f2c7e2fa20b883840e091dbee366a161eaaf7
2018-01-12 09:11:38 -08:00
Doug Thayer
efdd84d094 Bug 862127 - Make migration interfaces more async r=Gijs
In order to clean up sync IO within our profile migrators, we
need to have async interfaces for those parts which are currently
doing sync IO. This converts the sync interfaces and adjusts most
of the call sites (migration.js call site changes are addressed
in a separate patch to break it out a bit).


MozReview-Commit-ID: 2Kcrxco4iYr

--HG--
extra : rebase_source : 53d123c435e43622a999a7e849dddbe1919061e0
2018-01-12 09:06:21 -08:00
Francesco Lodolo (:flod)
6a6eaef3d0 Bug 1432555 - Restore and use existing string extensionControlled.enable for instruction on how to enable extensions r=Gijs
MozReview-Commit-ID: 4nGtBhWzakN

--HG--
extra : rebase_source : aabca46e1d06c84cc55f33335dd13cb1ab7dc0a4
2018-01-23 19:25:59 +01:00
Edouard Oger
d149a0176b Bug 1426306 - Store only derived keys instead of storing kB/kA. r=glasserc,markh,rfkelly
MozReview-Commit-ID: Hgv5hxSH4qX

--HG--
extra : rebase_source : fa6d45480a2078e841c72b2c8c92541811633737
2018-01-05 15:56:00 -05:00
Thom Chiovoloni
a1373c066f Bug 1408361 - Add ellipsis when truncating received tab URI for display. r=eoger
MozReview-Commit-ID: 4PVX5J59kpM

--HG--
extra : rebase_source : 335cceb4a659e06365339a69a965782bfeaf3be5
2018-01-16 12:57:36 -05:00
Tom Ritter
0e3d8ae3b5 Bug 1431842 Call worker.terminate() in browser_performanceAPI.js to (hopefully) fix an intermittent r=bkelly
MozReview-Commit-ID: G7PDjyaWr4S

--HG--
extra : rebase_source : cf6a60ba2199cec37a85a250f219a54c253cd23b
2018-01-22 23:29:29 -06:00
Dorel Luca
bad2421650 Merge mozilla-central to autoland r=merge 2018-01-23 19:54:54 +02:00
Dorel Luca
e3cba77cee Backed out changeset 5eba8dcac2bb (bug 1373055) for causing bug 1430466 2018-01-23 19:49:57 +02:00
Drew Willcoxon
86cfc3f0ce Bug 1432263 - Make matchBuckets string parsing the same everywhere it's done. r=mak
MozReview-Commit-ID: GmGCHl4RtWB

--HG--
extra : rebase_source : 97f8b643be9431b994fc4dca03b243a664ed56ba
2018-01-22 11:21:55 -08:00
Mike de Boer
34e56095a6 Bug 1392130 - Ensure that when one of the Sessionstore shutdown blockers finishes and wins the race, to properly cleanup the running timer and observers. r=Yoric
MozReview-Commit-ID: 1K4QDCSM2oj

--HG--
extra : rebase_source : c7cf4a1e9edb62c17e7abb0aea452a2cffbec5b5
2018-01-23 15:24:01 +01:00
arthur.iakab
d0e0b48d27 Backed out changeset 6594f1cefd6a (bug 1392130)for eslint failures on builds/worker/checkouts/gecko/browser/components/sessionstore/SessionStore.jsm:1628:12 2018-01-23 16:00:03 +02:00
arthur.iakab
117f8b694c Backed out changeset 4d03b6d9fff4 (bug 1428845)for failing browser chrome on browser/components/preferences/in-content/tests/browser_applications_selection.js 2018-01-23 15:57:59 +02:00
Mike de Boer
2ff1bfa8ae Bug 1392130 - Ensure that when one of the Sessionstore shutdown blockers finishes and wins the race, to properly cleanup the running timer and observers. r=Yoric
MozReview-Commit-ID: CGTSZEhT6lI

--HG--
extra : rebase_source : 6ab3b32626e45bb42f88f93881ef0a086302ddb3
2018-01-23 14:25:13 +01:00
Mike de Boer
f77417e3e0 Bug 1411581 - Mochitest 'browser_615394-SSWindowState_events_undoCloseTab.js' leaks windows too frequently; rewrite the test and wait for the browser to load, before finishing up the test. r=mconley
MozReview-Commit-ID: 6HFJTZP8tLB

--HG--
extra : rebase_source : 1cee6700f3428b6b52be4758ae737a1940adaa8c
2018-01-23 13:44:14 +01:00
Rofael Aleezada
16425668f9 Bug 1428845 - Removed duplicate definition of waitForCondition(). r=johannh
MozReview-Commit-ID: UCZwR5eRc5

--HG--
extra : rebase_source : 13e5d675c4e2f07e90c7a45c2a652ff8173adeb8
2018-01-22 18:50:32 -06:00
Coroiu Cristina
fe07e42eba Backed out 1 changesets (bug 1428844) on request from johannh
Backed out changeset 44239d2b430a (bug 1428844)
2018-01-23 14:02:25 +02:00
Arjun Krishna Babu
8b570d5a30 Bug 1428844 - Use BrowserTestUtils.waitForEvent in preferences tests; r=johannh
In preferences tests, all calls to waitForEvent function defined in
browser/components/preferences/in-content/tests/head.js has been replaced with
calls to BrowserTestUtils.waitForEvent.

Since we are no longer using the waitForEvent function defined in the
aforementioned head.js file, that definition has been removed.

MozReview-Commit-ID: IrtGJFtWPPj

--HG--
extra : rebase_source : 9d2fbb6194fa9127a9d559d98371dd60503c5e9e
2018-01-18 10:20:04 -07:00
Gijs Kruitbosch
9d478f14ea Bug 1431428 - use DOM instead of innerHTML for extension messaging in prefs, r=jaws
MozReview-Commit-ID: JkG6zT8ADDU

--HG--
extra : rebase_source : 53e320ab0146e000530b90f502a3eae13743e78f
2018-01-18 18:19:10 +00:00
Dorel Luca
2f4f0ba72d Merge mozilla-central to autoland r=merge 2018-01-23 12:12:21 +02:00
Dorel Luca
4b9ccdb392 Merge mozilla-inbound to mozilla-central r=merge a=merge 2018-01-23 12:02:17 +02:00
Sam R-T, Joseph F, Robin H
b6f7cc8e46 Bug 1432062 - Require dangling commas via eslint for the migration component. r=MattN 2018-01-22 15:22:35 -08:00
Gurzau Raul
8d25fdea99 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-01-23 02:25:48 +02:00
Gurzau Raul
9801931bda Merge inbound to mozilla-central. a=merge 2018-01-23 02:21:47 +02:00
Felipe Gomes
25fbe33abc Bug 1429141 - Fix test when it runs twice in a row, e.g. on test-verify. r=me
MozReview-Commit-ID: 7fBK71Kc1hd
2018-01-22 22:20:21 -02:00
Felipe Gomes
fcb1b42e8d Bug 1419102 - Implement the Enterprise Policies feature to provide enterprise users with easier control and setup of deployments of Firefox. r=Mossop
This feature is currently disabled behind a pref, but this pref will be removed when we're green to release it.

MozReview-Commit-ID: 3ZH2UJVdtC0

--HG--
rename : browser/components/newtab/tests/browser/.eslintrc.js => browser/components/enterprisepolicies/tests/browser/.eslintrc.js
2018-01-22 17:01:48 -02:00
Mark Banner
412e825e77 Bug 1131491 - Remove browser.places.useAsyncTransactions preference - async transactions are now the only version. r=mak
MozReview-Commit-ID: 9EKNvA8Q9jo

--HG--
extra : rebase_source : 289082be4a1f086620bf0fe3008c2eacbdc6a9fa
2018-01-22 13:36:41 +00:00
Felipe Gomes
a72b687b28 Bug 1429141 - Policy: Don't check if Firefox is the default browser on startup. r=Gijs
MozReview-Commit-ID: DMpGbNkhRN6
2018-01-22 20:32:12 -02:00
Felipe Gomes
fafa9a9a82 Bug 1428923 - Implement setDefaultPrefAndLock helper function needed to implement several policies. r=mkaply
MozReview-Commit-ID: 5RcozfmAFWR
2018-01-22 20:32:07 -02:00
Marco Bonardo ext:(%20%3Cmbonardo%40mozilla.com%3E)
bed8d88705 Bug 1428342 - Make Places queries directly inherit options from their parent. r=standard8
Rather then trying to guess options from the parent or the root node, make query nodes directly
inherit some options from their parent.

MozReview-Commit-ID: 1YgDjrrMqGY

--HG--
extra : rebase_source : 5714e6243b0080c977cf6ab454c3f624990414dd
2017-12-14 10:06:37 -06:00
Jan Odvarko
c59f2d5676 Bug 1311177 - Implement the devtools.network.getHAR API method; r=jdescottes,rickychien,rpl
MozReview-Commit-ID: gUtGjbr0FQ

--HG--
extra : rebase_source : 78f837101f83d5ad455fc7e2d1f53db054cec4cc
2018-01-22 18:30:46 +01:00
Cosmin Sabou
5a4fc2c366 Backed out changeset 5040af317e67 (bug 1249596) for Mochitest Android 4.3 RC4 failures at testUnifiedTelemetryClientId on a CLOSED TREE 2018-01-22 17:57:46 +02:00