You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2012/12/15 01:45:42 UTC
[1/4] git commit: update to 2.3.0rc2
Updated Branches:
refs/heads/master f140c3199 -> 30d2e6f85
Updated Tags: refs/tags/2.3.0rc2 [created] 30d2e6f85
update to 2.3.0rc2
Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/30d2e6f8
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/30d2e6f8
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/30d2e6f8
Branch: refs/heads/master
Commit: 30d2e6f8572415bd63c4e18253c1c2d527685e4c
Parents: f0b9774
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Fri Dec 14 16:08:52 2012 -0800
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Fri Dec 14 16:08:52 2012 -0800
----------------------------------------------------------------------
example/www/cordova-2.3.0.js | 110 +-
framework/Properties/AssemblyInfo.cs | 2 +-
templates/custom/VERSION | 2 +-
templates/custom/www/cordova-2.3.0.js | 110 +-
templates/full/VERSION | 2 +-
templates/full/www/cordova-2.3.0.js | 110 +-
templates/standalone/VERSION | 2 +-
templates/standalone/www/cordova-2.3.0.js | 110 +-
tests/MobileSpecUnitTests/www/cordova-2.3.0.js | 6323 +++++++++++++++++++
tests/MobileSpecUnitTests/www/cordova.js | 2 +-
10 files changed, 6672 insertions(+), 101 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/30d2e6f8/example/www/cordova-2.3.0.js
----------------------------------------------------------------------
diff --git a/example/www/cordova-2.3.0.js b/example/www/cordova-2.3.0.js
index 66b51f9..987f450 100644
--- a/example/www/cordova-2.3.0.js
+++ b/example/www/cordova-2.3.0.js
@@ -1,6 +1,6 @@
-// commit c46b14085ce80cda5f72d6af22bc22afe4c2151d
+// commit 861ff3d507fd5c64ed789d8abe360690e588252e
-// File generated at :: Mon Nov 26 2012 15:31:36 GMT-0800 (Pacific Standard Time)
+// File generated at :: Fri Dec 14 2012 15:28:53 GMT-0800 (Pacific Standard Time)
/*
Licensed to the Apache Software Foundation (ASF) under one
@@ -3110,18 +3110,55 @@ define("cordova/plugin/InAppBrowser", function(require, exports, module) {
var exec = require('cordova/exec');
-var InAppBrowser = {
- open : function(strUrl, strWindowName, strWindowFeatures) {
- exec(null, null, "InAppBrowser", "open", [strUrl, strWindowName, strWindowFeatures]);
- return InAppBrowser;
- },
- close : function() {
- exec(null, null, "InAppBrowser", "close", []);
+function InAppBrowser()
+{
+ var _channel = require('cordova/channel');
+ this.channels = {
+ 'loadstart': _channel.create('loadstart'),
+ 'loadstop' : _channel.create('loadstop'),
+ 'exit' : _channel.create('exit')
+ };
+}
+
+InAppBrowser.prototype._eventHandler = function(event)
+{
+ if (event.type in this.channels) {
+ this.channels[event.type].fire(event);
}
-};
+}
+
+InAppBrowser.open = function(strUrl, strWindowName, strWindowFeatures)
+{
+ var iab = new InAppBrowser();
+ var cb = function(eventname) {
+ iab._eventHandler(eventname);
+ }
+ exec(cb, null, "InAppBrowser", "open", [strUrl, strWindowName, strWindowFeatures]);
+ return iab;
+}
+
+InAppBrowser.prototype.close = function(eventname, f)
+{
+ exec(null, null, "InAppBrowser", "close", []);
+}
+
+InAppBrowser.prototype.addEventListener = function(eventname, f)
+{
+ if (eventname in this.channels) {
+ this.channels[eventname].subscribe(f);
+ }
+}
+
+InAppBrowser.prototype.removeEventListener = function(eventname, f)
+{
+ if (eventname in this.channels) {
+ this.channels[eventname].unsubscribe(f);
+ }
+}
module.exports = InAppBrowser.open;
+
});
// file: lib\common\plugin\LocalFileSystem.js
@@ -5840,7 +5877,7 @@ if (!docDomain || docDomain.length === 0) {
newUrl = newUrl.split(":/")[1];
}
// prefix relative urls to our physical root
- if(newUrl.indexOf("app/www/") < 0)
+ if(newUrl.indexOf("app/www/") < 0 && this.getContentLocation() == this.contentLocation.ISOLATED_STORAGE)
{
newUrl = "app/www/" + newUrl;
}
@@ -5907,26 +5944,51 @@ if (!docDomain || docDomain.length === 0) {
alias.onError(evt.code);
};
- var gotFile = function gotFile(file) {
- var reader = new FileReader();
- reader.onloadend = function (evt) {
- alias.onResult.apply(alias,[evt.target.result]);
+ if (alias.getContentLocation() == this.contentLocation.RESOURCES) {
+ var exec = require('cordova/exec');
+ exec(function(result) {
+ alias.onResult.apply(alias, [result]);
+ },
+ fail,
+ "File", "readResourceAsText", [alias._url]
+ );
+ }
+ else {
+ var gotFile = function gotFile(file) {
+ var reader = new FileReader();
+ reader.onloadend = function (evt) {
+ alias.onResult.apply(alias,[evt.target.result]);
+ };
+ reader.readAsText(file);
};
- reader.readAsText(file);
- };
- var gotEntry = function gotEntry(entry) {
- entry.file(gotFile, fail);
- };
+ var gotEntry = function gotEntry(entry) {
+ entry.file(gotFile, fail);
+ };
- var gotFS = function gotFS(fs) {
- fs.root.getFile(alias._url, null, gotEntry, fail);
- };
+ var gotFS = function gotFS(fs) {
+ fs.root.getFile(alias._url, null, gotEntry, fail);
+ };
- window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail);
+ window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail);
+ }
+ }
+ },
+ getContentLocation: function () {
+ if (window.contentLocation === undefined) {
+ window.contentLocation = (navigator.userAgent.toUpperCase().indexOf('MSIE 10') > -1) ?
+ this.contentLocation.RESOURCES : this.contentLocation.ISOLATED_STORAGE;
}
+
+ return window.contentLocation;
+ },
+
+ contentLocation:{
+ ISOLATED_STORAGE: 0,
+ RESOURCES: 1
},
+
status: 404
};
} // if doc domain
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/30d2e6f8/framework/Properties/AssemblyInfo.cs
----------------------------------------------------------------------
diff --git a/framework/Properties/AssemblyInfo.cs b/framework/Properties/AssemblyInfo.cs
index b72c495..1a1a461 100644
--- a/framework/Properties/AssemblyInfo.cs
+++ b/framework/Properties/AssemblyInfo.cs
@@ -6,7 +6,7 @@ using System.Runtime.InteropServices;
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("WPCordovaClassLib")]
-[assembly: AssemblyDescription("2.3.0rc1")]
+[assembly: AssemblyDescription("2.3.0rc2")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Apache Cordova")]
[assembly: AssemblyProduct("WPCordovaClassLib")]
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/30d2e6f8/templates/custom/VERSION
----------------------------------------------------------------------
diff --git a/templates/custom/VERSION b/templates/custom/VERSION
index cc6612c..1d0743a 100644
--- a/templates/custom/VERSION
+++ b/templates/custom/VERSION
@@ -1 +1 @@
-2.3.0
\ No newline at end of file
+2.3.0rc2
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/30d2e6f8/templates/custom/www/cordova-2.3.0.js
----------------------------------------------------------------------
diff --git a/templates/custom/www/cordova-2.3.0.js b/templates/custom/www/cordova-2.3.0.js
index 66b51f9..987f450 100644
--- a/templates/custom/www/cordova-2.3.0.js
+++ b/templates/custom/www/cordova-2.3.0.js
@@ -1,6 +1,6 @@
-// commit c46b14085ce80cda5f72d6af22bc22afe4c2151d
+// commit 861ff3d507fd5c64ed789d8abe360690e588252e
-// File generated at :: Mon Nov 26 2012 15:31:36 GMT-0800 (Pacific Standard Time)
+// File generated at :: Fri Dec 14 2012 15:28:53 GMT-0800 (Pacific Standard Time)
/*
Licensed to the Apache Software Foundation (ASF) under one
@@ -3110,18 +3110,55 @@ define("cordova/plugin/InAppBrowser", function(require, exports, module) {
var exec = require('cordova/exec');
-var InAppBrowser = {
- open : function(strUrl, strWindowName, strWindowFeatures) {
- exec(null, null, "InAppBrowser", "open", [strUrl, strWindowName, strWindowFeatures]);
- return InAppBrowser;
- },
- close : function() {
- exec(null, null, "InAppBrowser", "close", []);
+function InAppBrowser()
+{
+ var _channel = require('cordova/channel');
+ this.channels = {
+ 'loadstart': _channel.create('loadstart'),
+ 'loadstop' : _channel.create('loadstop'),
+ 'exit' : _channel.create('exit')
+ };
+}
+
+InAppBrowser.prototype._eventHandler = function(event)
+{
+ if (event.type in this.channels) {
+ this.channels[event.type].fire(event);
}
-};
+}
+
+InAppBrowser.open = function(strUrl, strWindowName, strWindowFeatures)
+{
+ var iab = new InAppBrowser();
+ var cb = function(eventname) {
+ iab._eventHandler(eventname);
+ }
+ exec(cb, null, "InAppBrowser", "open", [strUrl, strWindowName, strWindowFeatures]);
+ return iab;
+}
+
+InAppBrowser.prototype.close = function(eventname, f)
+{
+ exec(null, null, "InAppBrowser", "close", []);
+}
+
+InAppBrowser.prototype.addEventListener = function(eventname, f)
+{
+ if (eventname in this.channels) {
+ this.channels[eventname].subscribe(f);
+ }
+}
+
+InAppBrowser.prototype.removeEventListener = function(eventname, f)
+{
+ if (eventname in this.channels) {
+ this.channels[eventname].unsubscribe(f);
+ }
+}
module.exports = InAppBrowser.open;
+
});
// file: lib\common\plugin\LocalFileSystem.js
@@ -5840,7 +5877,7 @@ if (!docDomain || docDomain.length === 0) {
newUrl = newUrl.split(":/")[1];
}
// prefix relative urls to our physical root
- if(newUrl.indexOf("app/www/") < 0)
+ if(newUrl.indexOf("app/www/") < 0 && this.getContentLocation() == this.contentLocation.ISOLATED_STORAGE)
{
newUrl = "app/www/" + newUrl;
}
@@ -5907,26 +5944,51 @@ if (!docDomain || docDomain.length === 0) {
alias.onError(evt.code);
};
- var gotFile = function gotFile(file) {
- var reader = new FileReader();
- reader.onloadend = function (evt) {
- alias.onResult.apply(alias,[evt.target.result]);
+ if (alias.getContentLocation() == this.contentLocation.RESOURCES) {
+ var exec = require('cordova/exec');
+ exec(function(result) {
+ alias.onResult.apply(alias, [result]);
+ },
+ fail,
+ "File", "readResourceAsText", [alias._url]
+ );
+ }
+ else {
+ var gotFile = function gotFile(file) {
+ var reader = new FileReader();
+ reader.onloadend = function (evt) {
+ alias.onResult.apply(alias,[evt.target.result]);
+ };
+ reader.readAsText(file);
};
- reader.readAsText(file);
- };
- var gotEntry = function gotEntry(entry) {
- entry.file(gotFile, fail);
- };
+ var gotEntry = function gotEntry(entry) {
+ entry.file(gotFile, fail);
+ };
- var gotFS = function gotFS(fs) {
- fs.root.getFile(alias._url, null, gotEntry, fail);
- };
+ var gotFS = function gotFS(fs) {
+ fs.root.getFile(alias._url, null, gotEntry, fail);
+ };
- window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail);
+ window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail);
+ }
+ }
+ },
+ getContentLocation: function () {
+ if (window.contentLocation === undefined) {
+ window.contentLocation = (navigator.userAgent.toUpperCase().indexOf('MSIE 10') > -1) ?
+ this.contentLocation.RESOURCES : this.contentLocation.ISOLATED_STORAGE;
}
+
+ return window.contentLocation;
+ },
+
+ contentLocation:{
+ ISOLATED_STORAGE: 0,
+ RESOURCES: 1
},
+
status: 404
};
} // if doc domain
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/30d2e6f8/templates/full/VERSION
----------------------------------------------------------------------
diff --git a/templates/full/VERSION b/templates/full/VERSION
index cc6612c..1d0743a 100644
--- a/templates/full/VERSION
+++ b/templates/full/VERSION
@@ -1 +1 @@
-2.3.0
\ No newline at end of file
+2.3.0rc2
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/30d2e6f8/templates/full/www/cordova-2.3.0.js
----------------------------------------------------------------------
diff --git a/templates/full/www/cordova-2.3.0.js b/templates/full/www/cordova-2.3.0.js
index 66b51f9..987f450 100644
--- a/templates/full/www/cordova-2.3.0.js
+++ b/templates/full/www/cordova-2.3.0.js
@@ -1,6 +1,6 @@
-// commit c46b14085ce80cda5f72d6af22bc22afe4c2151d
+// commit 861ff3d507fd5c64ed789d8abe360690e588252e
-// File generated at :: Mon Nov 26 2012 15:31:36 GMT-0800 (Pacific Standard Time)
+// File generated at :: Fri Dec 14 2012 15:28:53 GMT-0800 (Pacific Standard Time)
/*
Licensed to the Apache Software Foundation (ASF) under one
@@ -3110,18 +3110,55 @@ define("cordova/plugin/InAppBrowser", function(require, exports, module) {
var exec = require('cordova/exec');
-var InAppBrowser = {
- open : function(strUrl, strWindowName, strWindowFeatures) {
- exec(null, null, "InAppBrowser", "open", [strUrl, strWindowName, strWindowFeatures]);
- return InAppBrowser;
- },
- close : function() {
- exec(null, null, "InAppBrowser", "close", []);
+function InAppBrowser()
+{
+ var _channel = require('cordova/channel');
+ this.channels = {
+ 'loadstart': _channel.create('loadstart'),
+ 'loadstop' : _channel.create('loadstop'),
+ 'exit' : _channel.create('exit')
+ };
+}
+
+InAppBrowser.prototype._eventHandler = function(event)
+{
+ if (event.type in this.channels) {
+ this.channels[event.type].fire(event);
}
-};
+}
+
+InAppBrowser.open = function(strUrl, strWindowName, strWindowFeatures)
+{
+ var iab = new InAppBrowser();
+ var cb = function(eventname) {
+ iab._eventHandler(eventname);
+ }
+ exec(cb, null, "InAppBrowser", "open", [strUrl, strWindowName, strWindowFeatures]);
+ return iab;
+}
+
+InAppBrowser.prototype.close = function(eventname, f)
+{
+ exec(null, null, "InAppBrowser", "close", []);
+}
+
+InAppBrowser.prototype.addEventListener = function(eventname, f)
+{
+ if (eventname in this.channels) {
+ this.channels[eventname].subscribe(f);
+ }
+}
+
+InAppBrowser.prototype.removeEventListener = function(eventname, f)
+{
+ if (eventname in this.channels) {
+ this.channels[eventname].unsubscribe(f);
+ }
+}
module.exports = InAppBrowser.open;
+
});
// file: lib\common\plugin\LocalFileSystem.js
@@ -5840,7 +5877,7 @@ if (!docDomain || docDomain.length === 0) {
newUrl = newUrl.split(":/")[1];
}
// prefix relative urls to our physical root
- if(newUrl.indexOf("app/www/") < 0)
+ if(newUrl.indexOf("app/www/") < 0 && this.getContentLocation() == this.contentLocation.ISOLATED_STORAGE)
{
newUrl = "app/www/" + newUrl;
}
@@ -5907,26 +5944,51 @@ if (!docDomain || docDomain.length === 0) {
alias.onError(evt.code);
};
- var gotFile = function gotFile(file) {
- var reader = new FileReader();
- reader.onloadend = function (evt) {
- alias.onResult.apply(alias,[evt.target.result]);
+ if (alias.getContentLocation() == this.contentLocation.RESOURCES) {
+ var exec = require('cordova/exec');
+ exec(function(result) {
+ alias.onResult.apply(alias, [result]);
+ },
+ fail,
+ "File", "readResourceAsText", [alias._url]
+ );
+ }
+ else {
+ var gotFile = function gotFile(file) {
+ var reader = new FileReader();
+ reader.onloadend = function (evt) {
+ alias.onResult.apply(alias,[evt.target.result]);
+ };
+ reader.readAsText(file);
};
- reader.readAsText(file);
- };
- var gotEntry = function gotEntry(entry) {
- entry.file(gotFile, fail);
- };
+ var gotEntry = function gotEntry(entry) {
+ entry.file(gotFile, fail);
+ };
- var gotFS = function gotFS(fs) {
- fs.root.getFile(alias._url, null, gotEntry, fail);
- };
+ var gotFS = function gotFS(fs) {
+ fs.root.getFile(alias._url, null, gotEntry, fail);
+ };
- window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail);
+ window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail);
+ }
+ }
+ },
+ getContentLocation: function () {
+ if (window.contentLocation === undefined) {
+ window.contentLocation = (navigator.userAgent.toUpperCase().indexOf('MSIE 10') > -1) ?
+ this.contentLocation.RESOURCES : this.contentLocation.ISOLATED_STORAGE;
}
+
+ return window.contentLocation;
+ },
+
+ contentLocation:{
+ ISOLATED_STORAGE: 0,
+ RESOURCES: 1
},
+
status: 404
};
} // if doc domain
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/30d2e6f8/templates/standalone/VERSION
----------------------------------------------------------------------
diff --git a/templates/standalone/VERSION b/templates/standalone/VERSION
index cc6612c..1d0743a 100644
--- a/templates/standalone/VERSION
+++ b/templates/standalone/VERSION
@@ -1 +1 @@
-2.3.0
\ No newline at end of file
+2.3.0rc2
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/30d2e6f8/templates/standalone/www/cordova-2.3.0.js
----------------------------------------------------------------------
diff --git a/templates/standalone/www/cordova-2.3.0.js b/templates/standalone/www/cordova-2.3.0.js
index 66b51f9..987f450 100644
--- a/templates/standalone/www/cordova-2.3.0.js
+++ b/templates/standalone/www/cordova-2.3.0.js
@@ -1,6 +1,6 @@
-// commit c46b14085ce80cda5f72d6af22bc22afe4c2151d
+// commit 861ff3d507fd5c64ed789d8abe360690e588252e
-// File generated at :: Mon Nov 26 2012 15:31:36 GMT-0800 (Pacific Standard Time)
+// File generated at :: Fri Dec 14 2012 15:28:53 GMT-0800 (Pacific Standard Time)
/*
Licensed to the Apache Software Foundation (ASF) under one
@@ -3110,18 +3110,55 @@ define("cordova/plugin/InAppBrowser", function(require, exports, module) {
var exec = require('cordova/exec');
-var InAppBrowser = {
- open : function(strUrl, strWindowName, strWindowFeatures) {
- exec(null, null, "InAppBrowser", "open", [strUrl, strWindowName, strWindowFeatures]);
- return InAppBrowser;
- },
- close : function() {
- exec(null, null, "InAppBrowser", "close", []);
+function InAppBrowser()
+{
+ var _channel = require('cordova/channel');
+ this.channels = {
+ 'loadstart': _channel.create('loadstart'),
+ 'loadstop' : _channel.create('loadstop'),
+ 'exit' : _channel.create('exit')
+ };
+}
+
+InAppBrowser.prototype._eventHandler = function(event)
+{
+ if (event.type in this.channels) {
+ this.channels[event.type].fire(event);
}
-};
+}
+
+InAppBrowser.open = function(strUrl, strWindowName, strWindowFeatures)
+{
+ var iab = new InAppBrowser();
+ var cb = function(eventname) {
+ iab._eventHandler(eventname);
+ }
+ exec(cb, null, "InAppBrowser", "open", [strUrl, strWindowName, strWindowFeatures]);
+ return iab;
+}
+
+InAppBrowser.prototype.close = function(eventname, f)
+{
+ exec(null, null, "InAppBrowser", "close", []);
+}
+
+InAppBrowser.prototype.addEventListener = function(eventname, f)
+{
+ if (eventname in this.channels) {
+ this.channels[eventname].subscribe(f);
+ }
+}
+
+InAppBrowser.prototype.removeEventListener = function(eventname, f)
+{
+ if (eventname in this.channels) {
+ this.channels[eventname].unsubscribe(f);
+ }
+}
module.exports = InAppBrowser.open;
+
});
// file: lib\common\plugin\LocalFileSystem.js
@@ -5840,7 +5877,7 @@ if (!docDomain || docDomain.length === 0) {
newUrl = newUrl.split(":/")[1];
}
// prefix relative urls to our physical root
- if(newUrl.indexOf("app/www/") < 0)
+ if(newUrl.indexOf("app/www/") < 0 && this.getContentLocation() == this.contentLocation.ISOLATED_STORAGE)
{
newUrl = "app/www/" + newUrl;
}
@@ -5907,26 +5944,51 @@ if (!docDomain || docDomain.length === 0) {
alias.onError(evt.code);
};
- var gotFile = function gotFile(file) {
- var reader = new FileReader();
- reader.onloadend = function (evt) {
- alias.onResult.apply(alias,[evt.target.result]);
+ if (alias.getContentLocation() == this.contentLocation.RESOURCES) {
+ var exec = require('cordova/exec');
+ exec(function(result) {
+ alias.onResult.apply(alias, [result]);
+ },
+ fail,
+ "File", "readResourceAsText", [alias._url]
+ );
+ }
+ else {
+ var gotFile = function gotFile(file) {
+ var reader = new FileReader();
+ reader.onloadend = function (evt) {
+ alias.onResult.apply(alias,[evt.target.result]);
+ };
+ reader.readAsText(file);
};
- reader.readAsText(file);
- };
- var gotEntry = function gotEntry(entry) {
- entry.file(gotFile, fail);
- };
+ var gotEntry = function gotEntry(entry) {
+ entry.file(gotFile, fail);
+ };
- var gotFS = function gotFS(fs) {
- fs.root.getFile(alias._url, null, gotEntry, fail);
- };
+ var gotFS = function gotFS(fs) {
+ fs.root.getFile(alias._url, null, gotEntry, fail);
+ };
- window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail);
+ window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, gotFS, fail);
+ }
+ }
+ },
+ getContentLocation: function () {
+ if (window.contentLocation === undefined) {
+ window.contentLocation = (navigator.userAgent.toUpperCase().indexOf('MSIE 10') > -1) ?
+ this.contentLocation.RESOURCES : this.contentLocation.ISOLATED_STORAGE;
}
+
+ return window.contentLocation;
+ },
+
+ contentLocation:{
+ ISOLATED_STORAGE: 0,
+ RESOURCES: 1
},
+
status: 404
};
} // if doc domain