CORS: Fix the handling of redirected request containing Origin null.

Removed the check for securityOrigin->isUnique() in passesAccessControlCheck(). 
This check was preventing redirected request with "Origin: null" from being 
successful even when the response contained "Access-Control-Allow-Origin: null"

The case where the server responds with "Access-Control-Allow-Origin: null" 
for a request with "Origin: null" is not a failure case as per the 
W3C CORS Resource Sharing alogrithm (http://www.w3.org/TR/cors/#resource-sharing-check-0).
The specification also mentions the following line below Resource Sharing alogrithm:
"The above algorithm also functions when the ASCII serialization of an origin is the string 'null'."

This additional check was added in passesAccessControlCheck() during the 
implementation of HTML5 sandbox attribute for iframes. As per the WHATWG 
(http://www.whatwg.org/specs/web-apps/current-work/multipage/origin-0.html#sandboxed-origin-browsing-context-flag)
specification when "sandboxed origin browsing context flag" is set it forces 
content into a unique origin. For XHR reqests made from the sandboxed iframe CORS 
specfication is applicable.
Updated the error description in expected.txt of these related layout test 
to match the change. Added another allow test for "Access-Control-Allow-Origin: null" 
in addition to the wildcard test ("Access-Control-Allow-Origin: *").

This makes the behavior same as Mozilla Firefox Browser. Also clears the failed tests in
http://w3c-test.org/webappsec/tests/cors/submitted/opera/staging/redirect-origin.htm

R=abarth@chromium.org, mkwst@chromium.org

BUG=263835

Review URL: https://chromiumcodereview.appspot.com/20735002

git-svn-id: svn://svn.chromium.org/blink/trunk@155002 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Add a test using Custom Elements from an isolated world.

For now, throw an exception if an extension tries to use
document.register.

BUG=234509

Review URL: https://chromiumcodereview.appspot.com/20698002

git-svn-id: svn://svn.chromium.org/blink/trunk@155003 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Web MIDI: remove old platform API

Remove obsoleted APIs, requestAccess of WebMIDIAccessor, and
didAllowAccess and didBlockAccess of WebMIDIAccessorClient.

TEST=none 
BUG=163795

Review URL: https://chromiumcodereview.appspot.com/18260005

git-svn-id: svn://svn.chromium.org/blink/trunk@155004 bbb929c8-8fbe-4397-9dbb-9b2b20218538