|
@@ -1,11 +1,11 @@
|
|
|
-commit 39ee52cbd24fe20205f146873dddb4063b80f546
|
|
|
+commit 07e215b4aaeb690d669dbc3ec8f4bce1b3df26d7
|
|
|
Author: csagan5 <32685696+csagan5@users.noreply.github.com>
|
|
|
Date: Sat Oct 28 10:09:41 2017 +0200
|
|
|
|
|
|
- Do not track google search results clicks, remove AMP
|
|
|
+ Do not track google search results clicks
|
|
|
|
|
|
diff --git a/third_party/WebKit/Source/core/dom/BUILD.gn b/third_party/WebKit/Source/core/dom/BUILD.gn
|
|
|
-index b636bb4..d2e30a1 100644
|
|
|
+index c069931..c458fef 100644
|
|
|
--- a/third_party/WebKit/Source/core/dom/BUILD.gn
|
|
|
+++ b/third_party/WebKit/Source/core/dom/BUILD.gn
|
|
|
@@ -344,6 +344,7 @@ blink_core_sources("dom") {
|
|
@@ -17,10 +17,10 @@ index b636bb4..d2e30a1 100644
|
|
|
"ng/flat_tree_traversal_ng.h",
|
|
|
"trustedtypes/TrustedHTML.cpp",
|
|
|
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
|
|
|
-index b53451c..ecfa473 100644
|
|
|
+index 9b88b42..89ae8df 100644
|
|
|
--- a/third_party/WebKit/Source/core/dom/Document.cpp
|
|
|
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
|
|
-@@ -218,6 +218,7 @@
|
|
|
+@@ -219,6 +219,7 @@
|
|
|
#include "core/xml/parser/XMLDocumentParser.h"
|
|
|
#include "core/xml_names.h"
|
|
|
#include "core/xmlns_names.h"
|
|
@@ -28,7 +28,7 @@ index b53451c..ecfa473 100644
|
|
|
#include "platform/CrossThreadFunctional.h"
|
|
|
#include "platform/DateComponents.h"
|
|
|
#include "platform/EventDispatchForbiddenScope.h"
|
|
|
-@@ -5826,8 +5827,24 @@ void Document::FinishedParsing() {
|
|
|
+@@ -5785,8 +5786,24 @@ void Document::FinishedParsing() {
|
|
|
fetcher_->ClearResourcesFromPreviousFetcher();
|
|
|
}
|
|
|
|
|
@@ -45,7 +45,7 @@ index b53451c..ecfa473 100644
|
|
|
+ size_t pos = domain.Find(".google.");
|
|
|
+ auto* bodyElement = body();
|
|
|
+ if (bodyElement && (pos != WTF::kNotFound) && (domain.length() - pos - 8 < 4)) {
|
|
|
-+ LOG(INFO) << "BRM: injecting dont-track-me Javascript payload";
|
|
|
++ LOG(INFO) << "injecting dont-track-me Javascript payload";
|
|
|
+ HTMLScriptElement* e = HTMLScriptElement::Create(*this, false);
|
|
|
+ e->setText(DONT_TRACK_ME_JS);
|
|
|
+ bodyElement->AppendChild(e);
|