diff --git a/core/includes/common.inc b/core/includes/common.inc
index d0e9a2f..6fbd246 100644
--- a/core/includes/common.inc
+++ b/core/includes/common.inc
@@ -4038,7 +4038,8 @@ function drupal_pre_render_scripts($elements) {
         switch ($item['type']) {
           case 'setting':
             $element['#value_prefix'] = $embed_prefix;
-            $element['#value'] = 'var drupalSettings = ' . drupal_json_encode(drupal_array_merge_deep_array($item['data'])) . ";";
+            $element['#value'] = "var Drupal = Drupal || { 'behaviors': {}, 'locale': {} };\n";
+            $element['#value'] .= 'Drupal.settings = ' . drupal_json_encode(drupal_array_merge_deep_array($item['data'])) . ';';
             $element['#value_suffix'] = $embed_suffix;
             break;
 
diff --git a/core/misc/drupal.js b/core/misc/drupal.js
index 627e264..8bbddc2 100644
--- a/core/misc/drupal.js
+++ b/core/misc/drupal.js
@@ -1,17 +1,14 @@
-var Drupal = Drupal || { 'behaviors': {}, 'locale': {} };
+var Drupal = Drupal || { 'settings': {}, 'behaviors': {}, 'locale': {} };
 
 // Allow other JavaScript libraries to use $.
 jQuery.noConflict();
 
 // JavaScript should be made compatible with libraries other than jQuery by
 // wrapping it in an anonymous closure.
-(function ($, Drupal, drupalSettings) {
+(function ($, Drupal, window, document, undefined) {
 
 "use strict";
 
-// Populate Drupal.settings with the drupalSettings variable.
-Drupal.settings = drupalSettings;
-
 /**
  * Custom error type thrown after attach/detach if one or more behaviors failed.
  *
@@ -74,7 +71,7 @@ function DrupalBehaviorError(list, event) {
  */
 Drupal.attachBehaviors = function (context, settings) {
   context = context || document;
-  settings = settings || drupalSettings;
+  settings = settings || Drupal.settings;
   var i, errors = [], behaviors = Drupal.behaviors;
   // Execute all of them.
   for (i in behaviors) {
@@ -136,7 +133,7 @@ function DrupalBehaviorError(list, event) {
  */
 Drupal.detachBehaviors = function (context, settings, trigger) {
   context = context || document;
-  settings = settings || drupalSettings;
+  settings = settings || Drupal.settings;
   trigger = trigger || 'unload';
   var i, errors = [], behaviors = Drupal.behaviors;
   // Execute all of them.
@@ -162,7 +159,7 @@ function DrupalBehaviorError(list, event) {
  * @todo Temporary solution for the mobile initiative.
  */
 Drupal.checkWidthBreakpoint = function (width) {
-  width = width || drupalSettings.widthBreakpoint || 640;
+  width = width || Drupal.settings.widthBreakpoint || 640;
   return (document.documentElement.clientWidth > width);
 };
 
@@ -262,7 +259,7 @@ function DrupalBehaviorError(list, event) {
  * Returns the URL to a Drupal page.
  */
 Drupal.url = function (path) {
-  return drupalSettings.basePath + drupalSettings.scriptPath + path;
+  return Drupal.settings.basePath + Drupal.settings.scriptPath + path;
 };
 
 /**
@@ -437,7 +434,7 @@ else if (index === 1) {
 
 //Attach all behaviors.
 $(function () {
-  Drupal.attachBehaviors(document, drupalSettings);
+  Drupal.attachBehaviors(document, Drupal.settings);
 });
 
 /**
@@ -458,4 +455,4 @@ else if (index === 1) {
   }
 });
 
-})(jQuery, Drupal, window.drupalSettings);
+})(jQuery, Drupal, this, this.document);
diff --git a/core/modules/color/color.module b/core/modules/color/color.module
index 56c04cf..d4ca6ca 100644
--- a/core/modules/color/color.module
+++ b/core/modules/color/color.module
@@ -771,7 +771,7 @@ function color_library_info() {
     'dependencies' => array(
       array('system', 'jquery'),
       array('system', 'drupal'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
       array('system', 'jquery.once'),
     ),
   );
diff --git a/core/modules/field_ui/field_ui.module b/core/modules/field_ui/field_ui.module
index 2efc07c..63cf18b 100644
--- a/core/modules/field_ui/field_ui.module
+++ b/core/modules/field_ui/field_ui.module
@@ -397,7 +397,7 @@ function field_ui_library_info() {
     'dependencies' => array(
       array('system', 'jquery'),
       array('system', 'drupal'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
       array('system', 'jquery.once'),
     ),
   );
diff --git a/core/modules/file/file.module b/core/modules/file/file.module
index 0f6cb64..447871b 100644
--- a/core/modules/file/file.module
+++ b/core/modules/file/file.module
@@ -1710,7 +1710,7 @@ function file_library_info() {
     'dependencies' => array(
       array('system', 'jquery'),
       array('system', 'drupal'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
     ),
   );
 
diff --git a/core/modules/locale/locale.module b/core/modules/locale/locale.module
index a32d47d..441e990 100644
--- a/core/modules/locale/locale.module
+++ b/core/modules/locale/locale.module
@@ -478,7 +478,7 @@ function locale_library_info() {
     'dependencies' => array(
       array('system', 'jquery'),
       array('system', 'drupal'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
     ),
   );
 
diff --git a/core/modules/node/node.module b/core/modules/node/node.module
index 573d286..bca8d9b 100644
--- a/core/modules/node/node.module
+++ b/core/modules/node/node.module
@@ -4054,7 +4054,7 @@ function node_library_info() {
     'dependencies' => array(
       array('system', 'jquery'),
       array('system', 'drupal'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
       array('system', 'drupal.form'),
     ),
   );
diff --git a/core/modules/overlay/overlay.module b/core/modules/overlay/overlay.module
index 3ae575c..e03c032 100644
--- a/core/modules/overlay/overlay.module
+++ b/core/modules/overlay/overlay.module
@@ -213,7 +213,7 @@ function overlay_library_info() {
     'dependencies' => array(
       array('system', 'jquery'),
       array('system', 'drupal'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
       array('system', 'jquery.ui.core'),
       array('system', 'jquery.bbq'),
     ),
@@ -232,7 +232,7 @@ function overlay_library_info() {
     'dependencies' => array(
       array('system', 'jquery'),
       array('system', 'drupal'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
       array('system', 'jquery.once'),
     ),
   );
diff --git a/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
index 5574679..21022a1 100644
--- a/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
+++ b/core/modules/simpletest/lib/Drupal/simpletest/WebTestBase.php
@@ -2019,7 +2019,7 @@ protected function drupalSetContent($content, $url = 'internal:') {
     $this->plainTextContent = FALSE;
     $this->elements = FALSE;
     $this->drupalSettings = array();
-    if (preg_match('/var drupalSettings = (.*?);/', $content, $matches)) {
+    if (preg_match('/jQuery\.extend\(Drupal\.settings, (.*?)\);/', $content, $matches)) {
       $this->drupalSettings = drupal_json_decode($matches[1]);
     }
   }
diff --git a/core/modules/simpletest/simpletest.module b/core/modules/simpletest/simpletest.module
index dd5ee4d..f216339 100644
--- a/core/modules/simpletest/simpletest.module
+++ b/core/modules/simpletest/simpletest.module
@@ -551,7 +551,7 @@ function simpletest_library_info() {
     'dependencies' => array(
       array('system', 'jquery'),
       array('system', 'drupal'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
       array('system', 'jquery.once'),
       array('system', 'drupal.tableselect'),
     ),
diff --git a/core/modules/statistics/statistics.module b/core/modules/statistics/statistics.module
index 8469e52..72a1efb 100644
--- a/core/modules/statistics/statistics.module
+++ b/core/modules/statistics/statistics.module
@@ -474,7 +474,7 @@ function statistics_library_info() {
     'dependencies' => array(
       array('system', 'jquery'),
       array('system', 'drupal'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
     ),
   );
 
diff --git a/core/modules/system/lib/Drupal/system/Tests/Common/JavaScriptTest.php b/core/modules/system/lib/Drupal/system/Tests/Common/JavaScriptTest.php
index d2f39bb..9982038 100644
--- a/core/modules/system/lib/Drupal/system/Tests/Common/JavaScriptTest.php
+++ b/core/modules/system/lib/Drupal/system/Tests/Common/JavaScriptTest.php
@@ -76,7 +76,7 @@ function testAddFile() {
    */
   function testAddSetting() {
     // Add a file in order to test default settings.
-    drupal_add_library('system', 'drupalSettings');
+    drupal_add_library('system', 'drupal.settings');
     $javascript = drupal_add_js();
     $last_settings = reset($javascript['settings']['data']);
     $this->assertTrue($last_settings['currentPath'], 'The current path JavaScript setting is set correctly.');
@@ -136,7 +136,7 @@ function testDeferAttribute() {
    * Test drupal_get_js() for JavaScript settings.
    */
   function testHeaderSetting() {
-    drupal_add_library('system', 'drupalSettings');
+    drupal_add_library('system', 'drupal.settings');
 
     $javascript = drupal_get_js('header');
     $this->assertTrue(strpos($javascript, 'basePath') > 0, 'Rendered JavaScript header returns basePath setting.');
@@ -171,11 +171,11 @@ function testHeaderSetting() {
     $this->assertTrue($associative_array_override, t('drupal_add_js() correctly overrides settings within an associative array.'));
     // Check in a rendered page.
     $this->drupalGet('common-test/query-string');
-    $this->assertPattern('@<script>.+drupalSettings.+"currentPath":"common-test\\\/query-string"@s', 'currentPath is in the JS settings');
+    $this->assertPattern('@<script>.+Drupal\.settings.+"currentPath":"common-test\\\/query-string"@s', 'currentPath is in the JS settings');
     $path = array('source' => 'common-test/query-string', 'alias' => 'common-test/currentpath-check');
     path_save($path);
     $this->drupalGet('common-test/currentpath-check');
-    $this->assertPattern('@<script>.+drupalSettings.+"currentPath":"common-test\\\/query-string"@s', 'currentPath is in the JS settings for an aliased path');
+    $this->assertPattern('@<script>.+Drupal\.settings.+"currentPath":"common-test\\\/query-string"@s', 'currentPath is in the JS settings for an aliased path');
   }
 
   /**
diff --git a/core/modules/system/system.module b/core/modules/system/system.module
index be79ff4..5aa5fa4 100644
--- a/core/modules/system/system.module
+++ b/core/modules/system/system.module
@@ -1187,7 +1187,7 @@ function system_library_info() {
   );
 
   // Drupal settings.
-  $libraries['drupalSettings'] = array(
+  $libraries['drupal.settings'] = array(
     'title' => 'Drupal Settings',
     'version' => VERSION,
     'js' => array(
@@ -1206,7 +1206,7 @@ function system_library_info() {
     'dependencies' => array(
       array('system', 'jquery'),
       array('system', 'drupal'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
       array('system', 'drupal.progress'),
     ),
   );
@@ -1221,7 +1221,7 @@ function system_library_info() {
     'dependencies' => array(
       array('system', 'jquery'),
       array('system', 'drupal'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
       array('system', 'drupal.progress'),
       array('system', 'jquery.once'),
     ),
@@ -1237,7 +1237,7 @@ function system_library_info() {
     'dependencies' => array(
       array('system', 'drupal'),
       array('system', 'jquery'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
     ),
   );
 
@@ -1266,7 +1266,7 @@ function system_library_info() {
     'dependencies' => array(
       array('system', 'jquery'),
       array('system', 'drupal'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
       array('system', 'jquery.once'),
     ),
   );
@@ -1281,7 +1281,7 @@ function system_library_info() {
     'dependencies' => array(
       array('system', 'jquery'),
       array('system', 'drupal'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
       array('system', 'jquery.once'),
       array('system', 'jquery.cookie'),
     ),
@@ -1380,7 +1380,7 @@ function system_library_info() {
     'dependencies' => array(
       array('system', 'jquery'),
       array('system', 'drupal'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
       // Vertical tabs relies on drupalGetSummary in form.js
       array('system', 'drupal.form'),
     ),
@@ -1887,7 +1887,7 @@ function system_library_info() {
     'dependencies' => array(
       array('system', 'jquery'),
       array('system', 'drupal'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
       array('system', 'jquery.once'),
     ),
   );
@@ -1912,7 +1912,7 @@ function system_library_info() {
       array('system', 'jquery'),
       array('system', 'jquery.once'),
       array('system', 'drupal'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
     ),
   );
 
@@ -1925,7 +1925,7 @@ function system_library_info() {
     'dependencies' => array(
       array('system', 'jquery'),
       array('system', 'drupal'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
     ),
   );
   $libraries['drupal.system.cron'] = array(
@@ -1937,7 +1937,7 @@ function system_library_info() {
     'dependencies' => array(
       array('system', 'jquery'),
       array('system', 'drupal'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
       array('system', 'jquery.once'),
     ),
   );
diff --git a/core/modules/system/tests/modules/common_test/common_test.module b/core/modules/system/tests/modules/common_test/common_test.module
index 37243cf..65fcc8a 100644
--- a/core/modules/system/tests/modules/common_test/common_test.module
+++ b/core/modules/system/tests/modules/common_test/common_test.module
@@ -272,7 +272,7 @@ function common_test_library_info() {
  * Adds a JavaScript file and a CSS file with a query string appended.
  */
 function common_test_js_and_css_querystring() {
-   drupal_add_library('system', 'drupalSettings');
+   drupal_add_library('system', 'drupal.settings');
    drupal_add_js(drupal_get_path('module', 'node') . '/node.js');
    drupal_add_css(drupal_get_path('module', 'node') . '/node.admin.css');
    // A relative URI may have a query string.
diff --git a/core/modules/taxonomy/taxonomy.module b/core/modules/taxonomy/taxonomy.module
index c28cc7b..d9aa9db 100644
--- a/core/modules/taxonomy/taxonomy.module
+++ b/core/modules/taxonomy/taxonomy.module
@@ -1798,7 +1798,7 @@ function taxonomy_library_info() {
     'dependencies' => array(
       array('system', 'jquery'),
       array('system', 'drupal'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
       array('system', 'drupal.tabledrag'),
     ),
   );
diff --git a/core/modules/toolbar/toolbar.module b/core/modules/toolbar/toolbar.module
index 8ff3167..fa4dd6f 100644
--- a/core/modules/toolbar/toolbar.module
+++ b/core/modules/toolbar/toolbar.module
@@ -374,7 +374,7 @@ function toolbar_library_info() {
     'dependencies' => array(
       array('system', 'jquery'),
       array('system', 'drupal'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
       array('system', 'jquery.once'),
       array('system', 'jquery.cookie'),
     ),
diff --git a/core/modules/user/user.module b/core/modules/user/user.module
index c57fca2..7081a08 100644
--- a/core/modules/user/user.module
+++ b/core/modules/user/user.module
@@ -3149,7 +3149,7 @@ function user_library_info() {
     'dependencies' => array(
       array('system', 'jquery'),
       array('system', 'drupal'),
-      array('system', 'drupalSettings'),
+      array('system', 'drupal.settings'),
     ),
   );
 
