Commit Graph

497455 Commits

Author SHA1 Message Date
Maja Frydrychowicz
d0fb9fce98 Bug 1305534 - Add debug artifact builds on try; r=chmanchester
MozReview-Commit-ID: Gg46RzHarO1

--HG--
extra : rebase_source : 07324cf202740539e6e27bce00ffee05b7b4a30f
2016-10-18 11:18:58 -04:00
Chris Manchester
2de89e603a Bug 1313716 - Don't provide a blank subsuite as a default in the manifestparser. r=ahal
This causes consumers managing defaults themselves to fail to find a default
subsuite for tests, because the manifestparser will have provided a blank
default value by the time they incorporate defaults into a test definition.
This patch removes the provided defaults and updates a number of places assuming
the 'subsuite' field is always present.

MozReview-Commit-ID: 1jPy52VmEPr

--HG--
extra : rebase_source : be7a2504af6853abb1bc532a058738f33d8dcbee
2016-10-28 11:07:21 -07:00
Wes Kocher
77f03518da Backed out 3 changesets (bug 1252871) for test_ext_all_apis.html bustage a=backout CLOSED TREE
Backed out changeset b3a08a040c8a (bug 1252871)
Backed out changeset c2a511511a72 (bug 1252871)
Backed out changeset 9c2c3780aa4c (bug 1252871)
2016-10-28 14:24:13 -07:00
Rob Wu
059e445a69 Bug 1299411 - Error messages for native messaging r=aswan
- Combine the errors for a non-existing app and lacking permissions to
  avoid information leakage.
- Do not treat normal application exit as an error.
- Create errors in the right context.
- Add tests that check the error messages.

MozReview-Commit-ID: HxBpeCSyyGN

--HG--
extra : rebase_source : f9406cec6bddd4ab740f5042dd7cc64d4a63e447
2016-09-24 13:45:02 +02:00
Rob Wu
0f0355e922 Bug 1299411 - Move native messaging to child process r=kmag
Move `runtime.connectNative` and `runtime.sendNativeMessage` to
`addon_child`. Note: This does not change the behavior for launching the
native app, it is still launched from the main process.

Now ExtensionUtils's Port is also used for native messaging ports. Now
the behavior of `runtime.connect` and `runtime.connectNative` are
identical from the extension's perspective.
In particular:
- `disconnect()` does not throw when called again (bug 1287229).
- `onDisconnect` is called with error messages (tests will be added in
  the next commit).

MozReview-Commit-ID: AyU9amiLeoL

--HG--
extra : rebase_source : be44523ca1b6555f5c356f12790c896e781d809f
2016-09-24 13:25:56 +02:00
Rob Wu
13c2b6a47f Bug 1299411 - s/on/once/ in NativeApp's sendMessage r=aswan
This communicates more clearly that we expect only one message/event.

MozReview-Commit-ID: 8jDYBVwqQtz

--HG--
extra : rebase_source : acae1570537b17027901253afc2344ffabd7a9ee
2016-09-24 13:22:31 +02:00
Rob Wu
edfaa70caa Bug 1299411 - Remove extension param from NativeApp r=aswan
The extension is always available as `context.extension`, so do not
unnecessarily pass the extension as a separate parameter.

MozReview-Commit-ID: 9OaestUAGVk

--HG--
extra : rebase_source : b1f408d3750152477195655c5a777e1ff4682a09
2016-09-24 13:18:48 +02:00
Rob Wu
4b1902cbce Bug 1299411 - Deduplicate context getter logic in ParentAPIManager r=aswan
MozReview-Commit-ID: E9MpHhal7WF

--HG--
extra : rebase_source : ad672d5dc86c2d331af8cb9cc07245acc620b8f9
2016-09-24 13:10:39 +02:00
Rob Wu
cce894192b Bug 1299411 - separate serialization from sending r=aswan
Serialization of the message should happen in the same process as the
extension context, whereas sending the message should be in the same
process as the owner of the native messaging host.
With webext-oop, the former is an addon process and the latter the
main process. Therefore it is necessary to separate the two roles.

MozReview-Commit-ID: 8BJZmn2QjLJ

--HG--
extra : rebase_source : d0665885c304b45c2f44e82f29c1a8260fe454c5
2016-09-24 13:03:20 +02:00
Rob Wu
0117bd555c Bug 1299411 - Propagate errors to port.onDisconnect via port.error r=kmag
In Chrome, runtime.lastError is set when the port is disconnected
due to an error.
Here in Firefox we choose to set a new property "error" on the port
if the port disconnected due to an error.
Since onDisconnect fires at most once, port.error is set only once.

MozReview-Commit-ID: EPaVtV4WkcQ

--HG--
extra : rebase_source : 16687b2acfccaecec0b39a4a3d9f86e91431ee55
2016-09-30 22:42:28 +02:00
Rob Wu
9181a56d02 Bug 1299411 - Unify fire and fireWithoutClone. r=kmag
Unify implementation of fire and fireWithoutClone. `fireWithoutClone`
was running the callbacks synchronously.  After this commit the callback
is run asynchronously. This is safe because the only user of this method
is `Port`'s `onDisconnect`.

MozReview-Commit-ID: 1kiYavsu3e7

--HG--
extra : rebase_source : 341c0dfa2531dd6137976eb8dfaed16edc5bbd51
2016-09-24 11:48:43 +02:00
Rob Wu
ca2c1cf947 Bug 1299411 - Pass port parameter to port.onMessage r=kmag
This should have been a part of bug 1298810, but that only set the
argument for native messaging ports, which does not use Port from
ExtensionUtils. The port parameter must also be included in runtime's
Port.onMessage to avoid regressions when the port implementations are
unified and native messaging starts using runtime's Port.

Note that starting from this commit, multiple onMessage listeners
receive the same (cloned) message instead of a new clone per listener.
This is a side effect of using `fire.withoutClone` instead of `fire`:
`fire` clones all parameters, but ports are not cloneable so we have
to use `fire.withoutClone` instead. This change with regards to message
cloning is fully compatible with Chrome's messaging API (which also
passes the same message object to all `port.onMessage` calls).

MozReview-Commit-ID: AUDuUKHkXCM

--HG--
extra : rebase_source : b91d701bba21f376935961a6eeb1a8489ac5591b
2016-09-24 11:34:26 +02:00
Rob Wu
5749ce4557 Bug 1299411 - Decouple Port implementation from API r=aswan
Decoupled the API from the implementation. From now on it is possible
to create Port instances without generating an API. This allows us to
internally use Ports to pass around messages with minimal overhead
(in the form of unnecessary clones of messages).
This will be used by native messaging.

This commit has no behavioral change, it is mostly moving around some
code and storing the internal message listener in a set.

MozReview-Commit-ID: 4h0LNJvTH9R

--HG--
extra : rebase_source : ef12309acc2060b9a2b2bc55be72b95d0f4f450e
2016-09-24 11:16:32 +02:00
Nicolas Chevobbe
a3890c2eb9 Bug 1311426 - Handle Grip with wrapped value in Reps. r=Honza;
Handle object created from a constructor function, like `new Boolean(true)`,
`new Number(42)` or `new String("foo")`.
It displays the wrapped value using Rep so the primitives are displayed like
expected.

MozReview-Commit-ID: JrJVeV0C0wO

--HG--
extra : rebase_source : 03d01ee1bfcbc0cd303a1a91a585d61ccdeae8c3
2016-10-24 07:32:32 +02:00
Nicolas Chevobbe
3ebc1745ac Bug 1310608 - Add a Rep for Promises. r=Honza;
MozReview-Commit-ID: BkeHonHQ28M

--HG--
extra : rebase_source : d9c43a7081901fef7d1e87fe80829d10324bd9d8
2016-10-24 19:24:10 +02:00
Nils Ohlmeier [:drno]
32fa85e614 Bug 1309641: only store a single pre-answer request per 5 tuple. r=bwc
MozReview-Commit-ID: KzrGGRRU28J

--HG--
extra : rebase_source : 97136e8ef20a61130154af695ec09598e91078c5
2016-10-26 21:43:27 -07:00
Matthew Wein
20342b5f6c Bug 1252871 - Add support for runtime.onInstalled r=aswan
MozReview-Commit-ID: 3wDtv0g0BpO

--HG--
extra : rebase_source : 589f77f750d7d874cb8f1634590b944b366fb3a4
2016-10-19 10:38:29 +01:00
Matthew Wein
09fbf696c1 Bug 1252871 - Move promiseFindAddonUpdates to AddonTestUtils r=aswan
MozReview-Commit-ID: 9lmpuQSQWw1

--HG--
extra : rebase_source : e1ffd24d34875c1a9d0820a1beccd9223a4119a5
2016-09-26 10:49:05 -07:00
Matthew Wein
4b795c5eb5 Bug 1252871 - Move and sort methods imported from AddonTestUtils r=aswan
MozReview-Commit-ID: EvffSUxQkWQ

--HG--
extra : rebase_source : 1dbceece2aef7bf0743baac185a793a8c4bc6bd7
2016-09-26 10:36:51 -07:00
Kaku Kuo
235ffd3551 Bug 1309516 part 8 - modify MDSM::RecomputeDuration();r=jwwang
MozReview-Commit-ID: 6pM7Kn3kZco

--HG--
extra : rebase_source : 20b5086d68d4976cb62728e02ca9af8cb8f3862e
2016-10-24 15:04:52 +08:00
Kaku Kuo
58eac194d2 Bug 1309516 part 7 - modify the seek operation;r=jwwang
MozReview-Commit-ID: AZ9yK050ElM

--HG--
extra : rebase_source : 17f5e4e1ccabbbd67bcf4863cd246cb1f74138a1
extra : source : 838786e0d0e26958e75a129a872e378bc21a7c4a
2016-10-16 22:15:29 +08:00
Kaku Kuo
eb5ec30291 Bug 1309516 part 6 - remove unused MediaDecoderReaderWrapper::mStartTimeRendezvous;r=jwwang
MozReview-Commit-ID: 6ukwUWpIJFF

--HG--
extra : rebase_source : 22bd4b1c87f67d1ad8f1b117d7fe4c3a64e56318
extra : intermediate-source : ee2d85244182d8a72aeed98da23e7680eacb73d8
extra : source : 123d5075947d2e5912f860b243cf55c838b4f393
2016-10-14 19:22:41 +08:00
Kaku Kuo
eaed4802be Bug 1309516 part 5 - remove unused MediaDecoderReaderWrapper::AwaitStartTime();r=jwwang
MozReview-Commit-ID: CcybQMPz47i

--HG--
extra : rebase_source : b763ae25eaa6f6e907d3dc1521e5d3b263d6f1cb
extra : intermediate-source : c2ba16341576fa8bfe510f4d37b89ccc55456ff3
extra : source : 4de4162cce1bb37a5ab14c0506428be9b7e698ff
2016-10-14 17:45:59 +08:00
Kaku Kuo
c9d73ff13f Bug 1309516 part 4 - always notify LoadedMetadataEvent before decoding first frame;r=jwwang
MozReview-Commit-ID: 4VcmELgvAjC

--HG--
extra : rebase_source : fe28ba2732866209f6fb84e3f10dfc57d00cba45
extra : source : 6d7f4bd76a754c3852a612b126b4643818eadddd
2016-10-16 21:49:07 +08:00
Kaku Kuo
64f7dc8eff Bug 1309516 part 3 - make MediaDecoderReaderWrapper keeps the start time returned from reader;r=jwwang
MozReview-Commit-ID: F57avqCENTj

--HG--
extra : rebase_source : 58971b3d189aba9e281e6e6118854d947a982ec1
extra : intermediate-source : 50c6ae37fa51c52d533bb5cdcd1267a869d49410
extra : source : cb9924bcc2c1d2a820b7b942c89feb861be85569
2016-10-14 19:10:24 +08:00
Kaku Kuo
91131af039 Bug 1309516 part 2 - replace MediaFormatReader::DemuxStartTime() with MediaInfo::mStartTime; r=jya
MozReview-Commit-ID: JzO0Yv33ljL

--HG--
extra : rebase_source : 105f4dee594a259311dda7d62a46940981be45b4
extra : intermediate-source : cca0e5eaf29e7cfdc32f8b66e217e0d8fb0fd0ea
extra : source : 6af01ba877814a43b68bc004b0e28160216e7367
2016-10-14 17:09:04 +08:00
Kaku Kuo
419e05d29a Bug 1309516 part 1 - retrieve start time before resolving the metadata promise; r=jya
MozReview-Commit-ID: FhnoFi1BSHM

--HG--
extra : rebase_source : e43b7dc820f630e6c0420e04578f155793f6ef7a
2016-10-27 15:21:05 +08:00
Steve Chung
c13184d752 Bug 1308425 - Move statistics view into standalone module. r=Honza
MozReview-Commit-ID: 2iqKSHWpEWw

--HG--
rename : devtools/client/netmonitor/netmonitor-view.js => devtools/client/netmonitor/performance-statistics-view.js
extra : rebase_source : 48a3d653c573f7fd095b0383f1fd9c42e178e2ae
2016-10-19 18:25:00 +08:00
Munro Mengjue Chiang
12cf0bc33c Bug 1307533 - support getUserMedia facingmode on Surface Book; r=jib
MozReview-Commit-ID: IOfWT2EyEPs

--HG--
extra : rebase_source : 12e0f930a6b1770f20a014591f2d4377b5ed95bb
2016-10-27 17:55:09 +08:00
Maja Frydrychowicz
6da8812934 Bug 1303234 - Implement extracting action chain from a request; r=ato,jgraham
MozReview-Commit-ID: JxNoGZog1om

--HG--
rename : testing/marionette/action.js => testing/marionette/legacyaction.js
extra : rebase_source : 91e9b1915e18362765804e3767dfb834394a35af
2016-10-26 13:04:48 -04:00
Dustin J. Mitchell
d65bd841f8 Bug 1313678: rename task description chainOfTrust to chain-of-trust; r=aki
Note that this does not affect task.extra.chainOfTrust, and thus has no impact
on the generated task JSON.

MozReview-Commit-ID: ERSVZlQUMpK

--HG--
extra : rebase_source : 5cee34de62138535eceb4cec7bcb860d45442938
2016-10-28 14:36:09 +00:00
Kit Cambridge
2592d2afc8 Bug 1313063 - Only stop observing dom.push.userAgentID if we've finished the handshake. r=dragana
MozReview-Commit-ID: 8yjJfbXHLD5

--HG--
extra : rebase_source : a1f5e58d7489e70291598fb130e27a007d4dfd78
2016-10-27 08:55:50 -07:00
Gijs Kruitbosch
8d36987e6f Bug 1310518 - fix crashes when downloading files without referrer/source URL, r=mstange
MozReview-Commit-ID: HnSb0yxlAfs

--HG--
extra : rebase_source : 56548450c404702c66e213e327e2083495577382
2016-10-28 17:38:29 +01:00
Cody Tran
345cac0665 Bug 1301212 - Enabled code coverage for xpcshell. r=gmierz2+560562,jmaher
MozReview-Commit-ID: IdijsF9HRW9

--HG--
extra : rebase_source : 102038d1ecf584667d5eae9e5b762e3ab5042c47
2016-10-28 12:54:59 -04:00
Drew Willcoxon
05cb668dad Bug 1311998 - [One-off searches] Right click on a result from Awesomebar closes the dropdown. r=mak
MozReview-Commit-ID: Ieqceceepix

--HG--
extra : rebase_source : de8480a08777b982625648b934b30aec942f7416
2016-10-27 19:44:22 -07:00
Carsten "Tomcat" Book
c1f7613ca2 Backed out changeset 0fd006bf6f9d (bug 1308058) for timeouts in browser_ext_sessions.js
--HG--
extra : rebase_source : d06e03178e4940618d0c42de2e7da26e485f23c0
2016-10-28 15:45:29 +02:00
Rob Thijssen
a2202b129a Bug 1313539 - use hg cache on ephemeral drive; r=pmoore
MozReview-Commit-ID: 3ibLy0Bx6t5

--HG--
extra : rebase_source : 441a4d05d67fa520137b6ad50c86a8cd09ef543e
2016-10-28 10:13:58 +01:00
Andrew Halberstadt
a70058b1a1 Bug 1313265 - Ensure unstructured logs containing TEST-UNEXPECTED-FAIL fail the job desktop_unittest.py, r=jgraham
I haven't seen a case of this happening in the wild, but I believe it is possible for a test to dump "TEST-UNEXPECTED-FAIL"
directly to the log and mozharness using the StructuredOutputParser would not pick it up. This patch is just me being extra
careful to flag potential errors like that. I'm not sure they even exist.

This patch also purposefully uses substr to avoid requiring said string to show up at the beginning, which should avoid
certain prefix issues we've run into in the past.

MozReview-Commit-ID: 99n9YizlEDH

--HG--
extra : rebase_source : 2063f2fc4ca109a4ac24ccdbc0672e4e1b4c0fb6
2016-10-27 15:11:26 -04:00
Andrew Halberstadt
292670662f Bug 1313265 - Log messages containing 'TEST-UNEXPECTED-FAIL' at the error level in mochitest, r=jgraham
We were previously logging these at the info level as a really hacky way to make sure that the mozharness
output parser was able to detect them. Since bug 1261194 switched mochitests to use the StructuredOutputParser,
we now need to log them at the error level or they won't get picked up anymore.

MozReview-Commit-ID: 99n9YizlEDH

--HG--
extra : rebase_source : a3495ac3c3d770f1eabadca42fd4c2f789e83617
2016-10-27 15:03:38 -04:00
Carsten "Tomcat" Book
d80a919229 Backed out changeset 23e68db8afd7 (bug 1301212) for breaking XPC tests on a CLOSED TREE 2016-10-28 15:18:20 +02:00
Sebastian Hengst
73a03b9c60 Backed out changeset 9f7616d57abc (bug 1118337) for failing resource-selection-invoke-insert-source.html. r=backout 2016-10-28 14:11:22 +02:00
Sebastian Hengst
725832b7f1 Backed out changeset aada0714c236 (bug 1196560) for failing resource-selection-invoke-set-src.html. r=backout 2016-10-28 14:14:14 +02:00
Cody Tran
729f8458f3 Bug 1301212 - Enabled code coverage for xpcshell. r=gmierz2+560562,jmaher
MozReview-Commit-ID: Gpzklnc1JCQ

--HG--
extra : rebase_source : 63b12e4b156c405a67ffee906c4d255a78888de1
2016-10-24 22:26:19 -04:00
Cody Tran
433f7aa01c Bug 1301214 - Changed action of code coverage options to store_true and enabled code coverage for mochitest-devtools-chrome. r=gmierz2+560562,jmaher
MozReview-Commit-ID: lJMQGfhfDA

--HG--
extra : rebase_source : cc673324efd1a742df8041be411051609ca4276c
2016-10-24 21:36:17 -04:00
ctai
90f77c63de Bug 1196560 - Enable resource-selection-invoke-set-src.html. r=jwwang
This test case can be pass.

MozReview-Commit-ID: EFpFT5o7RbX

--HG--
extra : rebase_source : a5a0b16e592703ae0198bba9e930d4542bdbb639
2016-10-26 15:22:22 +08:00
ctai
bf99201974 Bug 1118337 - Enable resource-selection-invoke-insert-source.html. r=jwwang
This test case can be pass.

MozReview-Commit-ID: F2liaFmKdj8

--HG--
extra : rebase_source : 3eabb117753b828e2e0b774ff07beea0f9a07e07
2016-10-26 14:59:10 +08:00
Xidorn Quan
76b59d891f Bug 1313262 - Devirtualize nsINode::{Get,Set,Delete,Unset}Property. r=peterv
MozReview-Commit-ID: B16VcIZKBs1

--HG--
extra : rebase_source : f4076901e376194d7db9fe03f27f1930b0931788
2016-10-27 12:40:34 +11:00
Jean-Yves Avenard
788c9353cc Bug 1292374: P3. Enable VP9 hardware acceleration on windows. r=gerald
MozReview-Commit-ID: BETY7nFDu5o

--HG--
extra : rebase_source : 2264dee30253c98885e761054799ae893cb927c3
2016-10-28 17:03:56 +11:00
Jean-Yves Avenard
fea3627b11 Bug 1292374: P2. Change preference name as it's no longer restricted to intel. r=gerald
MozReview-Commit-ID: EKZjkj9SFDw

--HG--
extra : rebase_source : e022610307232edc17b746f01879b2cddc16b6ef
2016-10-28 17:03:25 +11:00
Joe Olivas
5753f883ef Bug 1292374: P1. Add support for full hardware acceleration in VP9. r=jya
MozReview-Commit-ID: ENawyqrzVgH

--HG--
extra : rebase_source : 53e6879b9f2841de5880778503bf20baada15583
2016-10-27 09:59:00 +11:00