Ignore:
Timestamp:
Jul 13, 2012, 4:08:22 PM (8 years ago)
Author:
fil@…
Message:

renommage de browserid en persona + mise a jour du js

File:
1 moved

Legend:

Unmodified
Added
Removed
  • _plugins_/authentification/browserid/trunk/javascript/persona.js

    r63443 r63445  
    11/**
    2  * Uncompressed source can be found at https://browserid.org/include.orig.js
     2 * Uncompressed source can be found at https://login.persona.org/include.orig.js
    33 *
    44 * This Source Code Form is subject to the terms of the Mozilla Public
     
    925925
    926926  if (!navigator.id.request || navigator.id._shimmed) {
    927     var ipServer = "https://browserid.org";
     927    var ipServer = "https://login.persona.org";
    928928    var userAgent = navigator.userAgent;
    929929    // We must check for both XUL and Java versions of Fennec.  Both have
     
    10701070      if (commChan) commChan.notify({ method: 'dialog_running' });
    10711071
     1072      // returnTo is used for post-email-verification redirect
     1073      if (!options.returnTo) options.returnTo = document.location.pathname;
     1074
    10721075      w = WinChan.open({
    10731076        url: ipServer + '/sign_in',
     
    11131116    navigator.id = {
    11141117      request: function(options) {
     1118        if (this != navigator.id)
     1119          throw new Error("all navigator.id calls must be made on the navigator.id object");
    11151120        options = options || {};
    11161121        checkCompat(false);
     
    11181123      },
    11191124      watch: function(options) {
     1125        if (this != navigator.id)
     1126          throw new Error("all navigator.id calls must be made on the navigator.id object");
    11201127        checkCompat(false);
    11211128        internalWatch(options);
     
    11251132      // the .onlogout observer of the .watch() api.
    11261133      logout: function(callback) {
     1134        if (this != navigator.id)
     1135          throw new Error("all navigator.id calls must be made on the navigator.id object");
    11271136        // allocate iframe if it is not allocated
    11281137        _open_hidden_iframe();
     
    11671176  }
    11681177}());
     1178
Note: See TracChangeset for help on using the changeset viewer.