mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 20:35:50 +00:00
Bug 714713 - Comparison of strings using == [r=dougt]
This commit is contained in:
parent
307a14e959
commit
484b1cc589
@ -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();
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user