Commit Graph

1135 Commits

Author SHA1 Message Date
Margareta Eliza Balazs
752237280c Merge inbound to mozilla-central r=merge a=merge 2017-10-31 12:46:19 +02:00
Sebastian Hengst
271cfe5cd9 merge mozilla-central to mozilla-inbound. r=merge a=merge 2017-10-31 00:00:54 +01:00
Sebastian Hengst
4c3e66715b merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 4PW6ESqLL73
2017-10-30 23:52:23 +01:00
Kevin Jones
fb70106197 Bug 1322485 - Implement browser.tabs.discard API. r=mixedpuppy 2017-10-30 12:52:00 -04:00
Sebastian Hengst
917c42da31 merge mozilla-central to autoland. r=merge a=merge 2017-10-30 23:58:16 +01:00
Drew Willcoxon
f35c08c797 Bug 1395387 - Reconcile WebExtension page actions and Photon page actions: WebExtensions changes. r=mixedpuppy
MozReview-Commit-ID: n2eR3q1aZF
2017-10-27 17:39:57 -04:00
Drew Willcoxon
6102777cd1 Bug 1412170 - Integrate WebExtension page action context menus with the Photon page action context menu: WebExtensions changes. r=mixedpuppy
MozReview-Commit-ID: 4vBNSmCU1a0
2017-10-30 17:50:33 -04:00
Phil Ringnalda
c8ae0986f8 Backed out 2 changesets (bug 1412170) for eslint bustage
Backed out changeset a9a646fe54ec (bug 1412170)
Backed out changeset 8b46ed411edf (bug 1412170)

MozReview-Commit-ID: Et3MnX3ieBe
2017-10-30 14:21:45 -07:00
Drew Willcoxon
251ef6f1dd Bug 1412170 - Integrate WebExtension page action context menus with the Photon page action context menu: WebExtensions changes. r=mixedpuppy
MozReview-Commit-ID: 4vBNSmCU1a0
2017-10-30 16:53:42 -04:00
Joel Maher
a8f537d0ab Bug 1405453 - Disable browser/components/extensions/test/browser/test-oop-extensions/browser_ext_browserAction_context.js on windows and mac for frequent failures. r=me, a=testonly 2017-10-30 07:56:25 -04:00
Mark Banner
3c2a2c87c9 Bug 1411368 - Automatically fix indent-legacy issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: BaQ8GXIGV5v
2017-10-26 12:20:08 +01:00
Sebastian Hengst
6090308fdf Backed out changeset ba4a39241953 (bug 1386018) for xpcshell failures, e.g. toolkit/mozapps/extensions/test/xpcshell/test_signed_install.js on Linux debug. r=backout on a CLOSED TREE 2017-10-25 00:32:35 +02:00
Mark Striemer
c48b27c5af Bug 1386018 - Tell users that the default search engine was set by an extension r=bsilverberg,jaws
MozReview-Commit-ID: A7uJ2lN0cLF
2017-10-18 14:54:54 -05:00
Wouter Verhelst
44cf42f3eb Bug 1404421 - Add an empty slot to the test PKCS#11 module r=keeler
It is helpful to have a slot which never has a token, so that the
absense of a token can be asserted in unit tests.

Add a third token that is always empty, and update a number of unit
tests to check for it.

MozReview-Commit-ID: 4apvRRhZJus
2017-10-01 12:10:20 +02:00
Luca Greco
3ca4bd1eba Bug 1403349 - Split webNavigation onCreatedNavigationTarget tests to prevent timeouts on linux32 debug. r=aswan
MozReview-Commit-ID: 50JLocTVvfu
2017-10-13 18:19:47 +02:00
Luca Greco
a77b2b5f48 Bug 1403349 - Add a new webNavigation test for window.open called with a named window target. r=aswan
MozReview-Commit-ID: Aj8uMtcGwJx
2017-09-28 22:04:14 +02:00
Luca Greco
aa7ccd381d Bug 1403349 - Prevent WebNavigation jsm to leak the sourceTab browser on unpaired CreatedNavigationTarget messages. r=aswan
This applies the following changes:

- store a weak reference to the browser element in the WebNavigation.jsm Manager's map
  of pending CreatedNavigationTarget messages

- when a CreatedNavigationTarget message is received from a sourceTab
  for a created window that is not currently tracked in the map
  (e.g. it has been immediately closed), the message received from the sourceTab
  is not saved in the map of the pending CreatedNavigationTarget (and a message
  is logged in the console to make easier to investigate issues related to discarded
  CreatedNavigationTarget events).

- adds an additional assertion to the related test case to ensure that no CreatedNavigationTarget
  message is still pending in the WebNavigation/jsm's Manager.

MozReview-Commit-ID: FijQ8IqiY8L
2017-09-27 19:07:41 +02:00
Luca Greco
3c5747ada7 Bug 1403349 - Fix wrong sourceTabId on webNavigation.onCreatedTarget event. r=aswan
This changes fixes the regression introduced by Bug 1355120 and adds a new
test case which contains a browserAction popup which open and immediately
close a new window and ensure that the received onCreatedNavigationTarget
is the expected one.

MozReview-Commit-ID: JIcVCpBTpxj
2017-09-27 14:24:54 +02:00
Sebastian Hengst
63b849f89b Backed out changeset 9ad123fb9ce5 (bug 1404421) for eslint failure at security/manager/ssl/tests/unit/test_pkcs11_slot.js:44 and static bustage at security/manager/ssl/tests/unit/pkcs11testmodule/pkcs11testmodule.cpp:119. r=backout on a CLOSED TREE 2017-10-19 00:57:36 +02:00
Wouter Verhelst
08d42e3a3d Bug 1404421 - Add an empty slot to the test PKCS#11 module r=keeler
It is helpful to have a slot which never has a token, so that the
absense of a token can be asserted in unit tests.

Add a third token that is always empty, and update a number of unit
tests to check for it.

MozReview-Commit-ID: 4apvRRhZJus
2017-10-01 12:10:20 +02:00
Mark Banner
4de85b3d5b Bug 1230373 - Enable mozilla/use-services for browser/components/ r=mossop
MozReview-Commit-ID: 9m9iss3jUJJ
2017-10-11 15:43:51 +01:00
Masatoshi Kimura
0fdac2aa09 Bug 1409617 - Convert test_ext_history_redirect.html to browser test and make it a bit robust. r=aswan
MozReview-Commit-ID: FKvBB01ntm4
2017-10-18 20:37:39 +09:00
Bob Silverberg
a05b5fa348 Bug 1406379 - Implement windowTypes option for windows.getAll, r=mixedpuppy
This option works in Chrome and is documented to work in Firefox but seems
to have never been implemented.

MozReview-Commit-ID: KOu8TRaCCzL
2017-10-16 16:01:59 -04:00
Bob Silverberg
1da3e71d51 Bug 1408993 - Allow tabs.create to create URLS in reader mode, r=mixedpuppy
MozReview-Commit-ID: B5Nk0ZVvQIC
2017-10-16 10:42:45 -04:00
Mike de Boer
ad8cb0c27f Bug 1366646 - Include borders and padding when calculating the offset of a window inside an (i)frame. r=jaws
MozReview-Commit-ID: 58fBRcw1lg3
2017-10-18 13:58:36 +02:00
Masatoshi Kimura
0a8368dc11 Bug 1406594 - Fix history.search and history.getVisited so that they find hidden items correctly. r=aswan,bsilverberg
I had to add a mochitest because PlacesUtils.history.insertMany cannot create hidden redirects.

I also added a support for the "reload" transition while I am here.

MozReview-Commit-ID: ECQp6pW2r8v
2017-10-07 06:04:56 +09:00
Phil Ringnalda
06da5b50cf Backed out 3 changesets (bug 1403349) for test-oop-extensions/browser_ext_webNavigation_onCreatedNavigationTarget_window_open.js | This test exceeded the timeout threshold
Backed out changeset 6c50dc08aa42 (bug 1403349)
Backed out changeset 5dbe3db9affc (bug 1403349)
Backed out changeset 0039b4539113 (bug 1403349)

MozReview-Commit-ID: 2jlfAoj8SPn
2017-10-12 18:57:33 -07:00
Julian Descottes
778d48e93c Bug 1361080 - update webextension tests to directly use devtools loader;r=rpl
In the end the webextensions tests that test devtools should be able to load devtools
apis in the same way as devtools tests. This allows to remove the gDevTools getter on
the devtools shim, which makes the paths that can potentially initialize devtools easier
to predict.

MozReview-Commit-ID: AHokH12ygKI
2017-09-29 15:28:19 +02:00
Luca Greco
3619de328f Bug 1403349 - Add a new webNavigation test for window.open called with a named window target. r=aswan
MozReview-Commit-ID: Aj8uMtcGwJx
2017-09-28 22:04:14 +02:00
Luca Greco
05dc67781f Bug 1403349 - Prevent WebNavigation jsm to leak the sourceTab browser on unpaired CreatedNavigationTarget messages. r=aswan
This applies the following changes:

- store a weak reference to the browser element in the WebNavigation.jsm Manager's map
  of pending CreatedNavigationTarget messages

- when a CreatedNavigationTarget message is received from a sourceTab
  for a created window that is not currently tracked in the map
  (e.g. it has been immediately closed), the message received from the sourceTab
  is not saved in the map of the pending CreatedNavigationTarget (and a message
  is logged in the console to make easier to investigate issues related to discarded
  CreatedNavigationTarget events).

- adds an additional assertion to the related test case to ensure that no CreatedNavigationTarget
  message is still pending in the WebNavigation/jsm's Manager.

MozReview-Commit-ID: FijQ8IqiY8L
2017-09-27 19:07:41 +02:00
Luca Greco
6eff7b96a9 Bug 1403349 - Fix wrong sourceTabId on webNavigation.onCreatedTarget event. r=aswan
This changes fixes the regression introduced by Bug 1355120 and adds a new
test case which contains a browserAction popup which open and immediately
close a new window and ensure that the received onCreatedNavigationTarget
is the expected one.

MozReview-Commit-ID: JIcVCpBTpxj
2017-09-27 14:24:54 +02:00
Marco Bonardo
b19c6a5663 Bug 1406860 - Make urlbar tests a bit more reliable. r=standard8
MozReview-Commit-ID: 71ZzDbCq8n0
2017-10-10 01:18:23 +02:00
Sebastian Hengst
6273f32bbf Backed out changeset 1ac7fce0b369 (bug 1406860) for failing xpcshell tests, e.g. toolkit/components/places/tests/unit/test_000_frecency.js. r=backout 2017-10-11 18:25:57 +02:00
Marco Bonardo
9aedc5efc3 Bug 1406860 - Make urlbar tests a bit more reliable. r=standard8
MozReview-Commit-ID: 71ZzDbCq8n0
2017-10-10 01:18:23 +02:00
Bob Silverberg
0967cceb88 Bug 1402921 - Enhance browser_ext_tabs_readerMode to verify that correct isInReaderMode is reported for onUpdated, r=Gijs,mixedpuppy
All of the information needed for an extension to watch for tabs moving in and out
of reader mode is already available in the onUpdated event. This adds some asserts
to the existing test to check that this information is accurate.

MozReview-Commit-ID: 7OkR933MUPl
2017-09-28 07:37:35 -04:00
Julian Descottes
c9f46b9568 Bug 1407326 - remove references to invertIconForLightTheme in extensions codebase;r=rpl
MozReview-Commit-ID: B2eTpm6qbOh
2017-10-10 19:49:04 +02:00
Sebastian Hengst
7efb357302 merge mozilla-inbound to mozilla-central. r=merge a=merge 2017-10-10 06:12:26 -03:00
Kevin Jones
2d1031a927 Bug 1406912 - Fix _serializeRangeData does not handle ranges found in same node properly. r=mixedpuppy 2017-10-09 12:42:00 -04:00
Sebastian Hengst
e0cc99523e merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 36L7JL73CzG
2017-10-09 23:52:04 +02:00
Ian Moody
be771eda15 Bug 1404568 - Improve webext browser_action icon fallbacks. r=mixedpuppy
Currently if there is no default icon at the specified size, the default icon
falls back to the light text icon at that size. This is wrong in two ways:
First, the default theme uses dark text, so it should fallback to the dark icon
Secondly, authors expect the unsized default_icon to be used if specified

This patch fixes both of these issues, so that the default icon first falls back
to the unsized default_icon, and then only if that is not specified falls back
to the dark icon

MozReview-Commit-ID: C3RRTKhYq6r
2017-10-08 13:23:33 +01:00
Joel Maher
3a710d7aa1 Bug 1350189 - Disable browser/components/extensions/test/browser/test-oop-extensions/browser_ext_tabs_create.js for frequency failures. r=me, a=test-only 2017-10-09 11:10:33 -04:00
Dan Banner
306e0c888e Bug 1395890 - Change all ESLint rules that are warnings to errors. r=standard8
MozReview-Commit-ID: LJS6m1GppiS
2017-09-18 19:07:17 +01:00
Tomislav Jovanovic
1d4af355d2 Bug 1398514 - Use slower documents for executeScript_runAt test r=kmag
MozReview-Commit-ID: 56FMa4sjO3Z
2017-10-05 19:22:00 +02:00
Wouter Verhelst
fb215cb709 Bug 1405709 - Add missing await to browser.pkcs11 test suite r=zombie
MozReview-Commit-ID: GjQu8QzwHkZ
2017-10-04 17:39:36 +02:00
Mark Striemer
4c033eb077 Bug 1395074 - Clear browserAction tab data on navigation r=mixedpuppy
MozReview-Commit-ID: 4hugj2q84Rd
2017-09-26 16:06:06 -05:00
Wouter Verhelst
4663f4df9b Bug 1357391 - Implement a PKCS#11 management API r=kmag,zombie
This WebExtensions API allows to install, remove, and query installed
PKCS#11 modules as well as to query the the status of available PKCS#11
"slots" for a given module.

Reuses the native application manifests from the "Native Messaging" API,
but using the "pkcs11" type rather than the "stdio" type.

All calls expect an application name, which is not the PKCS#11 friendly
name (the "description" field in the manifest file is used for that) but
instead the application name in the manifest file.

MozReview-Commit-ID: 8dHr5QfEaXv
2017-08-22 17:59:38 +02:00
Wes Kocher
c4e92cfbc2 Backed out changeset 82920c8bb33a (bug 1357391) for xpcshell failures in test_ext_pkcs11_management.js a=backout
MozReview-Commit-ID: JUyVhAEDNs0
2017-09-29 11:22:49 -07:00
Wouter Verhelst
f8f3aa51f5 Bug 1357391 - Implement a PKCS#11 management API r=kmag,zombie
This WebExtensions API allows to install, remove, and query installed
PKCS#11 modules as well as to query the the status of available PKCS#11
"slots" for a given module.

Reuses the native application manifests from the "Native Messaging" API,
but using the "pkcs11" type rather than the "stdio" type. Update the
code for the Native Messaging API to ignore any manifests for the
"pkcs11" type.

All calls expect an application name, which is not the PKCS#11 friendly
name (the "description" field in the manifest file is used for that) but
instead the application name in the manifest file.

MozReview-Commit-ID: 8dHr5QfEaXv
2017-08-22 17:59:38 +02:00
Kris Maglione
a53de73c40 Bug 1402503: Follow-up: Make sure we get a new content process for process hang tests. r=bustage
MozReview-Commit-ID: 1CLUQbahE2W
2017-09-27 20:44:30 -07:00
Kris Maglione
b148bb5e9a Bug 1402503: Part 2 - Add test for extension slow script dialog. r=mixedpuppy
MozReview-Commit-ID: BknBhAttKHS
2017-09-25 11:49:39 -07:00