move goog.async.throwException and use it in goog.async.nextTick
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=66010186
Fixed compilation for javascript contexts without a global document variable.

Looking at the callers of this function (unescapeEntities and unescapeEntitiesWithDocument), it seems like the intention was for goog.string to be usable even when the top-level document object is missing.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=66030937
Highlight the first toolbar button when the toolbar is focused. This aligns the behavior with the ARIA best practices (http://www.w3.org/TR/2013/WD-wai-aria-practices-20130307/#toolbar), which say "Tab moves focus to the first enabled toolbar button." Highlighting this button also sets the aria-activedescendant attribute to the first button, which orients screen reader users. It also gives a visual indication of focus to keyboard users.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=66090548
Automated g4 rollback of changelist 66090548.

*** Reason for rollback ***

Missing file

*** Original change description ***

Highlight the first toolbar button when the toolbar is focused. This aligns the behavior with the ARIA best practices (http://www.w3.org/TR/2013/WD-wai-aria-practices-20130307/#toolbar), which say "Tab moves focus to the first enabled toolbar button." Highlighting this button also sets the aria-activedescendant attribute to the first button, which orients screen reader users. It also gives a visual indication of focus to keyboard users.

***
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=66097448
Invalidates this.height_ when the element height is set to auto.

Steps to reproduce the problem:
1. setValue(content)
2. hide the textarea element and call setValue(content).
3. make the element visible and call setValue(content).

When setValue() is called in step 2, this.height_ is out of sync with the element height. Then setValue() call in step 3 with the same content will not set the element height.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=66101189
Added public function goog.fs.getBlobWithProperties for safely creating a Blob and specifying the type and endings properties.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=66104243
Remailing cl/66090548 after rollback for missing trix test.

Highlight the first toolbar button when the toolbar is focused. This aligns the behavior with the ARIA best practices (http://www.w3.org/TR/2013/WD-wai-aria-practices-20130307/#toolbar), which say "Tab moves focus to the first enabled toolbar button." Highlighting this button also sets the aria-activedescendant attribute to the first button, which orients screen reader users. It also gives a visual indication of focus to keyboard users.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=66105385
Mark constant variables used in htmlEscape with @const.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=66121972
HTML-escape "e" with goog.string.DETECT_DOUBLE_ESCAPING.

It is pretty useful for detecting double escaping.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=66123173
Added tests for getBlob and getBlobWithProperties.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=66124368
The then method expected 0 or more callbacks. The current implementation passes the result of the deferred to it. This did not break the test, because the deferreds were never called with an actual produced value.

Fixes the implementation and adds a test.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=66125631
kill the compiled query test
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=66218373
As a performance optimization, reduce the number of double<->integer
conversions and replace "& 0xffffffff" with the more compact "| 0".
Improves sha256_perf.html throughput by 10% on Firefox 29 and Chrome 35.
Closure compiler optimized code shows 25% improvement with both browsers.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=66238624
Automated g4 rollback of changelist 66105385.

*** Reason for rollback ***

First item in tool bar getting pressed when another button is pressed (see b/14576360)

*** Original change description ***

Remailing cl/66090548 after rollback for missing trix test.

Highlight the first toolbar button when the toolbar is focused. This aligns the behavior with the ARIA best practices (http://www.w3.org/TR/2013/WD-wai-aria-practices-20130307/#toolbar), which say "Tab moves focus to the first enabled toolbar button." Highlighting this button also sets the aria-activedescendant attribute to the first button, which orients screen reader users. It also gives a visual indication of focus to keyboard users...

***
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=66327374
Several tests are breaking on latest chrome. Just disable them.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=66337480
Minor: Reuse constants LEFT and RIGHT.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=66382026
HTML escape NULL character.

In my past, I've seen a weird browser behavior with null byte in output: http://sourceforge.net/p/adminer/bugs-and-features/168/.

I also want to switch Soy to htmlEscape in cl/66028905 and we escape NULL character in the Java version.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=66423395
Add an isEnabled function to the combobox.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=66523941
Updated fielddescription to always return a new instance every time getDefaultValue is called.

This fixes an issue where getting the default value of a field that is not a native value, a single instance is returned for every call. Modifying this instance will change the value for future calls to getDefaultValue since it's a reference to the internally stored one. This leads to hard to find bugs.

Discussion: https://groups.google.com/a/google.com/forum/#!topic/closure-users/QZGj7TUY0AA
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=66524199
Introduce goog.string.preserveSpaces and use it in whitespaceEscape.

I want to use it together with SafeHtml. It also didn't work for leading spaces.
-------------
Created by MOE: http://code.google.com/p/moe-java
MOE_MIGRATED_REVID=66530636