From 4c7e61dce089a7a6581cfe5412ffde80f1e3b6fc Mon Sep 17 00:00:00 2001 From: Kyle Machulis Date: Tue, 4 Sep 2012 11:53:47 -0700 Subject: [PATCH] Bug 764618: Remove IsOnPrefWhitelist and URIIsChromeOrInPref; r=gwagner --- content/base/public/nsContentUtils.h | 30 -------- content/base/src/nsContentUtils.cpp | 108 --------------------------- 2 files changed, 138 deletions(-) diff --git a/content/base/public/nsContentUtils.h b/content/base/public/nsContentUtils.h index 9a7e7c421909..c1bcb94b2ded 100644 --- a/content/base/public/nsContentUtils.h +++ b/content/base/public/nsContentUtils.h @@ -1988,18 +1988,6 @@ public: */ static bool IsAutocompleteEnabled(nsIDOMHTMLInputElement* aInput); - /** - * If the URI is chrome, return true unconditionarlly. - * - * Otherwise, get the contents of the given pref, and treat it as a - * comma-separated list of URIs. Return true if the given URI's prepath is - * in the list, and false otherwise. - * - * Comparisons are case-insensitive, and whitespace between elements of the - * comma-separated list is ignored. - */ - static bool URIIsChromeOrInPref(nsIURI *aURI, const char *aPref); - /** * This will parse aSource, to extract the value of the pseudo attribute * with the name specified in aName. See @@ -2077,24 +2065,6 @@ public: */ static nsresult IsUserIdle(uint32_t aRequestedIdleTimeInMS, bool* aUserIsIdle); - /** - * Takes a window and a string to check prefs against. Assumes that - * the window is an app window, and that the pref is a comma - * seperated list of app urls that have permission to use whatever - * the preference refers to (for example, does the current window - * have access to mozTelephony). Chrome is always given permissions - * for the requested preference. Sets aAllowed based on preference. - * - * @param aWindow Current window asking for preference permission - * @param aPrefURL Preference name - * @param aAllowed [out] outparam on whether or not window is allowed - * to access pref - * - * @return NS_OK on successful preference lookup, error code otherwise - */ - static nsresult IsOnPrefWhitelist(nsPIDOMWindow* aWindow, - const char* aPrefURL, bool *aAllowed); - /** * Takes a selection, and a text control element ( or