Commit Graph

1109 Commits

Author SHA1 Message Date
Tomislav Jovanovic
65d4e259bb Bug 1396686 - Provide info which onMessage listener's response handle went out of scope r=kmag
MozReview-Commit-ID: Bu71gP8Ey3
2017-09-05 03:00:07 +02:00
Rob Wu
f3a29edeab Bug 1356543 - Add clipboard.setImageData API r=mixedpuppy
This introduces an implementation of the clipboard.setImageData API.
I did not find any complete documentation about how copying and
pasting images is supposed to work in Firefox, so I added many lines
of documentation based on experimenting and reading the source code.

The implementation is very similar to the Add-on SDK's implementation,
save for one difference: The third parameter to setTransferData is 0
instead of -1. Its significance is elaborated in ext-clipboard.js.

The newly added tests serve the following purposes:
- Verification that clipboard.setImageData is working as expected.
  There is no way to test that pasting in an external application
  really works, so we just check whether Firefox recognizes the
  special image data by pasting in a contentEditable area.

- Test coverage for reading clipboard data via the "paste" event and
  using event.clipboardData to access the pasted data, because this is
  the only way to read non-text data in a WebExtension extension.

MozReview-Commit-ID: Ldrx7LCIta2
2017-09-04 21:43:06 +02:00
Jonathan Kingston
5f37d96ad7 Bug 1339610 - Web extension API for container icon and colors. r=baku,kmag
MozReview-Commit-ID: BosKoxM8FMZ
2017-08-27 00:47:02 +01:00
Sebastian Hengst
1b94cf976e merge mozilla-inbound to mozilla-central. r=merge a=merge
MozReview-Commit-ID: L5exd68pNSG
2017-09-05 11:40:49 +02:00
Shane Caraveo
c7c0033f55 Bug 1393402 fix intermittent by removing early testing timeout r=mixedpuppy
MozReview-Commit-ID: AAnS9cXlTz0
2017-09-03 18:09:43 -07:00
Kris Maglione
eec4b3520d Bug 1396612: Increase non-debug response part delay. r=trivial,test-only
MozReview-Commit-ID: ERXLi5RJwtc
2017-09-04 13:00:25 -07:00
Sebastian Hengst
46ae25158b merge mozilla-central to autoland. r=merge a=merge 2017-09-04 11:13:51 +02:00
Kris Maglione
5c235b0f9f Bug 1255894: Follow-up: Disable response body filtering tests on Android for mochitest server issues. 2017-09-03 19:14:23 -07:00
Kris Maglione
21305764e6 Bug 1255894: Part 8.1 - Disable response data filtering in release builds. r=me
MozReview-Commit-ID: AMgXJAb1NFs
2017-09-02 09:40:30 -07:00
Rob Wu
0a0d223693 Bug 1317900 - address intermittent failure in test_ext_unload_frame.html r=aswan
MozReview-Commit-ID: 8ySNL64KLmO
2017-08-23 16:31:14 +02:00
Kris Maglione
fdea574cc5 Bug 1356376: Skip test_ext_i18n.js on Windows debug for frequent intermittent failures. r=me,test-only
MozReview-Commit-ID: 9bIpo3XxXnk
2017-08-31 15:51:21 -07:00
Kris Maglione
227d63cbd0 Bug 1393621: Part 3 - Add test for framework JSMs loaded at startup. r=zombie
MozReview-Commit-ID: DvVO9bzwyXf
2017-08-31 15:12:28 -07:00
Kris Maglione
aaff03e68a Bug 1393621: Part 2 - Add test for API modules loaded at startup. r=zombie
MozReview-Commit-ID: 6gyDqsaImmX
2017-08-31 15:14:33 -07:00
Bob Silverberg
ccd9787851 Bug 1322308 - Allow WebExtensions to read the overriden homepage and newTab values, r=mixedpuppy
This introduces browser.browserSettings.homepageOverride and browser.browserSettings.newTabPageOverride
which will return the values of the overridden home page and the overridden new tab page.

These browserSettings are read-only.

MozReview-Commit-ID: A9vJP2QIaoA
2017-07-17 14:16:02 -04:00
Bob Silverberg
16cd8b1c16 Bug 1374552 - Fix i18n.getUILanguage so it does not replace dashes with underscores, r=mixedpuppy
When we implemented this API we converted dashes in the language code to underscores because that is what Chrome did.
Chrome no longer does this, so we need to remove the code that does the replacing.

MozReview-Commit-ID: DuOQ218zXby
2017-08-11 09:45:35 -04:00
Chris H-C
eabcba7afb bug 1376600 - Remove registered(Keyed)Histograms r=Dexter
With the removal of the old addonHistograms, all histograms are now registered.
So removing registered(Keyed)Histograms should be straightforward?

Unfortunately not, as this was how we filtered data based on dataset
(opt-in/opt-out), so a little more fiddling was needed to get C++ to only
serialize dataset-appropriate data (instead of post-facto filtering it in JS).

MozReview-Commit-ID: HDplhmzmzJl
2017-08-22 09:42:09 -04:00
Tomislav Jovanovic
8c96589445 Bug 1337938 - Add test for permissions localization strings r=aswan,kmag
MozReview-Commit-ID: 27nwTtVLRzE
2017-08-26 22:30:35 +02:00
Kris Maglione
e4301a9402 Bug 1255894: Part 8 - Add tests for response stream filtering. r=mixedpuppy
MozReview-Commit-ID: 9C2QnNsm1W1
2017-03-23 12:09:26 -07:00
Andreas Wagner
44d2dbaac2 Bug 1390917 - Accept data:image/png and data:image/jpeg as theme background; r=aswan,mikedeboer
MozReview-Commit-ID: 2roQoBrc7mv
2017-08-17 21:51:36 +02:00
Andrew Swan
33c093d127 Bug 1393156 Legacy extension test loose ends r=kmag
Change webextensions experiments test to use the shimmed certficiate DB
instead of the extensions.legacy.enabled pref.
In builds that don't honor the extensions.legacy.enabled pref, disable
test_legacy.js since that tests that flipping that preference works properly.
Finally, remove a now doubly-obsolete test of plugins embedded in xpis.

MozReview-Commit-ID: JiRdgCXyjKR
2017-08-26 08:55:20 -07:00
Shane Caraveo
cf5699a2db Bug 1388889 fix null principal handling for webrequest, r=kmag
MozReview-Commit-ID: B8qK4ZnaO9i
2017-08-25 14:12:42 -07:00
Shane Caraveo
3011601eaa Bug 1373646 add nsIProxyInfo to webrequest, r=kmag
MozReview-Commit-ID: pc98rgtkVc
2017-08-23 10:43:04 -07:00
Shane Caraveo
802866c20d Bug 1388289 fix challenger info for proxy auth requests, r=kmag
MozReview-Commit-ID: D0Tin2bK8R4
2017-08-17 19:56:22 -07:00
Tomislav Jovanovic
e99655c389 Bug 1389968 - Reject sendMessage() promise when response handle gets GCd r=kmag
MozReview-Commit-ID: C2g3VSWYKuz
2017-08-23 00:16:48 +02:00
Shane Caraveo
6bc2476c56 Bug 1389718 fix receiving a message in proxy sandbox when running OOP, r=kmag
MozReview-Commit-ID: xgHIph36SG
2017-08-24 12:49:56 -07:00
Shane Caraveo
ca671b2c77 Bug 1393402 set longer timeout for document load r=mixedpuppy
MozReview-Commit-ID: BSWPMaNvtwG
2017-08-24 14:35:31 -07:00
Tim Nguyen
96c6476863 Bug 1389465 - Allow changing urlbar and search input background and text color. r=dao,jaws
MozReview-Commit-ID: HrjxTbNwlEK
2017-08-24 15:55:02 +02:00
Shane Caraveo
477b1ce573 Bug 1390346 test jar caching in combination with redirects, r=rpl
MozReview-Commit-ID: 6sFdcruieh6
2017-08-18 10:59:44 -07:00
Joel Maher
39f63b7443 Bug 1258897 - disable test_ext_sendmessage_reply2.html. r=me a=testonly 2017-08-22 14:39:44 -04:00
Thomas Wisniewski
c52894bdf4 Bug 1392003 - Support estimatedEndTime in DownloadItem; r=aswan
MozReview-Commit-ID: 4Yzj52qI1Mz
2017-08-19 15:06:46 -04:00
Kris Maglione
c2e2ef78ca Bug 1356334: Part 3 - Enforce a stricter slow script timeout for extension content scripts. r=billm
MozReview-Commit-ID: LLvPQn1x1Xj
2017-08-18 11:04:55 -07:00
Carsten "Tomcat" Book
d62cef0a12 Merge mozilla-central to mozilla-inbound 2017-08-17 13:13:10 +02:00
Jonathan Kingston
b7e90de0eb Bug 1390738 - Await pref changes in contextual identities tests r=aswan
MozReview-Commit-ID: 66PgXLu8MSS
2017-08-16 15:41:34 +01:00
Kris Maglione
504b586373 Bug 1357589: Part 2 - Test that opening web URLs from extension iframes works correctly. r=mixedpuppy
MozReview-Commit-ID: HJq14t2DcAy
2017-06-30 14:14:01 -07:00
Shane Caraveo
7e43805366 Bug 1368527 test event timing using hsts,r=dragana,kmag
MozReview-Commit-ID: Dbb56Bkicdd
2017-08-15 13:13:06 -07:00
Jonathan Kingston
f68cd4077f Bug 1389265 - Change contextual identity web extension APIs to reject instead of returning null. r=aswan
MozReview-Commit-ID: 8htcRhzsj05
2017-08-16 03:09:48 +01:00
Mark Striemer
62796de317 Bug 1345158 - Implement privacy.websites.trackingProtectionMode r=aswan,bsilverberg
MozReview-Commit-ID: Lf88M4V4JEJ
2017-08-09 15:47:02 -05:00
Jonathan Kingston
0dc11f6e00 Bug 1354602 - Enabling containers for container addons on startup. r=aswan,mconley,zombie
MozReview-Commit-ID: BXLyQz8CGDl
2017-08-13 16:17:41 +01:00
Jonathan Kingston
3ae7cf8f92 Bug 1344519 - Add web extension events for containers onUpdated, onCreated and onRemoved r=aswan,baku
MozReview-Commit-ID: 9Zxjc1J2CAt
2017-05-14 00:39:32 +01:00
Brian Grinstead
2be258f821 Bug 1388552 - Export the HUDService object directly instead of individual methods and properties;r=nchevobbe
MozReview-Commit-ID: 9AYCuqqv1U7
2017-08-11 09:07:04 -07:00
Masatoshi Kimura
b5473a8193 Bug 1387805 - Remove [deprecated] nsIScriptSecurityManager.getCodebasePrincipal(). r=bz
MozReview-Commit-ID: CY47PBaQ5oy
2017-08-06 15:31:31 +09:00
Wes Kocher
d292002f8c Merge m-c to autoland, a=merge
MozReview-Commit-ID: 2YvHbITn9w3
2017-08-10 18:25:34 -07:00
Kris Maglione
5224365a50 Bug 1350646: Part 5 - Remove sdk/addon/* modules. r=Mossop
MozReview-Commit-ID: 7QvnQX7Qx2O
2017-08-09 14:46:01 -07:00
Phil Ringnalda
8eea07a6ce Backed out 22 changesets (bug 1350646) for talos damp failures
Backed out changeset c3108aebee35 (bug 1350646)
Backed out changeset ee8f7fa9d410 (bug 1350646)
Backed out changeset 79e77c06ff44 (bug 1350646)
Backed out changeset 5584fdcd2ee0 (bug 1350646)
Backed out changeset 7571b064a77e (bug 1350646)
Backed out changeset 7f65323c56f9 (bug 1350646)
Backed out changeset 10bbf7c53afe (bug 1350646)
Backed out changeset e40544ead983 (bug 1350646)
Backed out changeset 5eb77e6de0a3 (bug 1350646)
Backed out changeset 6d9244a8ac40 (bug 1350646)
Backed out changeset 13110c98b0fd (bug 1350646)
Backed out changeset 096ff315b48b (bug 1350646)
Backed out changeset 57500d9ea832 (bug 1350646)
Backed out changeset 5a45d9e25a00 (bug 1350646)
Backed out changeset e931e4ff5e11 (bug 1350646)
Backed out changeset d914c050c965 (bug 1350646)
Backed out changeset 35c4d4cd77c7 (bug 1350646)
Backed out changeset 7687db575011 (bug 1350646)
Backed out changeset c68367bb0eb3 (bug 1350646)
Backed out changeset 3ca040743aeb (bug 1350646)
Backed out changeset 8d4c2f001354 (bug 1350646)
Backed out changeset 67c251e2c9db (bug 1350646)

MozReview-Commit-ID: GLM80BkVx85
2017-08-09 20:03:17 -07:00
Kris Maglione
67c1297fff Bug 1350646: Part 5 - Remove sdk/addon/* modules. r=Mossop
MozReview-Commit-ID: 7QvnQX7Qx2O
2017-08-09 14:46:01 -07:00
Kris Maglione
0f4249e1c2 Bug 1388211: Follow-up: Fix merge bustage.
MozReview-Commit-ID: 7E3nPGvIBGG
2017-08-09 15:27:41 -07:00
Kris Maglione
15c01aabb8 Bug 1388211: Fold ExtensionAPI.jsm into ExtensionCommon.jsm. r=mixedpuppy
We always load one when we load the other, so there's no need for the overhead
of a separate JSM.

MozReview-Commit-ID: 8u4OhJJEN3b
2017-08-07 17:58:14 -07:00
Andrew Swan
82f8518c0f Bug 1388946 Part 1 Fix test for default-disabled legacy extensions r=kmag
MozReview-Commit-ID: 6NK5SSq36EZ
2017-08-09 20:00:35 -07:00
ahillier
6a72c7a981 Bug 1382819 - Allow non-lowercase names for API extension experiments r=aswan,bsilverberg
Modify test_ext_experiments.js to use a non-lowercase id and name to catch a future regression

MozReview-Commit-ID: BRy2XNOtBXO
2017-08-04 09:56:45 -04:00
Kris Maglione
9f08d0bb02 Bug 1356273: Part 2 - Add tests that document.open()/write() only loads content scripts once. r=aswan
The combination of "match_about_blank": true and "run_at": "document_start"
can potentially cause content scripts to run twice for the same document, once
for the intermediate about:blank document created by the document.open() call,
and again for the same document with its final URL after it's been fully
setup.

This test ensures that that behavior doesn't regress.

MozReview-Commit-ID: 9XSfW3rEL4f
2017-08-03 15:21:22 -07:00