Skip to content

Instantly share code, notes, and snippets.

Lloyd Hilaiel lloyd

Block or report user

Report or block lloyd

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:7559948
assertion verification, basic
✓ test idps should start up
✓ validation of basic assertion signed by IdP should succeed
✓ validation of basic assertion signed by Fallback should succeed (67ms)
✓ test idp should shut down
assertion time verification
✓ test idp should start up
✓ assertions backed by expired certificates should fail to verify
✓ assertions backed by certificates from the future should fail to verify
View 832221.patch
diff --git a/b2g/components/B2GComponents.manifest b/b2g/components/B2GComponents.manifest
index 50503cf..44f9676 100644
--- a/b2g/components/B2GComponents.manifest
+++ b/b2g/components/B2GComponents.manifest
@@ -72,6 +72,10 @@ component {637b0f77-2429-49a0-915f-abf5d0db8b9a} WebappsUpdateTimer.js
contract @mozilla.org/b2g/webapps-update-timer;1 {637b0f77-2429-49a0-915f-abf5d0db8b9a}
category update-timer WebappsUpdateTimer @mozilla.org/b2g/webapps-update-timer;1,getService,background-update-timer,webapps.update.interval,86400
+# FxAccountsUIGlue.js
+component {51875c14-91d7-4b8c-b65d-3549e101228c} FxAccountsUIGlue.js
View awesome.txt
$ adb shell time b2g-info
| megabytes |
NAME PID PPID NICE USS PSS RSS VSIZE OOM_ADJ USER
b2g 3036 1 0 50.5 52.8 58.5 156.0 0 root
(Nuwa) 3068 3036 1 4.4 5.5 11.2 51.6 2 root
Homescreen 3205 3068 18 10.1 11.4 19.6 63.7 8 app_3205
Firefox Account 3430 3068 18 4.6 5.4 12.1 56.7 12 app_3430
E-Mail 3602 3068 18 12.7 13.8 21.0 76.3 12 app_3602
Clock 3638 3068 18 9.2 10.2 17.4 69.1 12 app_3638
Mochitest 3664 3068 18 6.0 6.8 13.4 65.9 11 app_3664
View regexp.c
#include <stdio.h>
#include <regex.h>
#include <sys/types.h>
#include <stdlib.h>
#include <string.h>
char * stringarr[] = {
"817 (Calendar) S 246 112 0 0 -1 4194624 6534 0 83 0 139 8 0 0 38 18 11 0 22117 61526016 5437 4294967295 32768 34809 3204114848 3204111656 1074820320 0 0 69634 1073777896 4294967295 0 0 17 0 0 0 0 0 0",
"246 ((Nuwa)) S 112 112 0 0 -1 4194560 8245 0 33 0 108 18 0 0 21 1 13 0 1080 54116352 3415 4294967295 32768 34809 3204114848 3204111296 1074820320 0 0 69634 36072 4294967295 0 0 17 0 0 0 0 0 0",
View inari_sin_nuwa
root@android:/ # b2g-info
| megabytes |
NAME PID NICE USS PSS RSS VSIZE OOM_ADJ USER
b2g 1013 0 48.2 49.9 56.4 168.4 0 root
Homescreen 1366 18 15.6 18.0 28.2 72.7 8 app_1366
Firefox Account 1462 18 9.7 11.8 21.5 63.7 11 app_1462
Calendar 1528 18 15.4 18.1 28.7 78.1 10 app_1528
E-Mail 1573 1 20.1 22.8 33.4 78.5 2 app_1573
(Preallocated a 1618 18 11.1 13.3 22.6 63.6 10 root
View inari_con_nuwa.txt
]$ cat after.txt
Expected to read 4 fields from fscanf(/proc/1682//stat), but got 2.
| megabytes |
NAME PID NICE USS PSS RSS VSIZE OOM_ADJ USER
b2g 1646 0 48.4 50.8 60.3 171.4 0 root
1682 0 10.7 11.9 18.4 51.6 10 root
Homescreen 1806 18 15.6 17.3 25.4 72.7 8 app_1806
E-Mail 2152 18 17.9 20.6 30.8 85.2 11 app_2152
Calendar 2734 18 14.9 18.4 29.3 77.1 10 app_2734
Firefox Account 2823 1 13.8 16.4 25.6 68.5 2 app_2823
View gist:7027607
1. Deeply want to preserve the possibility of dynamic update. App abstraction helps.
2. Lots of JavaScript will love on this module. Jwcrypto, gherkin, and more. Nice to ensure memory is fully reclaimed.
3. Security isolation - content will cause messages to be passed in. I'd like to give this module minimal permissions for defense in depth.
4. Less likelyhood of crashing system app. I hear Andreas gets a little upset when we do that.
5. Short lifetime - this thing will run infrequently for short periods of time. Why use resources all the time?
@lloyd
lloyd / gist:7006453
Created Oct 16, 2013
blue sky dreaming
View gist:7006453
{
"name": "Firefox Accounts",
"description": "Firefox Accounts for FirefoxOS",
"launch_path": "/ui.html",
"type": "certified",
"developer": {
"name": "The Cloud Services Team",
"url": "https://github.com/mozilla-b2g/gaia"
},
"permissions": {
View foo.js
var x = navigator.mozId;
x.foo = "bar";
View gist:5614053
There is no voice today, we shall have an actual voice every monday from here on out.
The main news from the identity team:
Supporting FirefoxOS - Did you know Persona is how you log into your FirefoxOS device? The Identity team is working with marketplace to land final fixes in support of the FirefoxOS launch.
Emphasizing Native Support - The identity team supporting Native integrations of persona into FirefoxOS, Desktop, and Mobile has grown. Expect faster progress in making Persona a first class Firefox feature.
Stay tuned next week to learn about the latest from the PiCL effort, and how you'll be typing in your LDAP password a whole lot less.
You can’t perform that action at this time.