Yahoo and Facebook agreed Friday to settle a legal fight over their patent holdings, ending what was shaping up to be one of the nastier court battles in Silicon Valley in recent memory.

Under the terms of the pact, the two Internet companies will expand an existing partnership, including a deeper integration of Facebook’s tools into Yahoo’s content pages.

— From wire reports