mirror of
https://github.com/roytam1/mozilla45esr.git
synced 2026-05-26 06:25:03 +00:00
import changes from tenfourfox:
- #591: M1467722 (cfb43390a) - #591: bustage fix (bbc9a12a5) - #592: implement CSSStyleSheet rules and addRule (2eb5ba7f6) - #588: increase latency of search a little more (ddd1b9aab) - #541: more disgusting hacks to fix jsfiddle (1f3d8fcbe) - more hosts for adblock (1cdef889b) - #593: M1607742 M1684490 + updated TLDs, pins, HSTS (67706e1f6)
This commit is contained in:
@@ -294,7 +294,7 @@ pref("browser.urlbar.maxRichResults", 6);
|
||||
// The amount of time (ms) to wait after the user has stopped typing
|
||||
// before starting to perform autocomplete. 50 is the default set in
|
||||
// autocomplete.xml.
|
||||
pref("browser.urlbar.delay", 100);
|
||||
pref("browser.urlbar.delay", 250);
|
||||
|
||||
// The special characters below can be typed into the urlbar to either restrict
|
||||
// the search to visited history, bookmarked, tagged pages; or force a match on
|
||||
|
||||
@@ -990,6 +990,7 @@ nsScriptSecurityManager::CheckLoadURIWithPrincipal(nsIPrincipal* aPrincipal,
|
||||
BLOK("c.fqtag.com") ||
|
||||
BLOK("new.fqtag.com") ||
|
||||
|
||||
BLOK("tag.1rx.io") ||
|
||||
BLOK("a-nj.1rx.io") ||
|
||||
BLOK("rxcdn.1rx.io") ||
|
||||
|
||||
@@ -1111,6 +1112,7 @@ nsScriptSecurityManager::CheckLoadURIWithPrincipal(nsIPrincipal* aPrincipal,
|
||||
BLOK("js.gumgum.com") ||
|
||||
|
||||
BLOK("cdn.digitru.st") ||
|
||||
BLOK("prebid.digitru.st") ||
|
||||
|
||||
BLOK("collector.cint.com") ||
|
||||
|
||||
@@ -1185,6 +1187,25 @@ nsScriptSecurityManager::CheckLoadURIWithPrincipal(nsIPrincipal* aPrincipal,
|
||||
|
||||
BLOK("tag.crsspxl.com") ||
|
||||
|
||||
BLOK("a.pub.network") ||
|
||||
BLOK("a.publir.com") ||
|
||||
|
||||
BLOK("eb.proper.io") ||
|
||||
BLOK("s2s.proper.io") ||
|
||||
BLOK("bids.proper.io") ||
|
||||
BLOK("events.proper.io") ||
|
||||
BLOK("global.proper.io") ||
|
||||
BLOK("propermedia-d.openx.net") ||
|
||||
|
||||
BLOK("stat.media") ||
|
||||
|
||||
BLOK("c.jsrdn.com") ||
|
||||
BLOK("s.jsrdn.com") ||
|
||||
|
||||
BLOK("hb.emxdgt.com") ||
|
||||
|
||||
BLOK("lockerdome.com") ||
|
||||
|
||||
#include "shavar-blocklist.h"
|
||||
|
||||
0) {
|
||||
|
||||
@@ -63,6 +63,18 @@ this.Curl = {
|
||||
let utils = CurlUtils;
|
||||
|
||||
let command = ["curl"];
|
||||
|
||||
// Make sure to use the following helpers to sanitize arguments before execution.
|
||||
const addParam = value => {
|
||||
const safe = /^[a-zA-Z-]+$/.test(value) ? value : escapeString(value);
|
||||
command.push(safe);
|
||||
};
|
||||
|
||||
const addPostData = value => {
|
||||
const safe = /^[a-zA-Z-]+$/.test(value) ? value : escapeString(value);
|
||||
data.push(safe);
|
||||
};
|
||||
|
||||
let ignoredHeaders = new Set();
|
||||
|
||||
// The cURL command is expected to run on the same platform that Firefox runs
|
||||
@@ -71,7 +83,7 @@ this.Curl = {
|
||||
utils.escapeStringWin : utils.escapeStringPosix;
|
||||
|
||||
// Add URL.
|
||||
command.push(escapeString(aData.url));
|
||||
addParam(aData.url);
|
||||
|
||||
let postDataText = null;
|
||||
let multipartRequest = utils.isMultipartRequest(aData);
|
||||
@@ -80,15 +92,15 @@ this.Curl = {
|
||||
let data = [];
|
||||
if (utils.isUrlEncodedRequest(aData) || aData.method == "PUT") {
|
||||
postDataText = aData.postDataText;
|
||||
data.push("--data");
|
||||
data.push(escapeString(utils.writePostDataTextParams(postDataText)));
|
||||
addPostData("--data");
|
||||
addPostData(utils.writePostDataTextParams(postDataText));
|
||||
ignoredHeaders.add("Content-Length");
|
||||
} else if (multipartRequest) {
|
||||
postDataText = aData.postDataText;
|
||||
data.push("--data-binary");
|
||||
addPostData("--data-binary");
|
||||
let boundary = utils.getMultipartBoundary(aData);
|
||||
let text = utils.removeBinaryDataFromMultipartText(postDataText, boundary);
|
||||
data.push(escapeString(text));
|
||||
addPostData(text);
|
||||
ignoredHeaders.add("Content-Length");
|
||||
}
|
||||
|
||||
@@ -96,20 +108,20 @@ this.Curl = {
|
||||
// For GET and POST requests this is not necessary as GET is the
|
||||
// default. If --data or --binary is added POST is the default.
|
||||
if (!(aData.method == "GET" || aData.method == "POST")) {
|
||||
command.push("-X");
|
||||
command.push(aData.method);
|
||||
addParam("-X");
|
||||
addParam(aData.method);
|
||||
}
|
||||
|
||||
// Add -I (HEAD)
|
||||
// For servers that supports HEAD.
|
||||
// This will fetch the header of a document only.
|
||||
if (aData.method == "HEAD") {
|
||||
command.push("-I");
|
||||
addParam("-I");
|
||||
}
|
||||
|
||||
// Add http version.
|
||||
if (aData.httpVersion && aData.httpVersion != DEFAULT_HTTP_VERSION) {
|
||||
command.push("--" + aData.httpVersion.split("/")[1]);
|
||||
addParam("--" + aData.httpVersion.split("/")[1]);
|
||||
}
|
||||
|
||||
// Add request headers.
|
||||
@@ -121,14 +133,14 @@ this.Curl = {
|
||||
for (let i = 0; i < headers.length; i++) {
|
||||
let header = headers[i];
|
||||
if (header.name === "Accept-Encoding"){
|
||||
command.push("--compressed");
|
||||
addParam("--compressed");
|
||||
continue;
|
||||
}
|
||||
if (ignoredHeaders.has(header.name)) {
|
||||
continue;
|
||||
}
|
||||
command.push("-H");
|
||||
command.push(escapeString(header.name + ": " + header.value));
|
||||
addParam("-H");
|
||||
addParam(header.name + ": " + header.value);
|
||||
}
|
||||
|
||||
// Add post data.
|
||||
|
||||
@@ -10009,36 +10009,12 @@ nsGlobalWindow::GetComputedStyleHelperOuter(Element& aElt,
|
||||
{
|
||||
MOZ_RELEASE_ASSERT(IsOuterWindow());
|
||||
|
||||
if (!mDocShell) {
|
||||
if (!mDoc) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
nsCOMPtr<nsIPresShell> presShell = mDocShell->GetPresShell();
|
||||
|
||||
if (!presShell) {
|
||||
// Try flushing frames on our parent in case there's a pending
|
||||
// style change that will create the presshell.
|
||||
nsGlobalWindow *parent =
|
||||
static_cast<nsGlobalWindow *>(GetPrivateParent());
|
||||
if (!parent) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
parent->FlushPendingNotifications(Flush_Frames);
|
||||
|
||||
// Might have killed mDocShell
|
||||
if (!mDocShell) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
presShell = mDocShell->GetPresShell();
|
||||
if (!presShell) {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
RefPtr<nsComputedDOMStyle> compStyle =
|
||||
NS_NewComputedDOMStyle(&aElt, aPseudoElt, presShell,
|
||||
NS_NewComputedDOMStyle(&aElt, aPseudoElt, mDoc,
|
||||
aDefaultStylesOnly ? nsComputedDOMStyle::eDefaultOnly :
|
||||
nsComputedDOMStyle::eAll);
|
||||
|
||||
|
||||
@@ -38,14 +38,8 @@ GetCSSComputedValue(Element* aElem,
|
||||
return false;
|
||||
}
|
||||
|
||||
nsIPresShell* shell = doc->GetShell();
|
||||
if (!shell) {
|
||||
NS_WARNING("Unable to look up computed style -- no pres shell");
|
||||
return false;
|
||||
}
|
||||
|
||||
RefPtr<nsComputedDOMStyle> computedStyle =
|
||||
NS_NewComputedDOMStyle(aElem, EmptyString(), shell);
|
||||
NS_NewComputedDOMStyle(aElem, EmptyString(), doc);
|
||||
|
||||
computedStyle->GetPropertyValue(aPropID, aResult);
|
||||
return true;
|
||||
|
||||
@@ -18,4 +18,12 @@ interface CSSStyleSheet : StyleSheet {
|
||||
unsigned long insertRule(DOMString rule, optional unsigned long index = 0);
|
||||
[Throws]
|
||||
void deleteRule(unsigned long index);
|
||||
|
||||
// Non-standard WebKit things, see https://github.com/w3c/csswg-drafts/pull/3900.
|
||||
[Throws, BinaryName="cssRules"]
|
||||
readonly attribute CSSRuleList rules;
|
||||
[Throws, BinaryName="deleteRule"]
|
||||
void removeRule(optional unsigned long index = 0);
|
||||
[Throws]
|
||||
long addRule(optional DOMString selector = "undefined", optional DOMString style = "undefined", optional unsigned long index);
|
||||
};
|
||||
|
||||
@@ -537,11 +537,8 @@ nsHTMLCSSUtils::GetComputedStyle(dom::Element* aElement)
|
||||
nsIDocument* doc = aElement->GetCurrentDoc();
|
||||
NS_ENSURE_TRUE(doc, nullptr);
|
||||
|
||||
nsIPresShell* presShell = doc->GetShell();
|
||||
NS_ENSURE_TRUE(presShell, nullptr);
|
||||
|
||||
RefPtr<nsComputedDOMStyle> style =
|
||||
NS_NewComputedDOMStyle(aElement, EmptyString(), presShell);
|
||||
NS_NewComputedDOMStyle(aElement, EmptyString(), doc);
|
||||
|
||||
return style.forget();
|
||||
}
|
||||
|
||||
@@ -1260,10 +1260,11 @@ CheckSetConstOp(JSOp op, ParseNode* pn)
|
||||
case JSOP_INITLEXICAL: case JSOP_INITALIASEDLEXICAL: break;
|
||||
#if (0) // flip this for confidence testing
|
||||
case JSOP_SETLOCAL: return JSOP_THROWSETCONST;
|
||||
case JSOP_SETALIASEDVAR: return JSOP_THROWSETALIASEDCONST;
|
||||
#else
|
||||
case JSOP_SETLOCAL: break;
|
||||
case JSOP_SETALIASEDVAR: break;
|
||||
#endif
|
||||
case JSOP_SETALIASEDVAR: return JSOP_THROWSETALIASEDCONST;
|
||||
default: MOZ_CRASH("unexpected set var op");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1918,6 +1918,40 @@ CSSStyleSheet::InsertRule(const nsAString& aRule,
|
||||
return InsertRuleInternal(aRule, aIndex, aReturn);
|
||||
}
|
||||
|
||||
/* TenFourFox issue 592 */
|
||||
int32_t
|
||||
CSSStyleSheet::AddRule(const nsAString& aSelector, const nsAString& aBlock,
|
||||
const Optional<uint32_t>& aIndex, ErrorResult& aRv)
|
||||
{
|
||||
uint32_t index;
|
||||
if (aIndex.WasPassed()) {
|
||||
index = aIndex.Value();
|
||||
} else {
|
||||
CSSRuleList* collection = GetCssRules(aRv);
|
||||
if (!collection) {
|
||||
// Must have thrown.
|
||||
return -1;
|
||||
}
|
||||
index = collection->Length();
|
||||
}
|
||||
|
||||
nsAutoString rule;
|
||||
rule.Append(aSelector);
|
||||
rule.AppendLiteral(" { ");
|
||||
if (!aBlock.IsEmpty()) {
|
||||
rule.Append(aBlock);
|
||||
rule.Append(' ');
|
||||
}
|
||||
rule.Append('}');
|
||||
|
||||
uint32_t retval; // unused
|
||||
nsresult rv = InsertRuleInternal(rule, index, &retval);
|
||||
if (NS_FAILED(rv)) aRv.Throw(rv);
|
||||
|
||||
// As per Microsoft documentation, always return -1.
|
||||
return -1;
|
||||
}
|
||||
|
||||
static bool
|
||||
RuleHasPendingChildSheet(css::Rule *cssRule)
|
||||
{
|
||||
|
||||
@@ -320,6 +320,8 @@ public:
|
||||
void DeleteRule(uint32_t aIndex, ErrorResult& aRv) {
|
||||
aRv = DeleteRule(aIndex);
|
||||
}
|
||||
int32_t AddRule(const nsAString& aSelector, const nsAString& aBlock,
|
||||
const dom::Optional<uint32_t>& aIndex, ErrorResult& aRv);
|
||||
|
||||
// WebIDL miscellaneous bits
|
||||
dom::ParentObject GetParentObject() const {
|
||||
|
||||
@@ -63,13 +63,13 @@ using namespace mozilla::dom;
|
||||
*/
|
||||
|
||||
already_AddRefed<nsComputedDOMStyle>
|
||||
NS_NewComputedDOMStyle(dom::Element* aElement, const nsAString& aPseudoElt,
|
||||
nsIPresShell* aPresShell,
|
||||
NS_NewComputedDOMStyle(dom::Element* aElement,
|
||||
const nsAString& aPseudoElt,
|
||||
nsIDocument* aDocument,
|
||||
nsComputedDOMStyle::StyleType aStyleType)
|
||||
{
|
||||
RefPtr<nsComputedDOMStyle> computedStyle;
|
||||
computedStyle = new nsComputedDOMStyle(aElement, aPseudoElt, aPresShell,
|
||||
aStyleType);
|
||||
computedStyle = new nsComputedDOMStyle(aElement, aPseudoElt, aDocument, aStyleType);
|
||||
return computedStyle.forget();
|
||||
}
|
||||
|
||||
@@ -219,7 +219,7 @@ nsComputedStyleMap::Update()
|
||||
|
||||
nsComputedDOMStyle::nsComputedDOMStyle(dom::Element* aElement,
|
||||
const nsAString& aPseudoElt,
|
||||
nsIPresShell* aPresShell,
|
||||
nsIDocument* aDocument,
|
||||
StyleType aStyleType)
|
||||
: mDocumentWeak(nullptr), mOuterFrame(nullptr),
|
||||
mInnerFrame(nullptr), mPresShell(nullptr),
|
||||
@@ -228,11 +228,13 @@ nsComputedDOMStyle::nsComputedDOMStyle(dom::Element* aElement,
|
||||
mExposeVisitedStyle(false),
|
||||
mResolvedStyleContext(false)
|
||||
{
|
||||
MOZ_ASSERT(aElement && aPresShell);
|
||||
MOZ_ASSERT(aElement);
|
||||
MOZ_ASSERT(aDocument);
|
||||
// TODO(emilio, bug 548397, https://github.com/w3c/csswg-drafts/issues/2403):
|
||||
// Should use aElement->OwnerDoc() instead.
|
||||
mDocumentWeak = do_GetWeakReference(aDocument);
|
||||
|
||||
mDocumentWeak = do_GetWeakReference(aPresShell->GetDocument());
|
||||
|
||||
mContent = aElement;
|
||||
mElement = aElement;
|
||||
|
||||
if (!DOMStringIsNull(aPseudoElt) && !aPseudoElt.IsEmpty() &&
|
||||
aPseudoElt.First() == char16_t(':')) {
|
||||
@@ -259,11 +261,8 @@ nsComputedDOMStyle::nsComputedDOMStyle(dom::Element* aElement,
|
||||
mPseudo = nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
MOZ_ASSERT(aPresShell->GetPresContext());
|
||||
}
|
||||
|
||||
|
||||
nsComputedDOMStyle::~nsComputedDOMStyle()
|
||||
{
|
||||
ClearStyleContext();
|
||||
@@ -272,13 +271,13 @@ nsComputedDOMStyle::~nsComputedDOMStyle()
|
||||
NS_IMPL_CYCLE_COLLECTION_CLASS(nsComputedDOMStyle)
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK_BEGIN(nsComputedDOMStyle)
|
||||
tmp->ClearStyleContext(); // remove observer before clearing mContent
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK(mContent)
|
||||
tmp->ClearStyleContext(); // remove observer before clearing mElement
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK(mElement)
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK_PRESERVED_WRAPPER
|
||||
NS_IMPL_CYCLE_COLLECTION_UNLINK_END
|
||||
|
||||
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_BEGIN(nsComputedDOMStyle)
|
||||
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mContent)
|
||||
NS_IMPL_CYCLE_COLLECTION_TRAVERSE(mElement)
|
||||
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_SCRIPT_OBJECTS
|
||||
NS_IMPL_CYCLE_COLLECTION_TRAVERSE_END
|
||||
|
||||
@@ -345,8 +344,6 @@ nsComputedDOMStyle::SetCssText(const nsAString& aCssText)
|
||||
NS_IMETHODIMP
|
||||
nsComputedDOMStyle::GetLength(uint32_t* aLength)
|
||||
{
|
||||
NS_PRECONDITION(aLength, "Null aLength! Prepare to die!");
|
||||
|
||||
uint32_t length = GetComputedStyleMap()->Length();
|
||||
|
||||
// Make sure we have up to date style so that we can include custom
|
||||
@@ -354,6 +351,8 @@ nsComputedDOMStyle::GetLength(uint32_t* aLength)
|
||||
UpdateCurrentStyleSources(false);
|
||||
if (mStyleContext) {
|
||||
length += StyleVariables()->mVariables.Count();
|
||||
} else {
|
||||
length = 0;
|
||||
}
|
||||
|
||||
*aLength = length;
|
||||
@@ -599,7 +598,7 @@ nsComputedDOMStyle::ClearStyleContext()
|
||||
{
|
||||
if (mResolvedStyleContext) {
|
||||
mResolvedStyleContext = false;
|
||||
mContent->RemoveMutationObserver(this);
|
||||
mElement->RemoveMutationObserver(this);
|
||||
}
|
||||
mStyleContext = nullptr;
|
||||
}
|
||||
@@ -609,7 +608,7 @@ nsComputedDOMStyle::SetResolvedStyleContext(RefPtr<nsStyleContext>&& aContext)
|
||||
{
|
||||
if (!mResolvedStyleContext) {
|
||||
mResolvedStyleContext = true;
|
||||
mContent->AddMutationObserver(this);
|
||||
mElement->AddMutationObserver(this);
|
||||
}
|
||||
mStyleContext = aContext;
|
||||
}
|
||||
@@ -634,7 +633,7 @@ nsComputedDOMStyle::UpdateCurrentStyleSources(bool aNeedsLayoutFlush)
|
||||
|
||||
// Flush _before_ getting the presshell, since that could create a new
|
||||
// presshell. Also note that we want to flush the style on the document
|
||||
// we're computing style in, not on the document mContent is in -- the two
|
||||
// we're computing style in, not on the document mElement is in -- the two
|
||||
// may be different.
|
||||
document->FlushPendingNotifications(
|
||||
aNeedsLayoutFlush ? Flush_Layout : Flush_Style);
|
||||
@@ -642,7 +641,7 @@ nsComputedDOMStyle::UpdateCurrentStyleSources(bool aNeedsLayoutFlush)
|
||||
mFlushedPendingReflows = aNeedsLayoutFlush;
|
||||
#endif
|
||||
|
||||
nsCOMPtr<nsIPresShell> presShellForContent = GetPresShellForContent(mContent);
|
||||
nsCOMPtr<nsIPresShell> presShellForContent = GetPresShellForContent(mElement);
|
||||
if (presShellForContent && presShellForContent != mPresShell) {
|
||||
presShellForContent->FlushPendingNotifications(Flush_Style);
|
||||
}
|
||||
@@ -657,7 +656,11 @@ nsComputedDOMStyle::UpdateCurrentStyleSources(bool aNeedsLayoutFlush)
|
||||
mPresShell->GetPresContext()->GetRestyleGeneration();
|
||||
|
||||
if (mStyleContext) {
|
||||
if (mStyleContextGeneration == currentGeneration) {
|
||||
// We can't rely on the undisplayed restyle generation if mElement is
|
||||
// out-of-document, since that generation is not incremented for DOM changes
|
||||
// on out-of-document elements.
|
||||
if (mStyleContextGeneration == currentGeneration &&
|
||||
mElement->IsInComposedDoc()) {
|
||||
// Our cached style context is still valid.
|
||||
return;
|
||||
}
|
||||
@@ -666,12 +669,12 @@ nsComputedDOMStyle::UpdateCurrentStyleSources(bool aNeedsLayoutFlush)
|
||||
mStyleContext = nullptr;
|
||||
}
|
||||
|
||||
// XXX the !mContent->IsHTMLElement(nsGkAtoms::area)
|
||||
// XXX the !mElement->IsHTMLElement(nsGkAtoms::area)
|
||||
// check is needed due to bug 135040 (to avoid using
|
||||
// mPrimaryFrame). Remove it once that's fixed.
|
||||
if (!mPseudo && mStyleType == eAll &&
|
||||
!mContent->IsHTMLElement(nsGkAtoms::area)) {
|
||||
mOuterFrame = mContent->GetPrimaryFrame();
|
||||
!mElement->IsHTMLElement(nsGkAtoms::area)) {
|
||||
mOuterFrame = mElement->GetPrimaryFrame();
|
||||
mInnerFrame = mOuterFrame;
|
||||
if (mOuterFrame) {
|
||||
nsIAtom* type = mOuterFrame->GetType();
|
||||
@@ -715,7 +718,7 @@ nsComputedDOMStyle::UpdateCurrentStyleSources(bool aNeedsLayoutFlush)
|
||||
// Need to resolve a style context
|
||||
RefPtr<nsStyleContext> resolvedStyleContext =
|
||||
nsComputedDOMStyle::GetStyleContextForElementNoFlush(
|
||||
mContent->AsElement(),
|
||||
mElement,
|
||||
mPseudo,
|
||||
presShellForContent ? presShellForContent.get() : mPresShell,
|
||||
mStyleType);
|
||||
@@ -808,7 +811,6 @@ nsComputedDOMStyle::GetPropertyCSSValue(const nsAString& aPropertyName, ErrorRes
|
||||
|
||||
UpdateCurrentStyleSources(needsLayoutFlush);
|
||||
if (!mStyleContext) {
|
||||
aRv.Throw(NS_ERROR_NOT_AVAILABLE);
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@@ -4866,7 +4868,7 @@ nsComputedDOMStyle::GetLineHeightCoord(nscoord& aCoord)
|
||||
|
||||
// lie about font size inflation since we lie about font size (since
|
||||
// the inflation only applies to text)
|
||||
aCoord = nsHTMLReflowState::CalcLineHeight(mContent, mStyleContext,
|
||||
aCoord = nsHTMLReflowState::CalcLineHeight(mElement, mStyleContext,
|
||||
blockHeight, 1.0f);
|
||||
|
||||
// CalcLineHeight uses font->mFont.size, but we want to use
|
||||
@@ -6228,7 +6230,7 @@ nsComputedDOMStyle::DoGetCustomProperty(const nsAString& aPropertyName)
|
||||
void
|
||||
nsComputedDOMStyle::ParentChainChanged(nsIContent* aContent)
|
||||
{
|
||||
NS_ASSERTION(mContent == aContent, "didn't we register mContent?");
|
||||
NS_ASSERTION(mElement == aContent, "didn't we register mElement?");
|
||||
NS_ASSERTION(mResolvedStyleContext,
|
||||
"should have only registered an observer when "
|
||||
"mResolvedStyleContext is true");
|
||||
|
||||
@@ -70,12 +70,12 @@ public:
|
||||
|
||||
nsComputedDOMStyle(mozilla::dom::Element* aElement,
|
||||
const nsAString& aPseudoElt,
|
||||
nsIPresShell* aPresShell,
|
||||
nsIDocument* aDocument,
|
||||
StyleType aStyleType);
|
||||
|
||||
virtual nsINode *GetParentObject() override
|
||||
nsINode *GetParentObject() override
|
||||
{
|
||||
return mContent;
|
||||
return reinterpret_cast<nsINode*>(mElement.get());
|
||||
}
|
||||
|
||||
static already_AddRefed<nsStyleContext>
|
||||
@@ -614,9 +614,9 @@ private:
|
||||
|
||||
// We don't really have a good immutable representation of "presentation".
|
||||
// Given the way GetComputedStyle is currently used, we should just grab the
|
||||
// 0th presshell, if any, from the document.
|
||||
// presshell, if any, from the document.
|
||||
nsWeakPtr mDocumentWeak;
|
||||
nsCOMPtr<nsIContent> mContent;
|
||||
RefPtr<mozilla::dom::Element> mElement;
|
||||
|
||||
/**
|
||||
* Strong reference to the style context we access data from. This can be
|
||||
@@ -682,7 +682,7 @@ private:
|
||||
already_AddRefed<nsComputedDOMStyle>
|
||||
NS_NewComputedDOMStyle(mozilla::dom::Element* aElement,
|
||||
const nsAString& aPseudoElt,
|
||||
nsIPresShell* aPresShell,
|
||||
nsIDocument* aDocument,
|
||||
nsComputedDOMStyle::StyleType aStyleType =
|
||||
nsComputedDOMStyle::eAll);
|
||||
|
||||
|
||||
@@ -982,8 +982,19 @@ fi
|
||||
// TODO: Check for updates (expected to be phased out around Q1/2009)
|
||||
aland.fi
|
||||
|
||||
// fj : https://en.wikipedia.org/wiki/.fj
|
||||
*.fj
|
||||
// fj : http://domains.fj/
|
||||
// Submitted by registry <garth.miller@cocca.org.nz> 2020-02-11
|
||||
fj
|
||||
ac.fj
|
||||
biz.fj
|
||||
com.fj
|
||||
gov.fj
|
||||
info.fj
|
||||
mil.fj
|
||||
name.fj
|
||||
net.fj
|
||||
org.fj
|
||||
pro.fj
|
||||
|
||||
// fk : https://en.wikipedia.org/wiki/.fk
|
||||
*.fk
|
||||
@@ -7074,7 +7085,7 @@ org.zw
|
||||
|
||||
// newGTLDs
|
||||
|
||||
// List of new gTLDs imported from https://www.icann.org/resources/registries/gtlds/v2/gtlds.json on 2020-02-01T17:46:27Z
|
||||
// List of new gTLDs imported from https://www.icann.org/resources/registries/gtlds/v2/gtlds.json on 2020-02-06T17:49:42Z
|
||||
// This list is auto-generated, don't edit it manually.
|
||||
// aaa : 2015-02-26 American Automobile Association, Inc.
|
||||
aaa
|
||||
@@ -10532,7 +10543,7 @@ xin
|
||||
// xn--nyqy26a : 2014-11-07 Stable Tone Limited
|
||||
健康
|
||||
|
||||
// xn--otu796d : 2017-08-06 Internet DotTrademark Organisation Limited
|
||||
// xn--otu796d : 2017-08-06 Jiang Yu Liang Cai Technology Company Limited
|
||||
招聘
|
||||
|
||||
// xn--p1acf : 2013-12-12 Rusnames Limited
|
||||
|
||||
@@ -85,6 +85,7 @@ nsFtpState::nsFtpState()
|
||||
, mAnonymous(true)
|
||||
, mRetryPass(false)
|
||||
, mStorReplyReceived(false)
|
||||
, mRlist1xxReceived(false)
|
||||
, mInternalError(NS_OK)
|
||||
, mReconnectAndLoginAgain(false)
|
||||
, mCacheConnection(true)
|
||||
@@ -1187,15 +1188,18 @@ nsFtpState::S_list() {
|
||||
FTP_STATE
|
||||
nsFtpState::R_list() {
|
||||
if (mResponseCode/100 == 1) {
|
||||
mRlist1xxReceived = true;
|
||||
|
||||
// OK, time to start reading from the data connection.
|
||||
if (mDataStream && HasPendingCallback())
|
||||
mDataStream->AsyncWait(this, 0, 0, CallbackTarget());
|
||||
return FTP_READ_BUF;
|
||||
}
|
||||
|
||||
if (mResponseCode/100 == 2) {
|
||||
if (mResponseCode/100 == 2 && mRlist1xxReceived) {
|
||||
//(DONE)
|
||||
mNextState = FTP_COMPLETE;
|
||||
mRlist1xxReceived = false;
|
||||
return FTP_COMPLETE;
|
||||
}
|
||||
return FTP_ERROR;
|
||||
|
||||
@@ -185,6 +185,8 @@ private:
|
||||
bool mRetryPass; // retrying the password
|
||||
bool mStorReplyReceived; // FALSE if waiting for STOR
|
||||
// completion status from server
|
||||
bool mRlist1xxReceived; // TRUE if we have received a LIST
|
||||
// 1xx response from the server
|
||||
nsresult mInternalError; // represents internal state errors
|
||||
bool mReconnectAndLoginAgain;
|
||||
bool mCacheConnection;
|
||||
|
||||
@@ -686,7 +686,6 @@ static const TransportSecurityPreload kPublicKeyPinningPreloadList[] = {
|
||||
{ "chrome-devtools-frontend.appspot.com", true, false, false, -1, &kPinset_google_root_pems },
|
||||
{ "chrome.com", true, false, false, -1, &kPinset_google_root_pems },
|
||||
{ "chrome.google.com", true, false, false, -1, &kPinset_google_root_pems },
|
||||
{ "chromereporting-pa.googleapis.com", true, false, false, -1, &kPinset_google_root_pems },
|
||||
{ "chromiumbugs.appspot.com", true, false, false, -1, &kPinset_google_root_pems },
|
||||
{ "chromiumcodereview.appspot.com", true, false, false, -1, &kPinset_google_root_pems },
|
||||
{ "cl.search.yahoo.com", false, true, false, -1, &kPinset_yahoo },
|
||||
@@ -1083,7 +1082,6 @@ static const TransportSecurityPreload kPublicKeyPinningPreloadList[] = {
|
||||
{ "torproject.org", false, false, false, -1, &kPinset_tor },
|
||||
{ "touch.facebook.com", true, false, false, -1, &kPinset_facebook },
|
||||
{ "tr.search.yahoo.com", false, true, false, -1, &kPinset_yahoo },
|
||||
{ "translate.googleapis.com", true, false, false, -1, &kPinset_google_root_pems },
|
||||
{ "tv.search.yahoo.com", false, true, false, -1, &kPinset_yahoo },
|
||||
{ "tw.search.yahoo.com", false, true, false, -1, &kPinset_yahoo },
|
||||
{ "twimg.com", true, false, false, -1, &kPinset_twitterCDN },
|
||||
@@ -1133,8 +1131,8 @@ static const TransportSecurityPreload kPublicKeyPinningPreloadList[] = {
|
||||
{ "zh.search.yahoo.com", false, true, false, -1, &kPinset_yahoo },
|
||||
};
|
||||
|
||||
// Pinning Preload List Length = 488;
|
||||
// Pinning Preload List Length = 486;
|
||||
|
||||
static const int32_t kUnknownId = -1;
|
||||
|
||||
static const PRTime kPreloadPKPinsExpirationTime = INT64_C(1588253180115000);
|
||||
static const PRTime kPreloadPKPinsExpirationTime = INT64_C(1590413552686000);
|
||||
|
||||
+2674
-1655
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user