Index: url/origin.cc |
diff --git a/url/origin.cc b/url/origin.cc |
index e449532791a9ecf2ccd53659cf1c912ded682f8d..d09fdbcef2f617ec380fca2bf83cc8b3e3a0ae6c 100644 |
--- a/url/origin.cc |
+++ b/url/origin.cc |
@@ -160,6 +160,9 @@ GURL Origin::GetURL() const { |
} |
bool Origin::IsSameOriginWith(const Origin& other) const { |
+ if (this == &other) |
+ return true; |
+ |
if (opaque_ || other.opaque_) |
return false; |