Skip to content

Instantly share code, notes, and snippets.

@felipc
felipc / enterprisepolicies.patch
Created November 17, 2017 02:06
First draft of an enterprise policies component
diff --git a/browser/components/enterprisepolicies/EnterprisePolicies.js b/browser/components/enterprisepolicies/EnterprisePolicies.js
new file mode 100644
--- /dev/null
+++ b/browser/components/enterprisepolicies/EnterprisePolicies.js
@@ -0,0 +1,157 @@
+/* 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/. */
+
+const Ci = Components.interfaces;
Testing infobar suppress (bug 1371819)
*** Using a fresh profile with the latest Nightly
1 - set the pref "devtools.chrome.enabled" to true
2 - Sanity check:
Visit the following websites and make sure that the infobar appears:
Testing Flash Block, Week 2:
** Using a fresh profile with Firefox 53 Release ( https://archive.mozilla.org/pub/firefox/releases/53.0/ )
(This can be tested on Nightly too, but 53 Release is preferred)
1 - set the pref "devtools.chrome.enabled" to true
2 - open Web Developer -> Browser Console
3 - Paste the following all together and press Enter.
Testing flash block:
- Using Nightly from Mar-16 or newer:
1 - set the pref "devtools.chrome.enabled" to true
2 - open Web Developer -> Browser Console
3 - Paste this giant snippet on it and press Enter: (This will remove the built-in URLs from the classifier)
Testing flash block:
1 - set the pref "devtools.chrome.enabled" to true
2 - open Web Developer -> Browser Console
3 - Paste this giant snippet on it and press Enter:
Preferences.set("browser.safebrowsing.debug", true);
Preferences.set("browser.safebrowsing.provider.mozilla.updateURL",Preferences.get("browser.safebrowsing.provider.mozilla.updateURL").replace("shavar.services.mozilla.com/", "shavar.stage.mozaws.net/"));

Essential Flash Shield Study

This Shield Study is meant to understand the use of Essential vs. Non-Essential Flash on the web, with the ultimate goal of enabling us to fine-tune allow/block lists in order to change the Click-To-Activate setting of the Flash plugin to be "Ask to Activate" by default (as opposed to "Always Allow").

This study will recruit users in the beta / release channels via the shield opt-in mechanism, and users who accept the terms will participate in the study and will submit an external telemetry ping according to the Data collection described below.

Data collection

@felipc
felipc / find-e10s-tests.js
Created December 17, 2015 23:21
Run this to generate a list of tests that are skipped on e10s. Adjust objdir and srcdir accordingly.
"use strict";
const path = require("path");
const fs = require('fs');
const objdir = "/Users/felipe/moz/mozilla-central/ff-opt/";
const srcdir = "/Users/felipe/moz/mozilla-central/mozilla/";
const flavor = process.argv[2] || "browser-chrome";
console.log("Disabled " + flavor + " tests:\n");
@felipc
felipc / gist:7456638
Created November 13, 2013 21:22
run it from obj-dir with: _virtualenv/bin/python2.7 _tests/testing/mochitest/runtests.py --chrome --test-manifest=testmanifest.json
diff --git a/testing/mochitest/Makefile.in b/testing/mochitest/Makefile.in
--- a/testing/mochitest/Makefile.in
+++ b/testing/mochitest/Makefile.in
@@ -18,16 +18,17 @@ include $(topsrcdir)/config/rules.mk
# necessary for relative objdir paths.
TARGET_DEPTH = ../../..
include $(topsrcdir)/build/automation-build.mk
# files that get copied into $objdir/_tests/
_SERV_FILES = \
@felipc
felipc / x
Created January 24, 2009 05:41
Commands for your.flowingdata.com
/***
Felipe Gomes -- felipe.wordpress.com / felipc.com
2009 GPL/MPL
Ubiquity command feed for Your.FlowingData personal data tracking experiment
***/