Commit Graph

263273 Commits

Author SHA1 Message Date
Boris Zbarsky
0b65334b28 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
aef284a02b 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.
2015-09-18 13:06:09 -04:00
Armen Zambrano Gasparnian
95050eb25b 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
2015-09-18 13:02:33 -04:00
Ting-Yu Lin
0340438b93 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.
2015-09-19 01:05:19 +08:00
Ting-Yu Lin
78be26106f Bug 1204872 - Prettify enum class printing. r=roc
Provide operator<< functions so that gtest can use them to print enum
classes.
2015-09-19 01:05:19 +08:00
Ting-Yu Lin
d57a434dd5 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.
2015-09-19 01:05:19 +08:00
Ting-Yu Lin
2f8290c259 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.
2015-09-19 01:05:18 +08:00
Ting-Yu Lin
dabe955e3e 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.
2015-09-19 01:05:18 +08:00
Christoph Kerschbaumer
a0d4858bb8 Bug 1143922 - Add AsyncOpen2 to channels within JS tests (r=sicking) 2015-09-18 09:27:52 -07:00
Christoph Kerschbaumer
2afdc09ece Bug 1143922 - Add AsyncOpen2 to channels in toolkit/ and b2g/ (r=sicking) 2015-09-18 09:27:32 -07:00
Christoph Kerschbaumer
c8b6bf32e1 Bug 1143922 - Make nsContentSecurityManager scriptable (r=sicking) 2015-09-18 09:27:15 -07:00
Eric Faust
e5087d26a8 Bug 1203733 - Fix emitting super.prop1.prop2. (r=jorendorff) 2015-09-18 09:23:21 -07:00
David Burns
d9f4dfbbb5 Bug 1141519: if we try call marionette calls in the teardown and they don't work we should just carry on; r=jgriffin 2015-09-16 20:58:28 +01:00
David Burns
c3073e172c Bug 1141519: error if we are going to try send a message to a frame that we know doesnt exist; r=jgriffin 2015-09-16 20:54:46 +01:00
David Burns
050fcc376b Bug 1141519: added test that puts marionette into a position that can cause hangs when in content scope; r=jgriffin 2015-09-16 20:42:37 +01:00
David Burns
2116368ff7 Bug 1141519: Don't switch to content scope for logging the test end; r=jgriffin 2015-09-16 18:43:23 +01:00
Nathan Froyd
7522baa412 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
57eb120670 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
fd0a421f65 Bug 914481 - Patch 4 - Track why we fail to deliver notifications to Service Workers. r=kitcambridge 2015-09-16 10:28:17 -07:00
Nikhil Marathe
efb56494b0 Bug 914481 - Patch 3 - Subscription and quota expiration times. r=kitcambridge, p=ally 2015-08-06 12:05:47 -07:00
Nikhil Marathe
40106aed58 Bug 914481 - Patch 2 - Track subscribe and unsubscribe success/failure. r=kitcambridge 2015-08-05 17:03:49 -07:00
Nikhil Marathe
6c700bcaab Bug 914481 - Patch 1 - Push usage and permissions telemetry. r=kitcambridge 2015-08-05 15:12:11 -07:00
Nathan Froyd
9d7309858b Bug 1121216 - disable BackgroundHangMonitor for TSan builds; r=jchen 2015-08-04 00:27:59 -04:00
Hannes Verschore
e6993405bb Bug 1204675: IonMonkey - Don't specialize using baseline stubs for strict equality, r=jandem 2015-09-18 17:27:07 +02:00
Hannes Verschore
9edc39b95c Bug 1204675: IonMonkey - Replace input with constant in a tableswitch, r=jandem 2015-09-18 17:27:05 +02:00
Tim Taubert
0f7e035787 Bug 1206030 - Remove nsIDOMHTMLCanvasElement::MozFetchAsStream() f=Ms2ger r=jst 2015-09-18 12:21:27 +02:00
Carsten "Tomcat" Book
2f26ad4c09 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
46c751a222 Bug 1206084 Always Cancel() channel in nsCORSListenerProxy for failed redirects. r=ehsan 2015-09-18 07:15:39 -07:00
Andrew Halberstadt
3f723eb82a Bug 1206073 - [xpcshell] Fix default value for testingModulesDir when running from mach, r=jgraham 2015-09-18 10:00:40 -04:00
Jim Chen
b8e1e51d50 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
dd18af289b 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
8d0f2bae4c 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
377c853ed6 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
b933f5ff28 Bug 1205476 - crash in mozilla::a11y::DocAccessible::ProcessInvalidationList(), r=smaug 2015-09-18 08:52:46 -04:00
Gian-Carlo Pascutto
6c2eb97917 Bug 1202424 - Free shared memory when IPC system shuts down, not after. r=mrbkap 2015-09-11 09:33:36 +02:00
James Graham
edcaa6f128 Bug 1105760 - Increase timeout for unstable Media Source test, rs=Ms2ger 2015-09-18 13:25:06 +01:00
Neil Deakin
31913f1e97 Bug 1168042, content process access key tests, r=masayuki 2015-09-18 08:19:20 -04:00
Neil Deakin
4860301a0a Bug 1168042, support accesskey redirecting to content process, r=masayuki 2015-09-18 08:19:13 -04:00
Neil Deakin
1df239e8f6 Bug 1168042, return a bool from PerformAccessKey indicating if focus was changed, r=masayuki 2015-09-18 08:18:42 -04:00
Neil Deakin
8a45064b49 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
bd65e63371 bug 1205540 account for active inputs and skip processing when streams are inactive r=padenot 2015-09-18 00:03:00 +12:00
Karl Tomlinson
8d323f7168 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.
2015-09-18 00:00:17 +12:00
Karl Tomlinson
d1b165181f bug 1205540 make source stream available during RemoveInput r=padenot 2015-09-09 14:19:05 +12:00
Karl Tomlinson
c3b0a2de0e bug 1205540 provide querying whether engines need to continue processing even without input r=padenot 2015-09-09 08:54:03 +12:00
Karl Tomlinson
261ca1b9d3 bug 1205540 don't send more null chunks than necessary to AnalyserNode r=padenot 2015-09-09 08:52:39 +12:00
Carsten "Tomcat" Book
ea9113720a Merge mozilla-central to mozilla-inbound 2015-09-18 13:25:30 +02:00
Carsten "Tomcat" Book
1f8a1e2a96 merge mozilla-inbound to mozilla-central a=merge 2015-09-18 13:19:00 +02:00
Carsten "Tomcat" Book
182936e352 merge fx-team to mozilla-central a=merge 2015-09-18 12:03:30 +02:00
B2G Bumper Bot
18d4039213 Bumping manifests a=b2g-bump 2015-09-17 23:13:43 -07:00
B2G Bumper Bot
d364a8ed19 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