×

Cross-domain communication

  • US 8,689,099 B1
  • Filed: 12/23/2010
  • Issued: 04/01/2014
  • Est. Priority Date: 12/23/2010
  • Status: Active Grant
First Claim
Patent Images

1. A non-transitory computer-readable medium embodying a program executable in a computing device, the program comprising:

  • code that determines that a message is to be sent from code executing in a first network page frame to code executing in a second network page frame, wherein the first network page frame is from a first network site, the second network page frame is from a second network site, and the first network page frame and the second network page frame are configured to be rendered together as a network page;

    code that determines whether a first domain of the first network site differs from a second domain of the second network site in response to determining that the message is to be sent from the code executing in the first network page frame to the code executing in the second network page frame;

    code that sends the message to the code executing in the second network page frame by modifying a document object model (DOM) of the second network page frame to include the message when the first domain is determined not to differ from the second domain; and

    code that, when the first domain is determined to differ from the second domain;

    dynamically generates a plurality of messenger frames in the second domain;

    encodes the message using a uniform resource locator (URL) compliant encoding;

    sends the message from the code executing in first network page frame to the code executing in second network page frame by splitting the message into a plurality of message segments based at least in part on a length of the message and embedding individual ones of the plurality of message segments in a query string portion of an address of a corresponding one of the plurality of messenger frames;

    wherein individual ones of the plurality of messenger frames corresponds to a respective iframe element in another DOM of the first network page frame; and

    wherein the code executing in the first network page frame and the code executing in the second network page frame are restricted from direct communication when the first domain is determined to differ from the second domain.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×