module('lively.experimental.CloudStorageWebRequests').requires('cop.Layers', 'lively.Network', 'lively.ide
.SourceDatabase', 'lively.net.OneDrive', 'lively.net.Dropbox', 'lively.net.LocalFS').toRun(function() {
cop.create("CloudStorageWebRequestsLayer").refineClass(URL, {
return new RegExp('^(http|https|file|dropbox|onedrive|localfs)://([^/:]*)(:([0-9]+))?(/.*)?$');
ensureAbsoluteRootPathURL: function (urlString) {
return /^(http|file|dropbox|onedrive|localfs).*/.test(urlString) ?
new URL(Config.rootPath).withRelativePath(urlString);
ensureAbsoluteCodeBaseURL: function(urlString) {
return /^(http|file|dropbox|onedrive|localfs).*/.test(urlString) ?
URL.codeBase.withRelativePath(urlString);
ensureAbsoluteURL: function(urlString) {
return /^(http|file|dropbox|onedrive|localfs).*/.test(urlString) ?