Bug 714713 - Comparison of strings using == [r=dougt]

This commit is contained in:
Mark Finkle 2012-01-03 12:19:44 -05:00
parent 307a14e959
commit 484b1cc589
2 changed files with 2 additions and 3 deletions

View File

@ -612,8 +612,7 @@ abstract public class GeckoApp
if (getLayerController().getLayerClient() != mSoftwareLayerClient)
return;
if (mLastUri == lastHistoryEntry.mUri &&
mLastTitle == lastHistoryEntry.mTitle)
if (lastHistoryEntry.mUri.equals(mLastUri))
return;
mLastViewport = mSoftwareLayerClient.getGeckoViewportMetrics().toJSON();

View File

@ -875,7 +875,7 @@ public class GeckoAppShell
}});
try {
String ret = sClipboardQueue.take();
return (ret == EMPTY_STRING ? null : ret);
return (EMPTY_STRING.equals(ret) ? null : ret);
} catch (InterruptedException ie) {}
return null;
}