Commit Graph

1568 Commits

Author SHA1 Message Date
Csoregi Natalia
367f35bbc9 Backed out 1 changesets (bug 1413298)
Backed out changeset 2b8095d47140 (bug 1413298) for failing ESLINT browser_ext_settings_overrides_search.js:37 r=backout on a CLOSED TREE
2017-11-01 15:11:39 +02:00
Michael Kaply
dfba44429f Bug 1413298 - Allow search encoding to be specifed by WebExtension. r=florian,mixedpuppy
MozReview-Commit-ID: 4O73NlqIfjm
2017-10-31 20:15:49 -05:00
Phil Ringnalda
b851b3e255 Backed out 2 changesets (bug 1345433) for eslint bustage
Backed out changeset 7353f6f68571 (bug 1345433)
Backed out changeset 6ee966b99e7e (bug 1345433)

MozReview-Commit-ID: 47mqBLmmBpv
2017-10-31 19:35:18 -07:00
Thomas Nguyen
0782166979 Bug 1345433 - Ensure tests load pass valid triggeringPrincipal. r=ckerschb
MozReview-Commit-ID: LWcP7drDPwL
2017-10-23 18:15:40 +08:00
Shane Caraveo
17023b5d1e Bug 1321854 add logging for intermittent, r=mixedpuppy
MozReview-Commit-ID: 6Wo1CYLVtgL
2017-10-31 15:46:13 -07:00
Andrew Swan
7b718daceb Bug 1409245 Part 3 Handle update and uninstall events in WebExtensions r=kmag
This patch just forwards invocations of the bootstrap update() and
uninstall() methods to events that other parts of the WebExtension
framework can listen for.  We have an existing event that fires while
an extension is being uninstalled.  This event was named "uninstall"
but it gets renamed here to "onUninstalling" to disambiguate the two
events.

MozReview-Commit-ID: BIpIR8n9HBM
2017-10-25 20:49:14 -07:00
Mark Banner
c7f732b366 Bug 1411891 - Improve the performance of deleting bookmarks with async transactions. r=mak
MozReview-Commit-ID: GL9nKfypie1
2017-10-26 10:14:14 +01:00
Bob Silverberg
1dfb043d26 Bug 1371919 - Fix Intermittent browser/components/extensions/test/browser/browser_ext_browsingData_history.js, r=mixedpuppy
I spoke to Marco about this and it turns out the problem is due to using PlacesUtils.history.insertMany together with
PlacesTestUtils.visitsInDB. Calling the former to insert the visits and then immediately calling the latter to verify
them can result in the latter reading a snapshot of the places DB that is not up to date. The fix is to call
PlacesTestUtils.addVisits which will not return until everything is finished up and will therefore not cause
PlacesTestUtils.visitsInDB to possibly read an old snapshot.

MozReview-Commit-ID: GebqORQI0Co
2017-10-30 11:37:31 -04:00
Margareta Eliza Balazs
a5635befe3 Backed out changeset e17a2bca5391 (bug 1411891) for failing xpcshell in toolkit/modules/tests/xpcshell/test_NewTabUtils.js r=backout on CLOSED TREE 2017-10-31 14:19:52 +02:00
Attila Craciun
0c4691b633 Merge mozilla-central to mozilla-autoland. r=merge a=merge CLOSED TREE 2017-10-31 12:53:23 +02:00
Margareta Eliza Balazs
752237280c Merge inbound to mozilla-central r=merge a=merge 2017-10-31 12:46:19 +02:00
Mark Banner
3bcdba86cd Bug 1411891 - Improve the performance of deleting bookmarks with async transactions. r=mak
MozReview-Commit-ID: GL9nKfypie1
2017-10-26 10:14:14 +01: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
Mark Banner
e47ccbfec3 Bug 1411368 - Automatically fix no-multi-spaces issues raised when using ESLint 4. r=mossop
MozReview-Commit-ID: H5YVp3rnzGo
2017-10-26 11:47:01 +01:00
Bob Silverberg
39c1d4bd45 Bug 1411351 - Fix Console error "WeakMap key must be an object..." that happens when opening a new tab, r=aswan
When the New Tab page is opened, the browser object that is passed into the isArticleChangeListener
is not a valid browser from the perspective of tabbrowser.xml, so it is not able to find it in its
_tabForBrowser map. This causes undefined to be passed into tabManager.getWrapper(), which causes
the error.

This patch fixes this by not calling tabManager.getWrapper(), and subsequently firing the onUpdate
event, if the return value from gBrowser.getTabForBrowser() is undefined. Testing shows that that
is only the case when the New Tab page is opened, and that page is not, and is unlikely to be
readerable any time in the foreseeable future (confirmed on IRC), so ignoring this case in the
listener is acceptable.

MozReview-Commit-ID: D9LQRrPmCoU
2017-10-26 14:31:43 -04: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
Andrea Marchesini
2cb6bf409a Bug 1404105 - Sanitize.js must check if QuotaManager returns an error before continuing with cleaning data, r=janv 2017-10-16 11:50:01 +02:00
Sebastian Hengst
ded2f7a0dd Merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: 5oI3jfNbQVt
2017-10-13 11:12:47 +02: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
Nicholas Nethercote
084985fd45 Bug 1406296 (part 3) - Remove the profiler's "gpu" feature. r=mstange,jrmuizel.
This allows a bunch of additional stuff to be removed: ContextStateTracker,
ContextStateTrackerOGL, and GPUMarkerPayload.
2017-10-06 17:35:44 +11:00
Nicholas Nethercote
920671fff1 Bug 1406296 (part 2) - Remove the profiler's "layersdump" feature. r=mstange.
Because it just doesn't control any behaviour within the profiler, and it just
duplicates gfxPrefs::LayersDumpTexture().

With this gone, PROFILER_FEATURE_ACTIVE can also be removed.
2017-10-06 17:34:22 +11:00
Nicholas Nethercote
9a7b0ad887 Bug 1406296 (part 1) - Remove the profiler's "displaylistdump" feature. r=mstange.
It's not useful.
2017-10-06 17:33:30 +11: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