Skip to content
This repository has been archived by the owner on Aug 1, 2024. It is now read-only.

Commit

Permalink
Scrub a handful of internal-only URLS.
Browse files Browse the repository at this point in the history
Closes #1067.

RELNOTES: n/a
PiperOrigin-RevId: 344371305
  • Loading branch information
shicks authored and kjin committed Dec 3, 2020
1 parent f4ae8e1 commit 860dba1
Show file tree
Hide file tree
Showing 26 changed files with 41 additions and 81 deletions.
4 changes: 0 additions & 4 deletions closure/goog/crypt/hash32.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

/**
* @fileoverview Implementation of 32-bit hashing functions.
*
* This is a direct port from the Google Java Hash class
*/

goog.provide('goog.crypt.hash32');
Expand All @@ -17,15 +15,13 @@ goog.require('goog.crypt');

/**
* Default seed used during hashing, digits of pie.
* See SEED32 in http://go/base.hash.java
* @type {number}
*/
goog.crypt.hash32.SEED32 = 314159265;


/**
* Arbitrary constant used during hashing.
* See CONSTANT32 in http://go/base.hash.java
* @type {number}
*/
goog.crypt.hash32.CONSTANT32 = -1640531527;
Expand Down
3 changes: 0 additions & 3 deletions closure/goog/crypt/hash32_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@ const testSuite = goog.require('goog.testing.testSuite');

// NOTE: This test uses a custom test case, see end of script block

// Test data based on known input/output pairs generated using
// http://go/hash.java

function createByteArray(n) {
const arr = [];
for (let i = 0; i < n; i++) {
Expand Down
3 changes: 2 additions & 1 deletion closure/goog/date/daterange.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@ goog.date.DateRange.allTime = function(opt_today) {

/**
* Standard date range keys. Equivalent to the enum IDs in
* DateRange.java http://go/datarange.java
* older versions of Guava's DateRange.
*
*
* @enum {string}
*/
Expand Down
2 changes: 1 addition & 1 deletion closure/goog/disposable/idisposable.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ goog.provide('goog.disposable.IDisposable');
* to null as garbage collector will collect them assuming that references to
* current object will be lost after it is disposed.
*
* See also http://go/mdn/JavaScript/Memory_Management.
* See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management
*
* @record
*/
Expand Down
4 changes: 2 additions & 2 deletions closure/goog/dom/dom.js
Original file line number Diff line number Diff line change
Expand Up @@ -2102,7 +2102,7 @@ goog.dom.isFocusableTabIndex = function(element) {
* Enables or disables keyboard focus support on the element via its tab index.
* Only elements for which {@link goog.dom.isFocusableTabIndex} returns true
* (or elements that natively support keyboard focus, like form elements) can
* receive keyboard focus. See http://go/tabindex for more info.
* receive keyboard focus.
* @param {Element} element Element whose tab index is to be changed.
* @param {boolean} enable Whether to set or remove a tab index on the element
* that supports keyboard focus.
Expand Down Expand Up @@ -3330,7 +3330,7 @@ goog.dom.DomHelper.prototype.isFocusableTabIndex = goog.dom.isFocusableTabIndex;
* Enables or disables keyboard focus support on the element via its tab index.
* Only elements for which {@link goog.dom.isFocusableTabIndex} returns true
* (or elements that natively support keyboard focus, like form elements) can
* receive keyboard focus. See http://go/tabindex for more info.
* receive keyboard focus.
* @param {Element} element Element whose tab index is to be changed.
* @param {boolean} enable Whether to set or remove a tab index on the element
* that supports keyboard focus.
Expand Down
3 changes: 1 addition & 2 deletions closure/goog/dom/xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ goog.dom.xml.createMsXmlDocument_ = function() {
'use strict';
var doc = new ActiveXObject('MSXML2.DOMDocument');
if (doc) {
// Prevent potential vulnerabilities exposed by MSXML2, see
// http://b/1707300 and http://go/xxe-attacks for details.
// Prevent potential vulnerabilities exposed by MSXML2.
doc.resolveExternals = false;
doc.validateOnParse = false;
// Add a try catch block because accessing these properties will throw an
Expand Down
1 change: 0 additions & 1 deletion closure/goog/editor/plugins/removeformatting.js
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,6 @@ goog.editor.plugins.RemoveFormatting.prototype.convertSelectedHtmlText_ =
* browser's execCommand couldn't clobber without being totally inefficient.
* Attempts to convert visual line breaks to BRs. Leaves anchors that contain an
* href and images.
* Adapted from Gmail's MessageUtil's htmlToPlainText. http://go/messageutil.js
* @param {string} html The original html of the message.
* @return {string} The unformatted html, which is just text, br's, anchors and
* images.
Expand Down
1 change: 0 additions & 1 deletion closure/goog/i18n/bidiformatter.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
/**
* @fileoverview Utility for formatting text for display in a potentially
* opposite-directionality context without garbling.
* Mostly a port of http://go/formatter.cc.
*/


Expand Down
2 changes: 0 additions & 2 deletions closure/goog/i18n/charlistdecompressor.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
* Value uses 0 based counting. That is value for the range [a, b] is 0 and
* that of [a, c] is 1. Simillarly, the delta of "ab" is 0.
*
* Following python script can be used to compress character lists taken
* standard input: http://go/charlistcompressor.py
*/

goog.provide('goog.i18n.CharListDecompressor');
Expand Down
12 changes: 5 additions & 7 deletions closure/goog/i18n/datetimeformat_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,11 @@ function timezoneStringRFC(date) {
return timeZone.getRFCTimeZoneString(date);
}

// Where could such data be found
// In js_i18n_data in http://go/i18n_dir, we have a bunch of files with names
// like TimeZoneConstant__<locale>.js
// We strongly discourage you to use them directly as those data can make
// your client code bloated. You should try to provide this data from server
// in a selective manner. In typical scenario, user's time zone is retrieved
// and only data for that time zone should be provided.
// We strongly discourage you to use localization data for individual locales
// directly as those data can make your client code bloated. You should try to
// provide this data from server in a selective manner. In typical scenario,
// user's time zone is retrieved and only data for that time zone should be
// provided. Alternatively, consider the newer Intl APIs.
const americaLosAngelesData = {
'transitions': [
2770, 60, 7137, 0, 11506, 60, 16041, 0, 20410, 60, 24777, 0,
Expand Down
2 changes: 0 additions & 2 deletions closure/goog/i18n/messageformat.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
*
* This is a subset of the ICU MessageFormatSyntax:
* http://userguide.icu-project.org/formatparse/messages
* See also http://go/plurals and http://go/ordinals for internal details.
*
*
* Message example:
*
Expand Down
13 changes: 5 additions & 8 deletions closure/goog/i18n/timezone_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,11 @@ goog.setTestOnly();
const TimeZone = goog.require('goog.i18n.TimeZone');
const testSuite = goog.require('goog.testing.testSuite');

// Where could such data be found
// In js_i18n_data in http://go/i18n_dir, we have a bunch of files with names
// like TimeZoneConstant__<locale>.js
// We strongly discourage you to use them directly as those data can make
// your client code bloated. You should try to provide this data from server
// in a selective manner. In typical scenario, user's time zone is retrieved
// and only data for that time zone should be provided.
// This piece of data is in JSON format. It requires double quote.
// We strongly discourage you to use localization data for individual locales
// directly as those data can make your client code bloated. You should try to
// provide this data from server in a selective manner. In typical scenario,
// user's time zone is retrieved and only data for that time zone should be
// provided. Alternatively, consider the newer Intl APIs.
const americaLosAngelesData = {
'transitions': [
2770, 60, 7137, 0, 11506, 60, 16041, 0, 20410, 60, 24777, 0,
Expand Down
1 change: 0 additions & 1 deletion closure/goog/labs/mock/mock.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
* object (spying) and returning specific values for some or all the inputs to
* methods (stubbing).
*
* Manual: http://go/goog.labs.mock
*/


Expand Down
1 change: 0 additions & 1 deletion closure/goog/labs/testing/environment.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ goog.require('goog.testing.jsunit');
* are instantiated and registered. During tearDown, the environments will
* unwind the setUp and execute in reverse order.
*
* See http://go/jsunit-env for more information.
*/
goog.labs.testing.Environment = goog.defineClass(null, {
/** @constructor */
Expand Down
3 changes: 1 addition & 2 deletions closure/goog/labs/useragent/test_agents.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@

/**
* @fileoverview Various User-Agent strings.
* See http://go/useragentexamples and http://www.useragentstring.com/ for
* examples.
* See http://www.useragentstring.com/ for examples.
*/

goog.module('goog.labs.userAgent.testAgents');
Expand Down
1 change: 0 additions & 1 deletion closure/goog/locale/genericfontnames.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
* @fileoverview Functions to list locale-specific font list and generic name.
* Generic name used for a font family would be locale dependent. For example,
* for 'zh'(Chinese) users, the name for Serif family would be in Chinese.
* Further documentation at: http://go/genericfontnames.
*/

goog.provide('goog.locale.genericFontNames');
Expand Down
19 changes: 9 additions & 10 deletions closure/goog/locale/locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,9 @@ goog.locale.getNativeCountryName = function(countryCode) {
* Returns the localized country name for the provided language code in the
* current or provided locale symbols set.
*
* This method depends on `goog.locale.LocaleNameConstants__<locale>` available
* from http://go/js_locale_data. User of this method has to add dependency to
* this.
* This method depends on `goog.locale.LocaleNameConstants__<locale>` available,
* which are not provided as part of Closure Library since this package is
* deprecated. Users must manually add a workable dependency.
*
* @param {string} languageCode Language code to lookup the country name for.
* @param {Object=} opt_localeSymbols If omitted the current locale symbol
Expand All @@ -181,9 +181,9 @@ goog.locale.getLocalizedCountryName = function(
* Returns the localized country name for the provided language code in the
* current or provided locale symbols set.
*
* This method depends on `goog.locale.LocaleNameConstants__<locale>` available
* from http://go/js_locale_data. User of this method has to add dependency to
* this.
* This method depends on `goog.locale.LocaleNameConstants__<locale>` available,
* which are not provided as part of Closure Library since this package is
* deprecated. Users must manually add a workable dependency.
*
* @param {string} regionCode Two character country code or three digit region
* code to look up the country name for.
Expand Down Expand Up @@ -230,9 +230,9 @@ goog.locale.getNativeLanguageName = function(languageCode) {
* Returns the localized language name for the provided language code in
* the current or provided locale symbols set.
*
* This method depends on `goog.locale.LocaleNameConstants__<locale>` available
* from http://go/js_locale_data. User of this method has to add dependency to
* this.
* This method depends on `goog.locale.LocaleNameConstants__<locale>` available,
* which are not provided as part of Closure Library since this package is
* deprecated. Users must manually add a workable dependency.
*
* @param {string} languageCode Language code to lookup the language name for.
* @param {Object=} opt_localeSymbols locale symbol set if given.
Expand Down Expand Up @@ -428,7 +428,6 @@ goog.locale.getResourceWithFallback = function(resourceName, opt_locale) {


// Export global functions that are used by the date time constants files.
// See http://go/js_locale_data

/**
* Registers the LocaleNameConstants constants object for a given locale name.
Expand Down
5 changes: 1 addition & 4 deletions closure/goog/locale/timezonefingerprint.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@
/**
* @fileoverview Data for time zone detection.
*
* The following code was generated by the timezone_detect.py script in:
* http://go/i18n_tools which uses following files in this directory:
* http://go/timezone_data
* Files: olson2fingerprint.txt, country2olsons.txt, popular_olsons.txt
* The following code was generated by an internal tool.
*
* After automatic generation, we added some manual editing. Projecting on
* future changes, it is very unlikely that we will need to change the time
Expand Down
24 changes: 12 additions & 12 deletions closure/goog/locale/timezonelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ goog.require('goog.locale');
* Returns the displayable list of short timezone names paired with its id for
* the current locale, selected based on the region or language provided.
*
* This method depends on `goog.locale.TimeZone*__<locale>` available
* from http://go/js_locale_data. Users of this method must add a dependency on
* this.
* This method depends on `goog.locale.TimeZone*__<locale>` being available,
* which are not provided as part of Closure Library since this package is
* deprecated. Users must manually add a workable dependency.
*
* @param {string=} opt_regionOrLang If region tag is provided, timezone ids
* specific this region are considered. If language is provided, all regions
Expand All @@ -45,9 +45,9 @@ goog.locale.getTimeZoneSelectedShortNames = function(opt_regionOrLang) {
* Returns the displayable list of long timezone names paired with its id for
* the current locale, selected based on the region or language provided.
*
* This method depends on `goog.locale.TimeZone*__<locale>` available
* from http://go/js_locale_data. Users of this method must add a dependency on
* this.
* This method depends on `goog.locale.TimeZone*__<locale>` being available,
* which are not provided as part of Closure Library since this package is
* deprecated. Users must manually add a workable dependency.
*
* @param {string=} opt_regionOrLang If region tag is provided, timezone ids
* specific this region are considered. If language is provided, all regions
Expand All @@ -69,9 +69,9 @@ goog.locale.getTimeZoneSelectedLongNames = function(opt_regionOrLang) {
* Returns the displayable list of long timezone names paired with its id for
* the current locale.
*
* This method depends on `goog.locale.TimeZoneAllLongNames__<locale>` available
* from http://go/js_locale_data. Users of this method must add a dependency on
* this.
* This method depends on `goog.locale.TimeZoneAllLongNames__<locale>`,
* which are is provided as part of Closure Library since this package is
* deprecated. Users must manually add a workable dependency.
*
* @return {Array<Object>} localized and relevant list of timezone names
* and ids.
Expand All @@ -88,9 +88,9 @@ goog.locale.getTimeZoneAllLongNames = function() {
* Returns the displayable list of timezone names paired with its id for
* the current locale, selected based on the region or language provided.
*
* This method depends on `goog.locale.TimeZone*__<locale>` available
* from http://go/js_locale_data. Users of this method must add a dependency on
* this.
* This method depends on `goog.locale.TimeZone*__<locale>` being available,
* which are not provided as part of Closure Library since this package is
* deprecated. Users must manually add a workable dependency.
*
* @param {string} nameType Resource name to be loaded to get the names.
*
Expand Down
1 change: 0 additions & 1 deletion closure/goog/locale/timezonelist_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ document.write('<hr>');

testSuite({
setUpPage() {
// Test data files are in in http://go/js_locale_data

// Test data from TimeZoneSelectedIds__FR.js
const TimeZoneSelectedIds__FR =
Expand Down
1 change: 0 additions & 1 deletion closure/goog/module/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* @fileoverview This class supports the dynamic loading of compiled
* javascript modules at runtime, as described in the designdoc.
*
* <http://go/js_modules_design>
*/

goog.provide('goog.module.Loader');
Expand Down
1 change: 0 additions & 1 deletion closure/goog/module/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
* @fileoverview This class supports the dynamic loading of compiled
* javascript modules at runtime, as described in the designdoc.
*
* <http://go/js_modules_design>
*/

goog.provide('goog.module');
Expand Down
2 changes: 1 addition & 1 deletion closure/goog/net/channelrequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -899,7 +899,7 @@ goog.net.ChannelRequest.prototype.getNextChunk_ = function(responseText) {
/**
* Uses the Trident htmlfile ActiveX control to send a GET request in IE. This
* is the innovation discovered that lets us get intermediate results in
* Internet Explorer. Thanks to http://go/kev
* Internet Explorer.
* @param {goog.Uri} uri The uri to request from.
* @param {boolean} usingSecondaryDomain Whether to use a secondary domain.
*/
Expand Down
10 changes: 1 addition & 9 deletions closure/goog/net/crossdomainrpc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
*/

/**
* @fileoverview Cross domain RPC library using the <a
* href="http://go/xd2_design" target="_top">XD2 approach</a>.
* @fileoverview Cross domain RPC library using the XD2 approach.
*
* <h5>Protocol</h5>
* Client sends a request across domain via a form submission. Server
Expand Down Expand Up @@ -43,13 +42,6 @@
* &lt;/body&gt;
* </pre>
*
* <h5>Server Side</h5>
* For an example of the server side, refer to the following files:
* <ul>
* <li>http://go/xdservletfilter.java</li>
* <li>http://go/xdservletrequest.java</li>
* <li>http://go/xdservletresponse.java</li>
* </ul>
*
* <h5>System Requirements</h5>
* Tested on IE6, IE7, Firefox 2.0 and Safari nightly r23841.
Expand Down
1 change: 0 additions & 1 deletion closure/goog/reflect/reflect.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ goog.provide('goog.reflect');

/**
* Syntax for object literal casts.
* @see http://go/jscompiler-renaming
* @see https://goo.gl/CRs09P
*
* Use this if you have an object literal whose keys need to have the same names
Expand Down
2 changes: 0 additions & 2 deletions closure/goog/ui/style/app/buttonrenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
* dimensionality (via a subtle flat shadow on the bottom half of the button)
* without the use of images.
*
* Based on the Custom Buttons 3.1 visual specification, see
* http://go/custombuttons
*/

goog.provide('goog.ui.style.app.ButtonRenderer');
Expand Down

0 comments on commit 860dba1

Please sign in to comment.