| Index: content/browser/shared_worker/shared_worker_instance.cc
|
| diff --git a/content/browser/shared_worker/shared_worker_instance.cc b/content/browser/shared_worker/shared_worker_instance.cc
|
| index 282cf190515772755d10bb94580bbc7512bdade5..83a631cd5da8343faf30303081f529361d9a33d4 100644
|
| --- a/content/browser/shared_worker/shared_worker_instance.cc
|
| +++ b/content/browser/shared_worker/shared_worker_instance.cc
|
| @@ -57,10 +57,9 @@ bool SharedWorkerInstance::Matches(const GURL& match_url,
|
| if (url_.GetOrigin() != match_url.GetOrigin())
|
| return false;
|
|
|
| - if (name_.empty() && match_name.empty())
|
| - return url_ == match_url;
|
| -
|
| - return name_ == match_name;
|
| + if (name_ != match_name || url_ != match_url)
|
| + return false;
|
| + return true;
|
| }
|
|
|
| bool SharedWorkerInstance::Matches(const SharedWorkerInstance& other) const {
|
|
|