Commit Graph

440799 Commits

Author SHA1 Message Date
Boris Zbarsky
71703b7a23 Bug 1203404. offsetX/Y on mouse events should remain target-relative, instead of becoming page-relative, after event dispatch is done. r=roc 2015-09-18 13:36:13 -04:00
Armen Zambrano Gasparnian
82443bd957 Bug 1204077 - For TryToolsMixin grab the commit message from pushlog if not available in Buildbot Changes. r=chmanchester
TryToolsMixin tries to grab the commit message associated to a test job
by inspecting the associated Changes object of a buildbot job.

For Buildbot jobs triggered through the Buildbot Bridge the Changes object
is not set hence we fail.

In this patch we teach it to use the pushlog to determine the commit message
for such cases.

--HG--
extra : commitid : KYg1stSoAqJ
extra : rebase_source : fc7620232422c69c3cbd6e28ba674c469d7032c2
2015-09-18 13:06:09 -04:00
Armen Zambrano Gasparnian
4c0867917e Bug 1203085 - Support fetching installer and test url from TaskCluster. r=jlund
If a Buildbot test job is scheduled through TaskCluster (The Buildbot Bridge supports this),
then the generated Buildbot Change associated to a test job does not have the installer and
test url necessary to Mozharness to run the test job.

Since we can't modify how a test job is called on Buildbot (we can't switch from
--read-builbot-config to --installer-url and --test-url), we have to detect that there is
a 'taskId' defined for the test job (this indicates that the job was scheduled through the BBB)
and based on suc 'taskID' we can determine the parent task and the artifacts it uploaded.

Changes to ScriptMixin:
* Refactor _retry_download_file() to _retry_download()
* If no file is specified when calling_retry_download() we call _urlopen() instead of _download_file()
* Add load_json_url() method to fetch the contents of a json file without writing to disk

Changes to TestingMixin:
* If the job is triggered through Buildbot we look for the Changes object, otherwise, we look
for artifacts of the parent task
* Added functions find_artifacts_from_buildbot_changes (original behaviour)
and find_artifacts_from_taskcluster (functionality via TaskClusterArtifactsFinderMixin)
* Call self.exception() instead of raising exceptions + minor fixes

New TaskClusterArtifactsFinderMixin:
* It allows any inheriting class to find the artifacts of the build job which triggers this test job

--HG--
extra : commitid : 2KCqLM0WFcK
extra : rebase_source : 77358aab22a74e0f3d77f8807b1488c3c3f9161f
2015-09-18 13:02:33 -04:00
Ting-Yu Lin
c5c911b91b Bug 1204872 - Add gtest for AccessibleCaretManager. r=roc
Add basic gtest to ensure AccessibleCaret and AccessibleCaretManager are
both testable. More tests to come.

Allow -Winconsistent-missing-override warning in gtest since MOCK_METHOD
does not have 'override' keyword. See bug 1169974.

--HG--
extra : commitid : 38ZTtolb0X9
extra : rebase_source : 52b93d89dddc3913dc3acab1f60971f80c009346
2015-09-19 01:05:19 +08:00
Ting-Yu Lin
549ac3b8f4 Bug 1204872 - Prettify enum class printing. r=roc
Provide operator<< functions so that gtest can use them to print enum
classes.

--HG--
extra : commitid : JYu6ffen2Zr
extra : rebase_source : 6628de44b343a0c625fd4526d36dba34ad0cb5cc
2015-09-19 01:05:19 +08:00
Ting-Yu Lin
64e9080458 Bug 1204872 - Make AccessibleCaretManager testable. r=roc
We need to extract statements that touch PresShell, access frame trees,
or call other utility functions into functions so that we could mock or
stub them in gtest.

Inline GetFocusedContent since it's only used once.

--HG--
extra : commitid : 15oROwm04pa
extra : rebase_source : f40692f3f77f8848424f6021046b6e4eeb7752dc
2015-09-19 01:05:19 +08:00
Ting-Yu Lin
7d5437ce32 Bug 1204872 - Make AccessibleCaret testable. r=roc
Remove the assert of the existence of PresShell in the constructor since
there's no PresShell in gtest. Also make AccessibleCaret inheritable.

--HG--
extra : commitid : JudUoXt9auc
extra : rebase_source : 882f017063339c2fb2313459d9a9f2f7c1549071
2015-09-19 01:05:18 +08:00
Ting-Yu Lin
1e2a01e453 Bug 1204872 - Add documentation and rename mCaretMode. r=roc
Rename mCaretMode to mLastUpdateCaretsMode to make it clear that this
variable track the caret mode since last update. This also avoid the
confusion that GetCaretMode() returns mCaretMode.

--HG--
extra : commitid : BoFaTHocik
extra : rebase_source : 944882f796904671d516f4e15edb39a5ae88bada
2015-09-19 01:05:18 +08:00
Christoph Kerschbaumer
a54527efd5 Bug 1143922 - Add AsyncOpen2 to channels within JS tests (r=sicking) 2015-09-18 09:27:52 -07:00
Christoph Kerschbaumer
bee2068e40 Bug 1143922 - Add AsyncOpen2 to channels in toolkit/ and b2g/ (r=sicking) 2015-09-18 09:27:32 -07:00
Christoph Kerschbaumer
b01fc3ad90 Bug 1143922 - Make nsContentSecurityManager scriptable (r=sicking) 2015-09-18 09:27:15 -07:00
Eric Faust
53266494e0 Bug 1203733 - Fix emitting super.prop1.prop2. (r=jorendorff) 2015-09-18 09:23:21 -07:00
David Burns
12164be1f8 Bug 1141519: if we try call marionette calls in the teardown and they don't work we should just carry on; r=jgriffin
--HG--
extra : commitid : 6jEuBpccJtr
extra : rebase_source : 1912ef892d4192d20ac2281b973adebfcbef049a
extra : histedit_source : 3198c32a0e71fc2e5aca5296dccd5b91ddcdf2ac
2015-09-16 20:58:28 +01:00
David Burns
8f50c7e4f8 Bug 1141519: error if we are going to try send a message to a frame that we know doesnt exist; r=jgriffin
--HG--
extra : commitid : 6NtHFBNNkwf
extra : rebase_source : 03b60b416ed4ef774ccb6c323664cf3e79790809
extra : histedit_source : dccc1cc2506cdc810df9c490d92218345a1c873d
2015-09-16 20:54:46 +01:00
David Burns
d547839f25 Bug 1141519: added test that puts marionette into a position that can cause hangs when in content scope; r=jgriffin
--HG--
extra : commitid : 6PEzFtjWUX5
extra : rebase_source : 97208b7c534d42de524f909522033bac21d33cd2
extra : histedit_source : 69324b771a638af18fba2384f47956cd23bd07c1
2015-09-16 20:42:37 +01:00
David Burns
bdfa7d4a04 Bug 1141519: Don't switch to content scope for logging the test end; r=jgriffin
--HG--
extra : commitid : 8LATsmo22RL
extra : rebase_source : b962b45093372f7d08ac8d033ce4c47b40522a37
extra : histedit_source : e21555f77fe507d225ed2514ed022a78eeec3895
2015-09-16 18:43:23 +01:00
Nathan Froyd
4bf8c9ae61 Bug 1205825 - part 2 - call Get*CachedData*Internal variants from MediaCacheStream::GetCachedRanges; r=roc
Each of GetNextCachedData and GetCachedDataEndInternal grab the monitor
on entrance, but GetCachedRanges has already grabbed the monitor for us.
We can call the *Internal variants instead, which assert that the
monitor is held.
2015-09-18 00:15:56 -04:00
Nathan Froyd
eb62b6c5a5 Bug 1205825 - part 1 - don't reacquire the media cache's monitor in MediaCacheStream::FlushPartialBlockInternal; r=roc
FlushPartialBlockInternal is only ever called by methods that are
already holding the MediaCache's monitor.  So we don't need to reacquire
it every time we call this method.

fixup p1
2015-09-17 23:57:51 -04:00
Nikhil Marathe
a7bc045c29 Bug 914481 - Patch 4 - Track why we fail to deliver notifications to Service Workers. r=kitcambridge
--HG--
extra : commitid : KencxGyLnVk
extra : rebase_source : f434d61fd6fc74434d55d0617b13f61401bfcb63
2015-09-16 10:28:17 -07:00
Nikhil Marathe
eac943182b Bug 914481 - Patch 3 - Subscription and quota expiration times. r=kitcambridge, p=ally
--HG--
extra : commitid : JADysGJDrMp
extra : rebase_source : dd937d960dd05028806debd00ecc875adfdd08b5
2015-08-06 12:05:47 -07:00
Nikhil Marathe
f293dc5340 Bug 914481 - Patch 2 - Track subscribe and unsubscribe success/failure. r=kitcambridge
--HG--
extra : commitid : FkukoQceUNq
extra : rebase_source : f72c91c37c44ba61abb21c69399b45d571bbdcb4
2015-08-05 17:03:49 -07:00
Nikhil Marathe
dee87894d8 Bug 914481 - Patch 1 - Push usage and permissions telemetry. r=kitcambridge
--HG--
extra : commitid : FcrPQqWE4k8
extra : rebase_source : 3c39e7c98557163c93cb8bf5e4fe4f0a9ba5376b
2015-08-05 15:12:11 -07:00
Nathan Froyd
8108bffcc3 Bug 1121216 - disable BackgroundHangMonitor for TSan builds; r=jchen 2015-08-04 00:27:59 -04:00
Hannes Verschore
793a8a2c48 Bug 1204675: IonMonkey - Don't specialize using baseline stubs for strict equality, r=jandem 2015-09-18 17:27:07 +02:00
Hannes Verschore
174e4b5a99 Bug 1204675: IonMonkey - Replace input with constant in a tableswitch, r=jandem 2015-09-18 17:27:05 +02:00
Tim Taubert
95303eccef Bug 1206030 - Remove nsIDOMHTMLCanvasElement::MozFetchAsStream() f=Ms2ger r=jst 2015-09-18 12:21:27 +02:00
Carsten "Tomcat" Book
1ae732f5ba Backed out 5 changesets (bug 1205540) for Assertion Failurs in m2-e10s tests on a CLOSED TREE
Backed out changeset e89d8182d588 (bug 1205540)
Backed out changeset abace4cdec06 (bug 1205540)
Backed out changeset b3f6e1db7233 (bug 1205540)
Backed out changeset 0d122cb34921 (bug 1205540)
Backed out changeset 4de5f87180fb (bug 1205540)
2015-09-18 16:36:33 +02:00
Ben Kelly
3528a43c26 Bug 1206084 Always Cancel() channel in nsCORSListenerProxy for failed redirects. r=ehsan 2015-09-18 07:15:39 -07:00
Andrew Halberstadt
422647ac94 Bug 1206073 - [xpcshell] Fix default value for testingModulesDir when running from mach, r=jgraham
--HG--
extra : commitid : KjVjUrw8IZ4
extra : rebase_source : 4ff826498fb3c303e873b8da760671577bd174b7
2015-09-18 10:00:40 -04:00
Jim Chen
a12a517734 Bug 1197974 - Force Gecko to exit when explicitly quitting; r=mfinkle
Currently we "quit" by closing the last window, but this bug makes us
not quit Gecko automatically when the last window closes. Therefore we
should force Gecko to quit. This patch also makes our quit code
consistent with the addon restart code at [1], i.e. using
nsIAppShell::Quit to quit and sending the "quit-application-requested"
notification. The previous notification,
"browser-lastwindow-close-requested", appears to only be used on
desktop.

[1] mxr.mozilla.org/mozilla-central/source/mobile/android/chrome/content/browser.js?rev=f61c3cc0eb8b#6287
2015-09-18 09:17:11 -04:00
Jim Chen
797447c09d Bug 1197974 - Don't exit Gecko on Android even if there's no window; r=snorp
Gecko on Android follows the Android app model where it never stops
until it is killed by the system or told explicitly to quit. Therefore,
we should exit Gecko when there is no window or the last window is closed.
2015-09-18 09:17:10 -04:00
Jim Chen
5d85f6dea6 Bug 1196381 - Eliminate breakpad dependency in ThreadStackHelper; r=nfroyd r=snorp
The breakpad dependency in ThreadStackHelper is preventing us from
upgrading our in-tree copy to a newer version (bug 1069556). This patch
gets rid of that dependency. This makes native stack frames not work
for BHR, but because of the ftp.m.o decommissioning, native
symbolication was already broken and naive stack frames already don't
work, so we don't really lose anything from this patch.

Eventually we want to make ThreadStackHelper use other means of
unwinding, such as LUL for Linux

I added | #if 0 | around the code to fill the thread context, but left
the code in because I think we'll evenually want to reuse some of that
code.
2015-09-18 09:17:10 -04:00
Jim Chen
b4389f1282 Bug 1199444 - Add test for BundleEventListener; r=mcomella
Bug 991167 added BundleEventListener that allow dispatching an event
directly to the UI thread or to the background thread. This patch adds
tests to testEventDispatcher, to test that the events are dispatched on
the correct threads and that the Bundle messages are correct. Because
these events are asynchronous, the test waits for each event to be
processed before continuing.
2015-09-18 09:17:10 -04:00
Alexander Surkov
cd9b877daf Bug 1205476 - crash in mozilla::a11y::DocAccessible::ProcessInvalidationList(), r=smaug 2015-09-18 08:52:46 -04:00
Gian-Carlo Pascutto
d49de0d545 Bug 1202424 - Free shared memory when IPC system shuts down, not after. r=mrbkap 2015-09-11 09:33:36 +02:00
James Graham
4d0fe31fbc Bug 1105760 - Increase timeout for unstable Media Source test, rs=Ms2ger 2015-09-18 13:25:06 +01:00
Neil Deakin
cf6b496303 Bug 1168042, content process access key tests, r=masayuki 2015-09-18 08:19:20 -04:00
Neil Deakin
2b49676bd0 Bug 1168042, support accesskey redirecting to content process, r=masayuki 2015-09-18 08:19:13 -04:00
Neil Deakin
77303a0ee5 Bug 1168042, return a bool from PerformAccessKey indicating if focus was changed, r=masayuki 2015-09-18 08:18:42 -04:00
Neil Deakin
0acaaddd3e Bug 1168042, restructure HandleAccessKey so that accesskey candidates are only determined once, and clean up return value to use a bool, r=masayuki 2015-09-18 08:18:07 -04:00
Karl Tomlinson
abcc44d6d5 bug 1205540 account for active inputs and skip processing when streams are inactive r=padenot
--HG--
extra : rebase_source : ad55142a54728e7ed2dab8edefbe87547e09d85a
2015-09-18 00:03:00 +12:00
Karl Tomlinson
985811fe37 bug 1205540 mark BufferSource finished only when producing silent output block r=padenot
This allows simpler processing of the finished state to mark the node as an
inactive input of any downstream nodes.  Otherwise the input could not be
considered inactive until after downstream nodes have finished processing,
but ProcessInput() may not be called again on finished streams.

AudioBufferSourceNode now behaves the same as OscillatorNode and similarly
to nodes that release a playing ref.

--HG--
extra : rebase_source : 0b3c7123f916fce36f852785c1e0b2a7c7013600
2015-09-18 00:00:17 +12:00
Karl Tomlinson
d7b9ada3a0 bug 1205540 make source stream available during RemoveInput r=padenot
--HG--
extra : rebase_source : f9b4e488e52eb3717808c0efbaf5c0815627c8f0
2015-09-09 14:19:05 +12:00
Karl Tomlinson
ee25bfb081 bug 1205540 provide querying whether engines need to continue processing even without input r=padenot
--HG--
extra : rebase_source : 76545deae4cdc929f1b3ce4d10065f99f21a2ec3
2015-09-09 08:54:03 +12:00
Karl Tomlinson
e182c00028 bug 1205540 don't send more null chunks than necessary to AnalyserNode r=padenot
--HG--
extra : rebase_source : f758d172fbbdba3288c71f690411175a41a822cc
2015-09-09 08:52:39 +12:00
Carsten "Tomcat" Book
29f415af35 Merge mozilla-central to mozilla-inbound 2015-09-18 13:25:30 +02:00
Carsten "Tomcat" Book
26bf9e678b merge mozilla-inbound to mozilla-central a=merge 2015-09-18 13:19:00 +02:00
Carsten "Tomcat" Book
6bd232e288 merge fx-team to mozilla-central a=merge 2015-09-18 12:03:30 +02:00
B2G Bumper Bot
429fea510f Bumping manifests a=b2g-bump 2015-09-17 23:13:43 -07:00
B2G Bumper Bot
af91af7170 Bumping gaia.json for 1 gaia revision(s) a=gaia-bump
========

https://hg.mozilla.org/integration/gaia-central/rev/0beec8dba282
Author: Nigel Babu <nigel@nigelb.me>
Desc: Disable form_test.js for unexplained perma-fail
2015-09-17 23:10:27 -07:00