Commit Graph

1089 Commits

Author SHA1 Message Date
Carmen Jimenez
40689d1f3d Bug 1173666 - Expose the URL of the page that calls mozApps.connect to the app exposing the port. r=ferjm, r=baku 2015-07-05 08:45:00 -04:00
Wes Kocher
d3e671fb87 Backed out 2 changesets (bug 1176712) for gip f5 permafail CLOSED TREE
Backed out changeset 52fd1c8b0fcb (bug 1176712)
Backed out changeset 6baeaddb32cc (bug 1176712)

--HG--
extra : amend_source : eef1548405404b8646214c0d10a63ebee0b39f58
2015-07-02 09:21:23 -07:00
Fernando Jimenez
b58c6bea88 Bug 1176712 - Cannot have two activities with same name and different filters. r=fabrice 2015-07-02 07:56:14 +02:00
William Chen
e2a8b6bfa3 Bug 1178513 - Add <extapp> element and interfaces to be used by ACL. r=khuey
--HG--
extra : rebase_source : 988379e48f84c04bcac181a6fc4c71325e3f0b02
2015-06-30 11:27:57 -07:00
Yoshi Huang
94fb90e9cf Bug 1168300 - notify clear-cookiejar-data. r=sicking 2015-05-27 16:10:42 +08:00
Fernando Jimenez
d192d7e4a3 Bug 1174110 - The service worker still remains registered when uninstalling the service-worker-enabled application. r=fabrice 2015-06-17 11:50:24 +02:00
Eugen Sawin
fce9fdde80 Bug 1171013 - Extend defineLazyModuleGetter to support user-defined proxy objects. r=mfinkle 2015-06-15 19:16:00 +02:00
Carsten "Tomcat" Book
d94b17a5a2 Backed out changeset 55698478f5ba (bug 1168300) for mochitest-1 testfailures in test_bug_795164.html
--HG--
extra : rebase_source : 83f8feda825d911220e593b1d8eb4d01f4cf20d0
2015-06-11 15:05:24 +02:00
Yoshi Huang
71b168bf76 Bug 1168300 - notify clear-cookiejar-data. r=sicking 2015-05-27 16:10:42 +08:00
Fabrice Desré
0c44af0c9e Bug 1170836 - Importing certified themes in dev mode doesn't work r=ferjm a=ryanvm 2015-06-09 11:22:07 -07:00
Fernando Jimenez
b0b4524945 Bug 1168783 - Expose principal in mozIApplication. r=fabrice 2015-06-08 14:02:09 +02:00
Motohiro Takayama
afbd5b35e3 Bug 1167503 - Remove |popPermissions| from test case. r=fabrice
--HG--
extra : rebase_source : 72b64ea08b68af746a32e160dc44876c7d7ddd52
2015-06-01 22:21:00 +02:00
Junior Hsu
cd5369751f Bug 1167603 - use string to replace nsIURI in aApps.widgetPages. r=fabrice
--HG--
extra : rebase_source : 360a7a7bf40a3c5753342d333f90ee12d9d1bca2
2015-05-27 00:59:00 +02:00
Nick Desaulniers
d2b470167d Bug 1152597 - Icons are shown for some apps. r=marco 2015-05-19 11:43:39 -07:00
Ryan VanderMeulen
d29552d114 Merge m-c to inbound. a=merge
CLOSED TREE

--HG--
rename : browser/devtools/performance/test/browser_perf-aaa-run-first-leaktest.js => browser/devtools/performance/test/browser_aaa-run-first-leaktest.js
extra : rebase_source : bf83892460e8f9a98a8e08220593f9815cfecffb
2015-05-22 14:18:25 -04:00
Cervantes Yu
55152ad9d9 Backout change 39e167bbd14c, a80140872ea5, adae9be2294d and b71ccef9c674 (bug 970307). 2015-05-19 14:31:25 +08:00
Fabrice Desré
4eee1d8be4 Bug 1162791 - Add-ons should be enabled by default when installed r=ferjm 2015-05-20 23:06:03 -07:00
Fabrice Desré
33e745b3d3 Bug 1150106 - Async loadSubscript - Part 1, add async to loadSubscriptWithOptions r=bholley,mcrr8 2015-05-20 22:14:49 -07:00
Christoph Kerschbaumer
6b24d4a573 Bug 1167053 - Convert NetUtil.newChannel2 callsites to use new API - update newChannel2 (r=sicking,paolo) 2015-05-21 19:52:03 -07:00
Christoph Kerschbaumer
3a846e95d6 Bug 1167053 - Convert NetUtil.newChannel2 callsites to use new API - update asyncFetch2 (r=sicking,paolo) 2015-05-21 19:51:40 -07:00
Carsten "Tomcat" Book
005c5ce415 Backed out changeset 4d2839eea957 (bug 970307) 2015-05-19 11:44:27 +02:00
Cervantes Yu
a12ce249b1 Backout change 39e167bbd14c, a80140872ea5, adae9be2294d and b71ccef9c674 (bug 970307).
--HG--
extra : rebase_source : 829e80228e07440285383316d2c4fea017828529
2015-05-19 14:31:25 +08:00
Andrea Marchesini
3aa189b5ff Bug 1163388 - patch 2 - get rid of nsIDOMFile, r=ehsan
--HG--
rename : dom/base/nsIDOMFile.idl => dom/base/nsIDOMBlob.idl
2015-05-18 14:52:26 +01:00
Andrew McCreight
9e8f4b219e Bug 1152551, part 2 - Fix mode lines in dom/. r=jst 2015-05-03 15:32:37 -04:00
Andrew McCreight
da5ed6f5cd Bug 1152551, part 1 - Remove leading tabs in dom/. r=baku
Also, remove trailing whitespace in nsXMLContentSink.cpp
2015-05-03 15:32:33 -04:00
Antonio M. Amaya
c12b5220b7 Bug 1155245 - Set the app status correctly for hosted certified apps in developer mode. r=fabrice
--HG--
extra : rebase_source : fd925aa980e0677d0ec2a0a7c987285b168533c7
2015-04-23 06:33:00 -04:00
Fabrice Desré
0c39156de8 Bug 1154864 - Fix getScopeByLocalId use in PushService.jsm r=nsm 2015-04-16 18:15:18 -07: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
Bill McCloskey
a94613d29b Bug 1152114 - Ignore webapps with localId 0 (r=fabrice) 2015-04-13 18:11:49 -07:00
Fabrice Desré
8ca7e9e653 Bug 1111961 - Developer mode support r=ferjm,pauljt 2015-04-13 09:49:50 -07:00
Rex Hung
2143843975 Bug 1115619 - Use a preference to guarantee app permission loading to permissions.sqlite. r=fabrice 2015-04-02 14:21:52 +08:00
James Cheng
d7b40ea760 Bug 1026350 - Part 1: Inputport API implementation. r=baku 2015-04-08 03:07:00 -04:00
Antonio M. Amaya
7b8d83c748 Bug 1144689 - Allow setting manually a fetch time and modified time for cache entries. r=fabrice
--HG--
extra : rebase_source : 022e7f4a0273a540bcafa5848bc28a9498f6e80b
2015-04-06 06:14:00 +02:00
Fabrice Desré
d100562c21 Bug 1150199 - Langpacks should not have to be privileged r=ferjm 2015-04-06 14:22:26 -07:00
Fabrice Desré
2ecc956f0f Bug 1150160 - Support import of apps as memory blobs. r=marco 2015-04-03 16:11:31 -07:00
Phil Ringnalda
842dda2a22 Back out 557609749a57 (bug 1150160) for Windows bustage 2015-04-03 21:37:14 -07:00
Fabrice Desré
abe18e1309 Bug 1150160 - Support import of apps as memory blobs. r=marco 2015-04-03 16:11:31 -07:00
Junior Hsu
31a87b0dc5 Bug 1097468 - Part 2: Test for permission |homescreen-webapps-manage|. r=fabrice
--HG--
extra : rebase_source : 23d6e91d421e20823427a3b391cb50a59caf0a59
2015-03-16 15:03:09 +08:00
Bill McCloskey
61ad988f3a Bug 1150660 - Fix sendAsyncMessage() uses to not trigger warnings in dom/apps r=fabrice 2015-04-02 13:53:27 -07:00
Bevis Tseng
90b1f53ab1 Bug 1114935 - Part 6.5: Migration in OperatorApps.jsm. r=fabrice
--HG--
extra : histedit_source : af9fd222ff684a06952f5f4ba896694cbb8006fe
2015-01-15 18:36:29 +08:00
Phil Ringnalda
68e0914567 Merge b-i to m-c, a=merge 2015-03-21 12:35:46 -07:00
Bill McCloskey
2cbf53b22f Bug 1145394 - Remove exec bit on js files (r=fabrice,gavin) 2015-03-20 11:57:38 -07:00
Fabrice Desré
ccfe46fbe6 Bug 1142758 - Use the getLocalizedValue language when falling back to manifest values r=ferjm 2015-03-19 10:06:32 -07:00
Ryan VanderMeulen
30a9149d8b Backed out changeset 0a53b2d44e77 (bug 1142758) for apps/verticalhome/test/marionette/grid_layout_test.js failures. 2015-03-19 16:33:19 -04:00
Kyle Machulis
8c752250b5 Bug 1001757 - Add ability to store core apps outside of profile on desktop b2g; r=fabrice 2015-03-19 11:07:07 -07:00
Fabrice Desré
1c219c3073 Bug 1142758 - Use the getLocalizedValue language when falling back to manifest values r=ferjm 2015-03-19 10:06:32 -07:00
Ben Francis
77ff8e4486 Bug 1087469 - Add support for a start_url property in app manifests r=fabrice 2015-03-18 21:25:51 -07:00
Gregor Wagner
fa698fe8a9 Backout Bug 1114935 for causing bug 1144567. 2015-03-18 11:48:52 -07:00
Bevis Tseng
c679fa9bab Bug 1114935 - Part 6.5: Migration in OperatorApps.jsm. r=fabrice
--HG--
extra : rebase_source : bf497fe361cd3d1e4d95245206c69b32198e16b9
extra : histedit_source : aa1ec9e77bbfbb7e942a89304f0212b815ba4e25
2015-01-15 18:36:29 +08:00
Ryan VanderMeulen
ee67ad0d8d Merge inbound to m-c. a=merge 2015-03-12 18:05:45 -04:00
Ted Clancy
5915828861 Bug 1137498 - Prevent updates changing short_name. r=fabrice 2015-03-12 10:53:14 -04:00
Jonathan Griffin
d1c61bc9b6 Bug 1116187 - Disable failing mochitest-chrome tests for B2G, r=gbrown 2015-02-06 16:30:37 -08:00
Junior Hsu
2737f4fe92 Bug 1061116 - Make the comparison query/hash insensitive for validity widget. r=fabrice 2014-11-18 19:28:41 +08:00
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
Wes Kocher
8ea0c6cd56 Backed out changeset 61fc517d0336 (bug 1044736) 2014-11-17 22:44:01 -08:00
Wes Kocher
0e23bb5d7a Backed out changeset b1a6ecfca674 (bug 1044736) 2014-11-17 22:43:57 -08:00
Wes Kocher
2d9f4bd96e Backed out changeset d045286cff6e (original backout of 8 changesets) for not working right a=backout
--HG--
rename : dom/browser-element/BrowserElementParent.jsm => dom/browser-element/BrowserElementParent.js
2014-11-17 22:19:49 -08:00
Wes Kocher
3696aa8ceb Backed out 8 changesets (bug 1044736) for breaking the statusbar on b2g a=backout
Backed out changeset b1a6ecfca674 (bug 1044736)
Backed out changeset 61fc517d0336 (bug 1044736)
Backed out changeset 59a47fafaccf (bug 1044736)
Backed out changeset b3ff4ce20e67 (bug 1044736)
Backed out changeset e4f1f09f150f (bug 1044736)
Backed out changeset 8ecfc1f41ddc (bug 1044736)
Backed out changeset c7c9170ab299 (bug 1044736)
Backed out changeset 78aacc35b4e7 (bug 1044736)

--HG--
rename : dom/browser-element/BrowserElementParent.js => dom/browser-element/BrowserElementParent.jsm
2014-11-17 20:34:00 -08:00
Zoran Jovanovic
15395488a6 Bug 1066013 - Initialize appCache path r=fabrice 2014-11-12 11:36:36 -08:00
Antonio M. Amaya
4086676d8a Bug 1022791 - Keep previous values for PROMPT permissions on system updates. r=fabrice 2014-11-03 02:24:00 -05:00
Kan-Ru Chen (陳侃如)
60c73c4dec 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-12 19:27:32 +08:00
Kan-Ru Chen (陳侃如)
532d37e134 Bug 1044736 - Part 5. Extract tests functions to file_test_widget.js. r=fabrice 2014-11-12 19:27:32 +08:00
Carsten "Tomcat" Book
28e9ba1364 Backed out changeset a3604ab2b3ca (bug 1044736) 2014-11-12 08:39:33 +01:00
Carsten "Tomcat" Book
8999b3c663 Backed out changeset 920775ddfb85 (bug 1044736) 2014-11-12 08:39:32 +01:00
Carsten "Tomcat" Book
050c622f95 Backed out changeset 6ccbc46c33db (bug 1044736)
--HG--
rename : dom/browser-element/BrowserElementParent.jsm => dom/browser-element/BrowserElementParent.js
2014-11-12 08:39:28 +01:00
Chris Fitzer
cd0a513b2a Bug 1094090 - Explicitly declare trusted app doesn't have homescreen-webapps-manage permission in PermissionsTable.jsm r=fabrice 2014-11-11 23:22:22 -08:00
Kan-Ru Chen (陳侃如)
4167226bc1 Backed out 8 changesets (bug 1044736) r=bustage
Backed out changeset 920775ddfb85 (bug 1044736)
Backed out changeset a3604ab2b3ca (bug 1044736)
Backed out changeset fb6a60700803 (bug 1044736)
Backed out changeset 7037d2b40d39 (bug 1044736)
Backed out changeset 1b55f80e1ca6 (bug 1044736)
Backed out changeset f55ff90f2b6f (bug 1044736)
Backed out changeset 8505276285fa (bug 1044736)
Backed out changeset e81aa95ac8d3 (bug 1044736)

--HG--
rename : dom/browser-element/BrowserElementParent.js => dom/browser-element/BrowserElementParent.jsm
2014-11-12 15:10:27 +08:00
Kan-Ru Chen (陳侃如)
53bbc67989 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-12 14:20:19 +08:00
Kan-Ru Chen (陳侃如)
731f79ef14 Bug 1044736 - Part 5. Extract tests functions to file_test_widget.js. r=fabrice 2014-11-12 14:20:19 +08:00
Kan-Ru Chen (陳侃如)
c57dcf090e Bug 1059662 - Disallow OOP app to embed in-proc apps. r=fabrice
Some mochitest that use embed-apps in an oop context is disabled.

--HG--
extra : rebase_source : 72de2cdae86eb8d55e642529cd4aae0af97e4e96
2014-11-11 10:25:36 +08:00
Antonio M. Amaya
acef08daa0 Bug 1092152 - Don't calculate the downloaded file hash if we didn't download it. r=fabrice 2014-10-31 10:36:00 -04:00
Markus Nilsson
62bb2772cc Bug 1084501 - Set proper permissions for pre-installed trusted apps. r=fabrice
When trusted hosted apps were installed from a preloaded
offline cache their permissions were not correctly set
due to information on 'kind' of application being missing
on pre-install.
---
 dom/apps/Webapps.jsm | 2 ++
 1 file changed, 2 insertions(+)
2014-11-03 11:08:06 -08:00
Ted Clancy
e47c829183 Bug 1000313 - Adding homescreen-webapps-manage permission. r=sicking 2014-11-02 14:04:08 -05:00
Gina Yeh
c004c75b05 Bug 989198, Patch 4: Dispatch both chrome event and key event for hardward keys, and add new permission, r=fabrice. 2014-11-03 15:05:43 +08:00
Sean Lin
d12e06f1df Bug 998872 - [Stingray] TV Manager API. Part 1 - DOM API & WebIDL bindings. r=ehsan, r=baku
--HG--
rename : dom/datastore/tests/file_app.sjs => dom/tv/test/file_app.sjs
2014-08-21 17:15:18 +08:00
Fabrice Desré
ede3c227e9 Bug 1083454 - Aborting marionette tests is causing bootup failure r=gwagner 2014-10-27 17:40:13 -07:00
Alexandre Poirot
69fccd83fd Bug 1019714 - Forbid overloading apps not being pushed via devtools. r=jryans, r=fabrice 2014-10-27 11:17:40 -04:00
Ben Francis
8c013496ea Bug 1075716 - Support app manifests served with the application/manifest+json MIME type r=fabrice 2014-10-25 20:46:27 -07:00
Carsten "Tomcat" Book
0ec014c025 Merge mozilla-central to fx-team 2014-10-24 16:12:00 +02:00
Carsten "Tomcat" Book
0429cd84ea merge b2g-inbound to mozilla-central a=merge 2014-10-24 15:59:31 +02: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
Vaibhav Agrawal
9c782e9145 Bug 1083347 - Remove androidx86.json. r=gbrown 2014-10-22 11:51:00 -04:00
Benjamin Bouvier
a68d2993a2 Bug 997973: Call typed array and arraybuffer constructors with new in the tree; r=bz 2014-10-24 11:26:20 +02:00
Ryan VanderMeulen
f00e2738a4 Backed out 6 changesets (bug 989198, bug 1082963) for causing bug 1083231.
Backed out changeset a7c972407578 (bug 1082963)
Backed out changeset 94d1b30bde00 (bug 989198)
Backed out changeset 01e064ceb505 (bug 989198)
Backed out changeset f5a538109e36 (bug 989198)
Backed out changeset 3ff227d79d74 (bug 989198)
Backed out changeset 186743fc6f6d (bug 989198)

CLOSED TREE
2014-10-16 12:57:18 -04:00
Ben Turner
57c905e150 Bug 1035454, part 4 - Don't send 'Webapps:UnregisterForMessages' at xpcom-shutdown, r=fabrice. 2014-10-15 20:04:33 -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
Wes Kocher
3d28364b7f Merge m-c to b2g-inbound a=merge 2014-10-14 17:36:36 -07:00
Zoran Jovanovic
3d1f9cf2fc Bug 1077529 - Update Trusted Hosted Apps r=fabrice
Verify manifest of trusted hosted app on update instead
of just overwriting it.
---
 dom/apps/TrustedHostedAppsUtils.jsm |  8 ++++----
 dom/apps/Webapps.jsm                | 26 +++++++++++++++++++++-----
 2 files changed, 25 insertions(+), 9 deletions(-)
2014-10-14 12:28:16 -07:00
Gina Yeh
02313babe9 Bug 989198, Patch 4: Dispatch both chrome event and key event for hardward keys, and add new permission, r=fabrice.
---
 b2g/chrome/content/shell.js       |   13 ++++++++-----
 dom/apps/PermissionsTable.jsm     |    6 ++++++
 testing/mochitest/manifest.webapp |    3 ++-
 3 files changed, 16 insertions(+), 6 deletions(-)
2014-10-14 15:09:36 +08:00
Junior Hsu
50235aed2f Bug 1074086 - Save widgetPages in UpdateAppHandlers and remove redundant saving. r=fabrice 2014-10-07 18:23:00 +02:00
Bobby Holley
d92c430a2e Bug 1065185 - Create content arrays rather than chrome arrays in DOM Apps. r=me 2014-10-03 10:05:51 +02:00
Alexandre Lissy
fbfcc287e9 Bug 993011 - Update eisting Gaia apps fields. r=fabrice
When performing an update, whether OTA or FOTA, some already existing
Gaia apps field may have changed. This happened in the past with bug
989876 where we lacked a proper updateTime value, and this may bite us
later. So we update all field, except some that we now must not be
changing.
2014-10-01 08:37:00 +02:00
Fabrice Desré
38972332f5 Bug 1070932 - Updates error handling code can fail r=marco 2014-09-26 10:23:21 -07:00
Evelyn Hung
3b0a2a9d18 Bug 997564 - Implement Engineering Mode Web API. sr=sicking r=fabrice 2014-09-21 09:06:00 +02:00
Ryan VanderMeulen
cde3e01598 Merge fx-team to m-c. a=merge 2014-09-24 15:58:32 -04:00
Kyle Machulis
64b49e97a2 Bug 1058180 - Only create app migrator when absolutely needed; r=fabrice 2014-09-23 13:22:54 -07:00
Kyle Machulis
1ca472946f Backing out 6d28e030fd7b (bug 1058180) due to causing crashes on desktop on a CLOSED TREE 2014-09-22 16:01:50 -07:00
Kyle Machulis
5a5d76a631 Bug 1058180 - Only create app migrator when absolutely needed; r=fabrice 2014-09-22 14:45:39 -07:00
Vlatko Markovic
0e0e41c434 Bug 1011393 - Add support for 'csp' entries in Manifest Helper. r=fabrice 2014-09-22 13:48:45 -07:00
Vlatko Markovic
c34b5238c6 Bug 1059198 - Permission table update for Trusted Hosted Apps. r=sicking 2014-09-22 07:59:00 -07:00
Vlatko Markovic
cb9c35ec9f Bug 1059216 - Verification of Trusted Hosted Apps manifest signature, part 2. r=sicking 2014-09-22 07:59:00 -07:00
Vlatko Markovic
8818f4947f Bug 1059216 - Verification of Trusted Hosted Apps manifest signature, part 1. r=dkeeler,rlb 2014-09-22 07:58:59 -07:00
Markus Nilsson
7b427a5a9e Bug 1059202 - Unit test - CSP and CA verfication for Trusted Hosted Apps r=sicking 2014-09-19 14:58:38 -07:00
Zoran Jovanovic
1c124be1f8 Bug 1059202 - CSP and CA verfication for Trusted Hosted Apps r=fabrice,sicking,rlb 2014-09-19 14:58:34 -07:00
Fabrice Desrï¿©
c3c5629dc0 Bug 902165 - System JS : ERROR resource://gre/modules/BrowserElementParent.jsm:219 ReferenceError: DOMApplicationRegistry is not defined in green B2G mochitest-3 runs r=bent 2014-09-24 16:14:54 +10:00
Fabrice Desré
a6c761aeaf Bug 1059194 - Trusted Hosted Apps, part 3: Basic app install tests r=myk 2014-09-16 13:14:02 -07:00
Vlatko Markovic
892881d00d Bug 1059194 - Trusted Hosted Apps, part 2: CSP infrastructure changes. r=sicking 2014-09-16 13:14:02 -07:00
Vlatko Markovic
21eb50d0cc Bug 1059194 - Trusted Hosted Apps, part 1: App installation & Run. r=fabrice 2014-09-16 13:14:02 -07:00
Fabrice Desré
f25f76cbe0 Bug 988973 - Remove the deprecated-hwvideo permission, r=fabrice 2014-09-15 17:12:47 -04:00
Fabrice Desré
ad043352e3 Bug 1063852 - Use webidl sequence for the receipts property. r=marco,bholley 2014-09-05 16:55:30 -07:00
Fabrice Desré
44901b7a5f backout bug 1063852 (84ac3d72395f) since that breaks Gij. r=bholley to please the dom/ hook. 2014-09-07 20:04:58 -07:00
Fabrice Desré
c2357e8100 Bug 1063852 - Use webidl sequence for the receipts property. r=marco,bholley 2014-09-05 16:55:30 -07:00
Fabrice Desré
12c324bdd8 Bug 1056424 - Stuck at loading screen during power cut off test r=myk 2014-09-05 16:41:24 -07:00
Birunthan Mohanathas
b09d89b288 Bug 1058101 - Flatten dom/apps/src/ into parent directory. r=mccr8
--HG--
rename : dom/apps/src/AppDownloadManager.jsm => dom/apps/AppDownloadManager.jsm
rename : dom/apps/src/AppsService.js => dom/apps/AppsService.js
rename : dom/apps/src/AppsService.manifest => dom/apps/AppsService.manifest
rename : dom/apps/src/AppsServiceChild.jsm => dom/apps/AppsServiceChild.jsm
rename : dom/apps/src/AppsUtils.jsm => dom/apps/AppsUtils.jsm
rename : dom/apps/src/FreeSpaceWatcher.jsm => dom/apps/FreeSpaceWatcher.jsm
rename : dom/apps/src/InterAppComm.cpp => dom/apps/InterAppComm.cpp
rename : dom/apps/src/InterAppComm.h => dom/apps/InterAppComm.h
rename : dom/apps/src/InterAppComm.manifest => dom/apps/InterAppComm.manifest
rename : dom/apps/src/InterAppCommService.js => dom/apps/InterAppCommService.js
rename : dom/apps/src/InterAppCommService.jsm => dom/apps/InterAppCommService.jsm
rename : dom/apps/src/InterAppConnection.js => dom/apps/InterAppConnection.js
rename : dom/apps/src/InterAppMessagePort.js => dom/apps/InterAppMessagePort.js
rename : dom/apps/src/OfflineCacheInstaller.jsm => dom/apps/OfflineCacheInstaller.jsm
rename : dom/apps/src/OperatorApps.jsm => dom/apps/OperatorApps.jsm
rename : dom/apps/src/PermissionsInstaller.jsm => dom/apps/PermissionsInstaller.jsm
rename : dom/apps/src/PermissionsTable.jsm => dom/apps/PermissionsTable.jsm
rename : dom/apps/src/ScriptPreloader.jsm => dom/apps/ScriptPreloader.jsm
rename : dom/apps/src/StoreTrustAnchor.jsm => dom/apps/StoreTrustAnchor.jsm
rename : dom/apps/src/Webapps.js => dom/apps/Webapps.js
rename : dom/apps/src/Webapps.jsm => dom/apps/Webapps.jsm
rename : dom/apps/src/Webapps.manifest => dom/apps/Webapps.manifest
2014-08-27 10:12:06 -07:00
Kyle Machulis
8f1cb03537 Bug 900551 - Add new permission for wallpaper setting; r=bent 2014-08-27 21:01:30 -07:00
Kyle Machulis
7d5df891b8 bug 900551 - Settings API OOP; r=bent 2014-08-27 21:01:29 -07:00
Kyle Machulis
93c0c45ea9 Bug 846200 - Support for granting settings permissions on a per-permission basis; r=bent
--HG--
extra : rebase_source : 941bc56c900d6eb96a49af80be2b328155c0ea45
2014-08-27 21:01:29 -07:00
Fabrice Desré
4df0ccbe35 Bug 1058319 - Add a geolocation-noprompt permission part 1: permission table update r=gwagner 2014-08-28 17:25:01 -07:00
Fabrice Desré
af55ed4213 Bug 1011738 - Theme support for b2g/gaia, Part 5 : tests r=myk 2014-08-28 17:20:27 -07:00
Fabrice Desré
6a91cca5b0 Bug 1011738 - Theme support for b2g/gaia, Part 3 : dom/apps checks for role="theme" r=myk 2014-08-28 17:20:27 -07:00
Ryan VanderMeulen
c440dec110 Merge fx-team to m-c. a=merge 2014-08-28 16:13:41 -04:00
Myk Melez
92ab9ceed5 Bug 1059687 - suppress errant "test for equality mistyped as assignment" warning; r=fabrice 2014-08-28 10:35:56 -07:00
Ryan VanderMeulen
a408d636f2 Backed out 11 changesets (bug 1059079, bug 1015518, bug 900551, bug 846200) for Gaia UI test failures on a CLOSED TREE.
Backed out changeset d85b4e48b3b4 (bug 1015518)
Backed out changeset 663b73ba69ec (bug 1015518)
Backed out changeset 5cf1cb5fa022 (bug 900551)
Backed out changeset b953dd5bfdaa (bug 900551)
Backed out changeset a2b6d7c84100 (bug 900551)
Backed out changeset ceb79fe83d15 (bug 900551)
Backed out changeset f6acf344fbf0 (bug 900551)
Backed out changeset fa269ea53937 (bug 846200)
Backed out changeset b89c84a850f9 (bug 846200)
Backed out changeset b7a7dfbe4e3f (bug 846200)
Backed out changeset c6f54d821c11 (bug 1059079)
2014-08-28 12:49:49 -04:00
Garner Lee
d6f848f018 Bug 979767 - Part 1: Messages and Permissions. Supporting web application triggering based on HCI event EVT_TRANSACTION. r=fabrice 2014-08-27 14:41:00 +02:00
Kyle Machulis
8e4905305b Bug 900551 - Add new permission for wallpaper setting; r=bent 2014-08-27 21:01:30 -07:00
Kyle Machulis
91d2336a9b Bug 900551 - Settings API OOP; r=bent 2014-08-27 21:01:29 -07:00
Kyle Machulis
e82cbad302 Bug 846200 - Support for granting settings permissions on a per-permission basis; r=bent 2014-08-27 21:01:29 -07:00
Ryan VanderMeulen
62ac641707 Merge inbound to m-c. a=merge 2014-08-26 15:55:57 -04:00
Carsten "Tomcat" Book
1db63fc670 Backed out changeset 883564cbc9a3 (bug 1058319) for gip test failures 2014-08-26 11:43:36 +02:00
Fabrice Desré
6d5c3c48f0 Bug 1058319 - Add a geolocation-noprompt permission r=gwagner 2014-08-25 17:29:25 -07:00
Kyle Machulis
ce8680c513 Bug 938171 - Move browser app database file in gecko; r=fabrice 2014-08-25 13:30:07 -07:00
Ryan VanderMeulen
388cb0948b Backed out 4 changesets (bug 745283) for merge conflicts with bug 786419.
Backed out changeset 70bad98676c8 (bug 745283)
Backed out changeset fc08327b3d3e (bug 745283)
Backed out changeset ce19c464f5d8 (bug 745283)
Backed out changeset c6ad8ab94461 (bug 745283)

--HG--
rename : netwerk/test/unit/test_udpsocket.js => netwerk/test/unit/test_bug952927.js
2014-08-25 13:07:14 -04:00
Ted Clancy (:tedders1)
fe1e3215dd Bug 1000315 - Part 7: App tests automatically confirm uninstallation. r=myk 2014-06-11 14:33:02 -07:00
Ted Clancy (:tedders1)
20fb7d9e16 Bug 1000315 - Part 3: Uninstall prompting on Desktop and WebRT. r=myk 2014-06-11 14:23:18 -07:00
Shih-Chiang Chien
364544d0c0 Bug 745283 - Part 2: Add udp-socket permission. r=sicking, r=baku 2014-05-28 13:56:23 +08:00
Shih-Chiang Chien
daf8546cce Bug 745283 - Part 2: Add udp-socket permission. r=sicking, r=baku 2014-05-28 13:56:23 +08:00
Sean Lin
c1aba63374 Bug 1014023 - [Datastore] Notify apps of changes in datastore without being opened. r=baku, r=gene 2014-06-27 15:58:47 +08:00
Shian-Yow Wu
b7ebe196ab Bug 1048615 - Test case for multiple simultaneous access. r=fabrice 2014-08-21 19:09:37 +08:00
Fabrice Desré
abe8234c38 Bug 1056226 - "Unrecoverable" app uninstall does not send manifest information to uninstall event r=marco 2014-08-20 12:27:32 -07:00
Kyle Machulis
de2e16fbcc Backed out d71120161e89 b5d49f1885af (bug 846200) due to missing xpc shell test fix patch 2014-08-20 12:01:18 -07:00
Kyle Machulis
86a6d3c36d Bug 846200 - Support for granting settings permissions on a per-permission basis 2014-08-20 10:40:37 -07:00
Ryan VanderMeulen
c6e10de0e1 Merge inbound to m-c. a=merge 2014-08-19 16:09:47 -04:00
Fabrice Desré
eabd72e065 Bug 899322 - Convert the mozApps API to use webidl r=marco,bholley 2014-08-19 09:30:54 -07:00
Ed Morley
0f03572425 Backed out changeset a880d4e0d656 (bug 846200) for xpcshell failures in test_bug808734.js; CLOSED TREE 2014-08-19 09:17:30 +01:00
Kyle Machulis
0549181b4e Bug 846200 - Support for granting settings permissions on a per-permission basis; r=bent 2014-08-18 22:06:54 -07:00
Junior Hsu
7d22538f76 Bug 1005818 - Part 2: Only limited browser API are available to a widget. r=kanru
1. Add |ownerIsWidget| in nsIFrameLoader.idl
2. Add |GetReallyIsWidget| in nsIMozBrowserFrame.idl
3. Hide the methods of browser API of a widget
4. Hide security-sensitive mozbrowser events of a widget
2014-08-19 15:14:22 +01:00
Junior Hsu
7b304a0c41 Bug 1005818 - Part 1: Load a widget as an app if the |src| is in the |widgetPages|. r=fabrice, sr=sicking
1. Add permission |embed-widgets| and Element attribute |mozwidget|
2. Add |hasWidgetPage| in /mozIApplication.idl
3. Check permission |embed-widgets| and the |src| is in the |widgetPages| when |GetAppManifest|
4. Add test case
5. Should enable preference |dom.enable_widgets|
2014-08-19 15:14:08 +01:00
Ed Morley
f060d6c933 Backed out changeset e020d647d6d3 (bug 1005818) for exceptions during test_widget.html 2014-08-19 15:06:12 +01:00
Ed Morley
fb08385bdd Backed out changeset e71a3cac1b3d (bug 1005818) 2014-08-19 15:05:51 +01:00