Bug 286949 [Browser] Bad usage of URL#equals(Object) in WebBrowserEditorInput
HEAD WebBrowserEditorInput#equals(..) calls URL#equals(Object), but the latter resolves the host of the URLs via DNS lookups, which is most of the time not what you want. You should instead compare the strings from URL#toExternalForm(). Furthermore, WebBrowserEditorInput should also override hashCode() (equal objects must have equal hash codes). Note that URL#hashCode() is also broken, so you should use URL#toExternalForm() there as well.
bundles/org.eclipse.ui.browser/src/org/eclipse/ui/internal/browser/WebBrowserEditorInput.java
/*******************************************************************************
 * Copyright (c) 2004, 2007 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - Initial API and implementation
 *******************************************************************************/
package org.eclipse.ui.internal.browser;
import java.net.MalformedURLException;
import java.net.URL;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.ui.IEditorInput;
import org.eclipse.ui.IElementFactory;
import org.eclipse.ui.IMemento;
import org.eclipse.ui.IPersistableElement;
import org.eclipse.ui.browser.IWorkbenchBrowserSupport;
/**
 * The editor input for the integrated web browser.
 */
public class WebBrowserEditorInput implements IEditorInput,