Граф коммитов

886 Коммитов

Автор SHA1 Сообщение Дата
Fabrice Desré df56e4d957 Bug 1118946 - API to provide localized properties r=ferjm,sicking 2015-03-05 22:43:57 -08:00
Anish 4063a569ed Bug 958147 - Choose one of run-if or skip-if and get rid of the other.r=jmaher, mwargers 2015-03-03 08:46:37 -05: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
Mike Conley a80a4c4077 Bug 1077168 - Have Webapps.js pass up the outerWindowID of the top window with each message. r=felipe.
--HG--
extra : rebase_source : 814d149f2c8e59c00d6f623895fabbc2430a6954
2015-02-11 12:03:12 -05:00
Staś Małolepszy 8d44eacbd6 Bug 1133725 - Rename Langpack's version property to revision. r=fabrice, r=sicking 2015-02-18 10:39:20 +01:00
Anish 45de248a8b Bug 1056851 - Change existing callers of SpecialPowers.setBoolPref/setIntPref/setCharPref to SpecialPowers.pushPrefEnv. r=jmaher,mwargers 2015-02-19 11:53:01 -05:00
Carsten "Tomcat" Book c0d53e2918 Backed out changeset 6885e993936a (bug 1056851) for crashtest failures 2015-02-19 15:02:05 +01:00
Anish e7006d8a59 Bug 1056851 - Change existing callers of SpecialPowers.setBoolPref/setIntPref/setCharPref to SpecialPowers.pushPrefEnv. r=jmaher 2015-02-19 07:26:41 -05:00
Siddartha Pothapragada b283080cb6 Bug 879861 - Part 1a: Add new permission 'secureelement-manage'. r=ehsan 2015-02-11 03:35:00 -05:00
Ryan VanderMeulen 74f80ff51c Merge inbound to m-c. a=merge
CLOSED TREE
2015-02-10 16:03:15 -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é 65dc93617f Bug 1130900 - langpacks making testing noisy r=ferjm 2015-02-10 00:46:07 -08:00
Chris Peterson 009c1a2bcb Bug 1129325 - Remove nonstandard let blocks from dom. r=mrbkap 2015-01-24 23:38:46 -08:00
Ted Clancy 09e95882bb Bug 1000305 - Part 1 - Add a getIcon() method. r=fabrice r=ehsan
--HG--
extra : rebase_source : 59392a01a983bf1dbbdfad5c06d3e3e4a5facf8a
2014-12-18 17:40:41 -05:00
Chris Peterson fb9a27f3f9 Bug 1093721 - Avoid ReferenceError when trying to instantiate Components.classes['@mozilla.org/app-migrator;1']. r=qdot 2015-02-08 13:48:29 -08:00
Christoph Kerschbaumer 26cde7af39 Bug 1087728: Make JS callers of ios.newChannel call ios.newChannel2 in dom/apps (r=fabrice) 2015-02-05 12:53:56 -08:00
Markus Nilsson dfb7fb4437 Bug 1084505 - Fix explicit permission lookup for trusted hosted apps r=fabrice 2015-01-31 11:10:50 -08:00
Fabrice Desré 2d57baeb48 Bug 1128065 - Add missing requestsync-manager permission to the permission table. r=me 2015-01-30 15:27:09 -08:00
Fabrice Desré b6a8e00e73 Bug 1126047 - Imported apps that specify an origin are not correctly installed r=marco 2015-01-28 17:24:38 -08:00
KuoE0 349e8f5dde Bug 1123622 - add trusted attribute to complete the permission table of tv. r=fabrice 2015-01-22 22:25:00 +01:00
Jan Varga f514a5ed5b Bug 1123637 - Remove all code relevant to quota prompts; r=bent,ehsan 2015-01-22 09:40:42 +01:00
Fabrice Desré ff4dd4c94a Bug 1113779 - UserCustomizations.jsm spams desktop mochitest test logs r=mccr8 2015-01-16 14:16:03 -08:00
Kyle Machulis 4202f2bf99 Bug 1107674 - Change settings:wallpaper.image permission from PROMPT to ALLOW for privileged apps; r=fabrice 2015-01-15 14:56:11 -08:00
Carsten "Tomcat" Book 09a9226f53 Merge mozilla-central to mozilla-inbound 2015-01-13 15:29:02 +01: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
Markus Nilsson af1b4ca6e0 Bug 1090820 - OTA update check never clears status. r=fabrice 2015-01-09 13:32:47 -08:00
Fernando Jimenez Moreno c4551483eb Bug 1101029 - Overlay iframe on top of front-most app. r=roc, sicking 2015-01-09 09:55:18 +01:00
Eric Rahm 1a1f4c0b66 Bug 1111135 - Part 1: Add audio-capture:3gpp perimission. r=fabrice 2015-01-05 17:54:22 -08:00
Wes Kocher 8bb1b9d23b Backed out 2 changesets (bug 1111135) for build bustage on a CLOSED TREE
Backed out changeset 0c6d384d9d65 (bug 1111135)
Backed out changeset 1ba35d7572b7 (bug 1111135)
2015-01-05 15:32:08 -08:00
Eric Rahm 0d14c130d0 Bug 1111135 - Part 1: Add audio-capture:3gpp perimission. r=fabrice. 2015-01-05 15:15:06 -08:00
Shih-Chiang Chien fbddc387d5 Bug 1080474 - Part 2 - expose device information via PresentationDeviceInfoManager API. r=khuey r=fabrice. 2014-11-14 13:55:24 -08:00
Sean Lin d8cb1c1960 Bug 1078115 - Make the transaction of app update atomic. r=fabrice 2014-12-18 18:13:31 +08:00
Fabrice Desré 27a342c3b5 Bug 1113391 - Followup to bug 923897 r=me 2014-12-18 15:16:49 -08:00
Chih-Kai (Patrick) Wang 1b982fc3d7 Bug 970307: Part 3: Reinitialize modules after fork. r=fabrice 2014-12-18 17:01:33 +08:00
Antonio M. Amaya 5b33913d44 Bug 1110119 - At first boot time, check that the app being preinstalled doesn't already exist by manifestURL. r=fabrice 2014-12-11 08:00:00 -05:00
Fabrice Desré 130be9050a Bug 923897 - Extensibility support for b2g r=ferjm,bholley 2014-12-16 15:32:28 -08:00
Ehsan Akhgari 09a262787c Bug 649012 - Fail mochitest-plains which use flaky timeouts (setTimeout(x) for x > 0); r=ted
We are white-listing the existing set of tests that use setTimeout
like this.  Hopefully these tests will be investigated and fixed
in the future, so that we can narrow down the white-list.

This check is only turned on for mochitest-plain for now.
2014-12-11 13:34:40 -05:00
Nathan Froyd bde61135d5 Bug 1109826 - part 0a - uncomment preprocessing directives in ImportExport.jsm; r=fabrice
Apparently, these directives should have been uncommented prior to landing.
2014-12-10 14:50:27 -05:00
Yoshi Huang cb253c7c91 Bug 1082475 - B2G NFC: move 'nfc' permission to privilege. r=smaug, pauljt, dimi 2014-11-26 12:16:18 +08:00
Yoshi Huang 215cbc771b Bug 1048676 - Part 1: WebIDL and DOM change. r=smaug, dimi
From 28e46b34f04d20d5f10c14a85e77ec1ac98aad9e Mon Sep 17 00:00:00 2001
---
 dom/apps/PermissionsTable.jsm     | 9 +++++++--
 dom/nfc/nsNfc.js                  | 9 +++++----
 dom/webidl/MozNFC.webidl          | 8 ++------
 dom/webidl/MozNFCPeer.webidl      | 2 +-
 dom/webidl/MozNFCPeerEvent.webidl | 2 +-
 dom/webidl/MozNFCTagEvent.webidl  | 2 +-
 6 files changed, 17 insertions(+), 15 deletions(-)
2014-11-06 11:12:38 +08:00
Jan Varga 3528192339 Bug 1083927 - IndexedDB: Subdomain Quota Management; r=bent,ehsan
--HG--
rename : dom/indexedDB/test/unit/bug1056939.zip => dom/indexedDB/test/unit/bug1056939_profile.zip
2014-11-28 09:44:12 +01:00
Ryan VanderMeulen fb8d05cd59 Backed out changesets 9beb53e53951, 4420bb4e5e7c, de1da65301a8, and cd9c2aaf1343 (bug 970307) for causing frequent B2G debug mochitest-11 crashes. 2014-11-24 17:18:27 -05:00
Carsten "Tomcat" Book 2492fdb8a7 Merge mozilla-central to b2g-inbound 2014-11-24 14:18:59 +01:00
Patrick Wang (Chih-Kai Wang) d70095812d Bug 970307: Part 3: Reinitialize modules after fork. r=fabrice 2014-11-24 15:22:31 +08:00
Antonio M. Amaya 835a566bb7 Bug 1096971 - Update the minimanifest etag and hash correctly on resume. r=fabrice 2014-11-21 10:45:00 +01:00
Antonio M. Amaya f748c30af9 Bug 1096971 - Don't propagate an error when the package downloaded was the same we had. r=fabrice 2014-11-17 02:01:00 +01:00
Kan-Ru Chen (陳侃如) b61618c420 Bug 1044736 - Part 6. Widget should only require embed-widgets permission. r=fabrice
As discussed on dev-webapi[1] the app that wants to use widgets only
need the "embed-widgets" permission to use <iframe mozbrowser mozwidget>

If the app also wants to implement a browser, it could request the
"browser" separately. A <iframe mozbrowser mozwidget> will have
restricted mozbrowser API defined on the prototype if the embedder has
the "brower" permission; they will always throw when used.

[1]: https://groups.google.com/d/msg/mozilla.dev.webapi/uQweGWtVKRA/Bj1jZq3LN-0J

--HG--
rename : dom/apps/tests/test_widget.html => dom/apps/tests/test_widget_browser.html
2014-11-21 18:56:28 +08:00
Kan-Ru Chen (陳侃如) be64833b75 Bug 1044736 - Part 5. Extract tests functions to file_test_widget.js. r=fabrice 2014-11-21 18:56:28 +08:00