Commit Graph

101 Commits

Author SHA1 Message Date
Carsten "Tomcat" Book
08997000eb Backed out 2 changesets (bug 1202902) to recking bug 1202902 to be able to reopen inbound on a CLOSED TREE
Backed out changeset 647025383676 (bug 1202902)
Backed out changeset d70c7fe532c6 (bug 1202902)
2015-10-07 14:03:21 +02:00
Carsten "Tomcat" Book
e7ef778c9d Backed out 1 changesets (bug 1202902) for causing merge conflicts to mozilla-central
Backed out changeset cfc1820361f5 (bug 1202902)

--HG--
extra : rebase_source : 5d3db72337754bc7ab0ed0c30b2896100411ff92
2015-10-07 12:13:45 +02:00
Shu-yu Guo
d06b6030f6 Bug 1202902 - Scripted fix the world. 2015-10-06 14:00:31 -07:00
Geoff Brown
52d4e225a0 Bug 1026290 - Update mochitest-chrome manifests for android; r=jgriffin 2015-07-10 14:41:59 -06:00
Ms2ger
f1fc41b0e5 Bug 949614 - Use === for SimpleTest.is; r=Waldo
This is more likely to be correct, and a necessary step in case we ever want
to move to Object.is.

This keeps ise as an alias for is, and introduces is_loosely for the old
behaviour.
2015-04-14 15:28:13 +02:00
Jonathan Griffin
d1c61bc9b6 Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Mike Conley
448f596abf Bug 1077168 - Cancel in-flight Webapp install jobs from windows that change location. r=myk.
Installing a Webapp is an asynchronous job, and there is a pocket of time
between when web content requests to install an app and before the browser
displays an installation prompt that the outer window of the content can
browse away. This pocket of time is typically used by XHR to request the
web app resources and verify their contents.

This pocket of time is, essentially, bug 771294, and is a bit of a security
problem.

This problem was originally patched over on Desktop by checking in the parent
process that the outer window was still at the same URI as it had been when it
made the request. I'm not entirely sure if Android / B2G made similar checks.

With separated content processes, however, the browser front-end can no longer
performantly check to ensure that the outer window is at the same URI.

We solve this problem by sending up a message in the content process when
the location of an outer window making use of navigator.mozApps changes.
We hold a Map of "actions" mapping to in-flight installs mapped by the
outer window ID of the requesting content. When we notice a location
change, we mark those actions as cancelled. When the XHR returns, we have
it check the state of its actions, and if they're cancelled, it aborts
further action.

Normally, this wouldn't be necessary, since any XHR initiated by the
content window would be cancelled once the location changed, but in
this case, the XHR is occurring in Webapps.jsm, and is not influenced
by the outer window of the content.

--HG--
extra : rebase_source : 5f95002a21c96c5cbf3dca8ca265400448251b43
2015-02-10 13:18:47 -05:00
Ted Clancy
bee6f6bd32 Bug 1000305 - Part 2 - imported patch bug-1000305-fix-part2. r=mcmanus
--HG--
extra : rebase_source : 980af8e81cc0358a04073d3cc98d90c3a98c5228
2015-02-09 08:39:07 -05:00
Fabrice Desré
2440b76622 Bug 1108096 - Langpack support for b2g/gaia r=ferjm,sicking 2015-01-10 15:00:27 -08:00
Carsten "Tomcat" Book
248d09bf46 Backed out changeset df960e299bcd (bug 1108096) for m1 test failures 2015-01-12 09:02:13 +01:00
Fabrice Desré
10b13ff557 Bug 1108096 - Langpack support for b2g/gaia r=ferjm,sicking 2015-01-10 15:00:27 -08:00
Fabrice Desré
3c4d11e817 Bug 1072090 - Add a way to enable and disable an app. r=myk,sicking 2014-10-23 16:40:08 -07:00
Wes Kocher
1864a13f49 Backed out changeset 556dc4f97e08 (bug 1072090) for m-oth orange 2014-10-23 18:21:11 -07:00
Fabrice Desré
7e4662b2bd Bug 1072090 - Add a way to enable and disable an app. r=myk,sicking 2014-10-23 16:40:08 -07:00
Fabrice Desré
bac34b231b Bug 982874 - Import / export API for apps : Part 2: dom/webapps implementation r=marco,sicking 2014-10-14 22:55:14 -07:00
Ted Clancy (:tedders1)
fe1e3215dd Bug 1000315 - Part 7: App tests automatically confirm uninstallation. r=myk 2014-06-11 14:33:02 -07:00
Fabrice Desré
eabd72e065 Bug 899322 - Convert the mozApps API to use webidl r=marco,bholley 2014-08-19 09:30:54 -07:00
Marco Castelluccio
7b14b18339 Bug 967302 - Fix leak caused by the XUL alert shown at the end of an installation by mocking the alerts service. r=myk 2014-07-12 02:59:51 +02:00
Marco Castelluccio
bea7575679 Bug 1034731 - Better logging for manifest content-type errors. r=fabrice 2014-07-06 18:47:28 +02:00
Marco Castelluccio
32f517a322 Bug 922187 - Properly catch exceptions in checkInstalled and fire the error callback on the DOM request. r=myk 2014-06-25 01:51:28 +02:00
Marco Castelluccio
dea9c853b9 Bug 999653 - Don't manually set allAppsLaunchable but use SpecialPowers.setAllAppsLaunchable. r=fabrice 2014-04-24 04:06:00 +02:00
Marco Castelluccio
aa859b7748 Bug 993326 - Automatically restore apps launchable value. r=fabrice 2014-04-17 16:43:04 -04:00
Kyle Huey
c1d30ea962 Bug 990330: Remove event listener to avoid leaking in test_bug_771294.xul. r=ehsan 2014-04-01 11:33:28 +08:00
Bill McCloskey
fd05f3eb04 Bug 982828 - [e10s] Disable mochitest-plain tests that don't pass in e10s (r=ted) 2014-03-13 21:38:19 -07:00
Wes Kocher
3b83e5bb22 Backed out changeset 88425ad0f06a (bug 982828) for introducing various mochitest-5 failures on a CLOSED TREE
* * *
Backed out changeset 94f9ebdc6662 (bug 982828)
2014-03-13 19:41:21 -07:00
Bill McCloskey
e784b5aef6 Bug 982828 - [e10s] Disable mochitest-plain tests that don't pass in e10s (r=ted) 2014-03-13 15:41:41 -07:00
Bill McCloskey
006786a6b4 Backed out changeset d6261f65070a 2014-03-13 15:52:27 -07:00
Bill McCloskey
ed100f425c Bug 982828 - [e10s] Disable mochitest-plain tests that don't pass in e10s (r=ted) 2014-03-13 15:41:41 -07:00
Vaibhav Agarwal
64e20261db Bug 971132 - B2G mochitests should use the new manifest format; r=jmaher 2014-03-06 13:42:43 -05:00
Vaibhav Agarwal
2ae37b022e Bug 970925 - convert testing/mochitest/android.json into skip-if statements in mochitest.ini files; r=jmaher 2014-02-15 04:53:02 -05:00
Marco Castelluccio
723240698b Bug 960837 - Use the basic receipt check introduced in bug 757226 for installations. r=fabrice 2014-01-23 09:46:20 -05:00
Ms2ger
09b5919765 Bug 939048 - Part d: Move mochitests to manifests in dom/tests/mochitest/webapps/apps; r=jst 2013-12-31 10:06:10 +01:00
Fernando Jiménez
da35ee5548 Bug 927699 - navigator.mozApps.install(url) lets NS_ERROR_FAILURE onto the web. r=fabrice 2013-11-07 12:30:31 +01:00
Ms2ger
1ee1f27aa3 Bug 922268 - Remove empty makefiles; r=gps 2013-10-03 09:10:00 +02:00
Gregory Szorc
e6acf6270f Bug 920223 - Part 2: Mass convert MOCHITEST_CHROME_FILES to manifests; rs=Ms2ger 2013-09-30 09:52:01 +02:00
Gregory Szorc
1cff342d15 Bug 920223 - Part 1: Mass convert MOCHITEST_FILES to manifests; rs=Ms2ger 2013-09-30 09:51:57 +02:00
Ed Morley
18a411a55c Backed out changeset 77bff106b704 (bug 920223) 2013-09-30 12:50:12 +01:00
Ed Morley
53a451894a Backed out changeset 68b6b152f51a (bug 920223) 2013-09-30 12:50:09 +01:00
Gregory Szorc
0b4364c6f3 Bug 920223 - Part 2: Mass convert MOCHITEST_CHROME_FILES to manifests; rs=Ms2ger 2013-09-30 09:52:01 +02:00
Gregory Szorc
6ed63cb064 Bug 920223 - Part 1: Mass convert MOCHITEST_FILES to manifests; rs=Ms2ger 2013-09-30 09:51:57 +02:00
Marco Castelluccio
628ae5cc73 Bug 855765 - Move test_bug_795164 to dom/apps and avoid UI confirmation. r=fabrice
--HG--
rename : dom/apps/tests/test_uninstall_errors.html => dom/apps/tests/test_bug_795164.html
2013-09-25 09:37:21 -04:00
Marco Castelluccio
95d53b2072 Bug 859631 - Move test_uninstall_errors to dom/apps and avoid UI confirmation. r=fabrice 2013-09-19 15:38:45 -04:00
Martijn Wargers
8491344516 Bug 914089 - b2g.json cleanup and reorder, part 3. r=jmaher 2013-09-11 13:52:42 +02:00
Mike Hommey
f8bc7fa754 Bug 912293 - Remove now redundant boilerplate from Makefile.in. r=gps 2013-09-05 09:01:46 +09:00
Marco Castelluccio
03df91c1a7 Bug 854975 - Add fuzz to tests to fix intermittent failures. r=fabrice 2013-08-27 15:54:06 -04:00
Marco Castelluccio
b0cfbd81f2 Bug 854975 - Print app.installTime, beforehand e installSuccess time to understand what's going on in test_install_app.xul. r=fabrice 2013-08-07 20:07:41 -04:00
Marco Castelluccio
8307a806dd Bug 771294 - Install App doorhanger remains visible when installing page immediately loads another page. r=myk
--HG--
rename : dom/tests/mochitest/webapps/bug_765063.xul => dom/tests/mochitest/webapps/install_and_redirect_helper.xul
2013-08-05 16:30:41 -04:00
Marco Castelluccio
19539a7071 Bug 777402 - Implement support for packaged apps via the installPackage function in the mozapps DOM API in desktop web runtime. r=myk,wesj,fabrice 2013-08-01 17:00:39 -07:00
Ryan VanderMeulen
53108c6053 Backed out changesets 357e720b5a37 and f1971c2f5232 (bug 777402) for mochitest-other orange.
CLOSED TREE
2013-08-01 21:51:12 -04:00
Marco Castelluccio
391654aa12 Bug 777402 - Implement support for packaged apps via the installPackage function in the mozapps DOM API in desktop web runtime. r=myk,wesj,fabrice 2013-08-01 17:00:39 -07:00