B2G/gecko/browser/devtools/debugger/debugger-controller.js
/**
   * Trims the url by shortening it if it exceeds a certain length, adding an
   * ellipsis at the end.
   *
   * @param string aUrl
   *        The script URL.
   * @param number aMaxLength [optional]
   *        The max string length.
   * @return string
   *         The shortened url.
   */
Trims the url by shortening it if it exceeds a certain length, adding an
ellipsis at the end.

@param string aUrl
The script URL.
@param number aMaxLength [optional]
The max string length.
@return string
The shortened url.
Trims the url by shortening it if it exceeds a certain length adding an ellipsis at the end . @param string aUrl The script URL . @param number aMaxLength [ optional ] The max string length . @return string The shortened url .
function SS_trimUrlLength(aUrl, aMaxLength = SCRIPTS_URL_MAX_LENGTH) {
    if (aUrl.length > aMaxLength) {
      let ellipsis = Services.prefs.getComplexValue("intl.ellipsis", Ci.nsIPrefLocalizedString);
      return aUrl.substring(0, aMaxLength) + ellipsis.data;
    }
    return aUrl;
  }
function SS_trimUrlLength ( aUrl , aMaxLength = SCRIPTS_URL_MAX_LENGTH ) { if ( aUrl . length > aMaxLength ) { let ellipsis = Services . prefs . getComplexValue ( "intl.ellipsis" , Ci . nsIPrefLocalizedString ) ; return aUrl . substring ( 0 , aMaxLength ) + ellipsis . data ; } return aUrl ; }
Trims the url by shortening it if it exceeds a certain length, adding an
 ellipsis at the end.
Trims the url by shortening it if it exceeds a certain length adding an ellipsis at the end .