if (this.getContextName() === 'CONTENT_SCRIPT') {
      safari.self.addEventListener("message", function(payload) {
        if (typeof payload.name !== "undefined" && payload.name === "privlyMessage") {
          // The message is received from other than PRIVLY_APPLICATION
          callback(payload.message);