--- /dev/null
+This project is subject to the terms of the Mozilla Public License, v. 2.0
+(MPL2).
+MPL2 applies per file so there is a license boilerplate in every file pointing
+to the license.
+See http://mozilla.org/MPL/2.0/.
\ No newline at end of file
--- /dev/null
+This web app, intended for testers, makes crash reports submitted by a Firefox
+OS device accessible.
+
+This app is destined to be listed in the Firefox Marketplace,
+but not developed far enough yet.
+
+The main repo is http://git-public.kairo.at/?p=aboutcrashes.git;a=summary but
+it's listed on GitHub at https://github.com/KaiRo-at/aboutcrashes for
+convenience for potential contributors. See the TODO for tasks that you can help
+with.
+
+Please don't use GitHub for issue tracking but http://bugzilla.kairo.at/
--- /dev/null
+Tasks to complete for About Crashes:
+
+* Make it work
--- /dev/null
+<!-- This Source Code Form is subject to the terms of the Mozilla Public
+ - License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ - You can obtain one at http://mozilla.org/MPL/2.0/. -->
+
+<!DOCTYPE html>
+<html manifest="manifest.appcache">
+<head>
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
+ <!-- try to get 1:1 scaling on mobile, see
+ https://developer.mozilla.org/en/Mobile/Viewport_meta_tag -->
+ <meta name="viewport" content="width=device-width, height=device-height">
+ <title>About Crashes</title>
+ <script src="js/aboutcrashes.js"></script>
+ <link rel="stylesheet" href="style/aboutcrashes.css">
+ <link rel="shortcut icon" href="style/icon32.png" type="image/png">
+</head>
+<body id="body">
+<h1>About Crashes</h1>
+
+<ul id="crashlist">
+</ul>
+
+<p id="error">
+</p>
+
+</body>
+</html>
--- /dev/null
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+window.onload = function() {
+ setTimeout(loadCrashes, 0);
+}
+
+function loadCrashes() {
+ if (navigator.getDeviceStorage) {
+ var storage = navigator.getDeviceStorage("apps");
+ if (storage) {
+ var getRequest = storage.get("b2g/mozilla/Crash\ Reports/submitted");
+
+ getRequest.onsuccess = function() {
+ document.getElementById("error").textContent = "got access";
+ };
+ getRequest.onerror = function() {
+ var errmsg = getRequest.error && getRequest.error.name;
+ document.getElementById("error").textContent = errmsg;
+ };
+ }
+ else {
+ document.getElementById("error").textContent = "apps storage not available";
+ }
+ }
+ else {
+ document.getElementById("error").textContent = "no device storage";
+ }
+}
--- /dev/null
+CACHE MANIFEST
+
+# 2013-02-14
+manifest.webapp
+js/aboutcrashes.js
+style/aboutcrashes.css
+style/icon16.png
+style/icon32.png
+style/icon48.png
+style/icon64.png
+style/icon128.png
+
+NETWORK:
+*
--- /dev/null
+{
+ "name": "About Crashes",
+ "description": "Access crash reports submitted by your Firefox OS device.",
+ "launch_path": "/index.html",
+ "permissions": {
+ "device-storage:apps": {
+ "description": "Read crash reports on the device."
+ }
+ },
+ "developer": {
+ "name": "Robert Kaiser",
+ "url": "http://www.kairo.at/"
+ },
+ "icons": {
+ "16": "/style/icon16.png",
+ "32": "/style/icon32.png",
+ "48": "/style/icon48.png",
+ "64": "/style/icon64.png",
+ "128": "/style/icon128.png"
+ }
+}
\ No newline at end of file
--- /dev/null
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this file,
+ * You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+body {
+}
+
+h1 {
+ display: none;
+}