Bug 1359028 - added encodeURIComponent and fixed css class typo; r=pbro
The patch of bug 1353005 removed by mistake a leading dot in a css class, and the `encodeURIComponent` calls (so the # in the color definition was considered the hash part in the url). Also, it appears autoland rejected the last commit from Bug 1353005, so this patch includes those changes as well. MozReview-Commit-ID: 2aVW3hYHhSr
This commit is contained in:
@@ -730,11 +730,11 @@ function getWindowFor(node) {
|
||||
*
|
||||
* @param {DOMWindow} window
|
||||
* @param {String} url
|
||||
* @param {String} [type="author"]
|
||||
* @param {String} [type="agent"]
|
||||
*/
|
||||
function loadSheet(window, url, type = "author") {
|
||||
function loadSheet(window, url, type = "agent") {
|
||||
if (!(type in SHEET_TYPE)) {
|
||||
type = "author";
|
||||
type = "agent";
|
||||
}
|
||||
|
||||
let windowUtils = utilsFor(window);
|
||||
@@ -752,11 +752,11 @@ exports.loadSheet = loadSheet;
|
||||
*
|
||||
* @param {DOMWindow} window
|
||||
* @param {String} url
|
||||
* @param {String} [type="author"]
|
||||
* @param {String} [type="agent"]
|
||||
*/
|
||||
function removeSheet(window, url, type = "author") {
|
||||
function removeSheet(window, url, type = "agent") {
|
||||
if (!(type in SHEET_TYPE)) {
|
||||
type = "author";
|
||||
type = "agent";
|
||||
}
|
||||
|
||||
let windowUtils = utilsFor(window);
|
||||
|
||||
Reference in New Issue
Block a user