Skip to content

Commit 85008ce

Browse files
scadraGitLab
authored andcommitted
Merge branch 'develop' into 'release'
Auto stash before rebase of... See merge request passbolt/desktop/passbolt-windows!246
2 parents ed56ffb + 28b471e commit 85008ce

File tree

4 files changed

+13
-16
lines changed

4 files changed

+13
-16
lines changed

passbolt/Controllers/MainController.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212
* @since 0.0.1
1313
*/
1414

15-
using System;
16-
using System.Diagnostics;
17-
using System.Net.Http;
18-
using System.Text.RegularExpressions;
19-
using System.Threading.Tasks;
2015
using Microsoft.UI.Xaml.Controls;
2116
using Microsoft.Web.WebView2.Core;
2217
using passbolt.Exceptions;
@@ -31,6 +26,11 @@
3126
using passbolt.Services.NavigationService;
3227
using passbolt.Services.WebviewService;
3328
using passbolt.Utils;
29+
using System;
30+
using System.Diagnostics;
31+
using System.Net.Http;
32+
using System.Text.RegularExpressions;
33+
using System.Threading.Tasks;
3434

3535
namespace passbolt.Controllers
3636
{
@@ -103,7 +103,7 @@ public async Task BackgroundNavigationStarting(WebView2 sender, CoreWebView2Navi
103103
this.SetWebviewSettings(webviewBackground);
104104
}
105105
//When credentials are saved from import and we navigate to auth application we init the trusted domain to check API calls
106-
if(currentAccountMetaData == null && this.backgroundNavigationService.IsAuthApplication(args.Uri))
106+
if (currentAccountMetaData == null && this.backgroundNavigationService.IsAuthApplication(args.Uri))
107107
{
108108
currentAccountMetaData = await this.credentialLockerService.GetAccountMetadata();
109109
this.httpService.setTrustedDomain(currentAccountMetaData.domain);
@@ -211,7 +211,7 @@ public virtual void SetWebviewSettings(WebView2 webView)
211211
/// </summary>
212212
public virtual void NewWindowRequested(CoreWebView2 sender, CoreWebView2NewWindowRequestedEventArgs args)
213213
{
214-
if(sender.Source == webviewRendered.Source.AbsoluteUri)
214+
if (sender.Source == webviewRendered.Source.AbsoluteUri)
215215
{
216216
this.renderedNavigationService.CanOpenBrowser(args.Uri);
217217
}
@@ -230,7 +230,7 @@ public virtual void AllowNavigation(WebView2 sender, CoreWebView2NavigationStart
230230
{
231231
//When session is expired we are redirected to the API
232232
//To avoid this we catch the navigation and replicate the behaviour done during logout
233-
if(args.Uri.EndsWith("/auth/login"))
233+
if (args.Uri.EndsWith("/auth/login"))
234234
{
235235
backgroundTopic.ProceedMessage(new IPC(AuthenticationTopics.LOG_OUT));
236236
}
@@ -296,7 +296,7 @@ protected void WebMessageReceived(object sender, CoreWebView2WebMessageReceivedE
296296
IPC ipc = SerializationHelper.DeserializeFromJson<IPC>(message);
297297

298298
//Validate requestId to be an uuid
299-
if(ipc.requestId != null && !this.validateUUIDRegex.IsMatch(ipc.requestId))
299+
if (ipc.requestId != null && !this.validateUUIDRegex.IsMatch(ipc.requestId))
300300
{
301301
throw new UnauthorizedTopicException(ipc.topic);
302302
}
@@ -345,7 +345,7 @@ public async Task BackgroundNavigationCompleted(WebView2 sender, CoreWebView2Nav
345345
this.backgroundTopic = new BackgroundTopic(webviewBackground, webviewRendered, localFolderService, backgroundWebviewService);
346346
}
347347
//Webview can be not initialized at this step so we wait it
348-
if(backgroundNavigationService != null)
348+
if (backgroundNavigationService != null)
349349
{
350350
backgroundNavigationService.SetPreviousNavigation(sender.CoreWebView2.Source);
351351
}

passbolt/Webviews/Background/dist/background-workspace.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133918,7 +133918,6 @@ __webpack_require__.r(__webpack_exports__);
133918133918
/* harmony export */ ClipboardEvents: () => (/* binding */ ClipboardEvents)
133919133919
/* harmony export */ });
133920133920
/* harmony import */ var passbolt_browser_extension_src_all_background_page_controller_clipboard_copyToClipboardController__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! passbolt-browser-extension/src/all/background_page/controller/clipboard/copyToClipboardController */ "./node_modules/passbolt-browser-extension/src/all/background_page/controller/clipboard/copyToClipboardController.js");
133921-
/* harmony import */ var passbolt_browser_extension_src_all_background_page_controller_clipboard_copyTemporarilyToClipboardController__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! passbolt-browser-extension/src/all/background_page/controller/clipboard/copyTemporarilyToClipboardController */ "./node_modules/passbolt-browser-extension/src/all/background_page/controller/clipboard/copyTemporarilyToClipboardController.js");
133922133921
/**
133923133922
* Passbolt ~ Open source password manager for teams
133924133923
* Copyright (c) Passbolt SA (https://www.passbolt.com)
@@ -133935,7 +133934,6 @@ __webpack_require__.r(__webpack_exports__);
133935133934

133936133935

133937133936

133938-
133939133937
const listen = function(worker) {
133940133938
/**
133941133939
* Copies the given content into the clipboard and clear any clipboard flush alarms.
@@ -133957,7 +133955,7 @@ const listen = function(worker) {
133957133955
* @param {string} text the content to copy
133958133956
*/
133959133957
worker.port.on('passbolt.clipboard.copy-temporarily', async(requestId, text) => {
133960-
const clipboardController = new passbolt_browser_extension_src_all_background_page_controller_clipboard_copyTemporarilyToClipboardController__WEBPACK_IMPORTED_MODULE_1__["default"](worker, requestId);
133958+
const clipboardController = new passbolt_browser_extension_src_all_background_page_controller_clipboard_copyToClipboardController__WEBPACK_IMPORTED_MODULE_0__["default"](worker, requestId);
133961133959
await clipboardController._exec(text);
133962133960
});
133963133961
}

passbolt/Webviews/Background/dist/background-workspace.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

passbolt/Webviews/Background/src/events/clipboardEvents.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
*/
1414

1515
import CopyToClipboardController from "passbolt-browser-extension/src/all/background_page/controller/clipboard/copyToClipboardController";
16-
import CopyTemporarilyToClipboardController from "passbolt-browser-extension/src/all/background_page/controller/clipboard/copyTemporarilyToClipboardController";
1716

1817
const listen = function(worker) {
1918
/**
@@ -36,7 +35,7 @@ const listen = function(worker) {
3635
* @param {string} text the content to copy
3736
*/
3837
worker.port.on('passbolt.clipboard.copy-temporarily', async(requestId, text) => {
39-
const clipboardController = new CopyTemporarilyToClipboardController(worker, requestId);
38+
const clipboardController = new CopyToClipboardController(worker, requestId);
4039
await clipboardController._exec(text);
4140
});
4241
}

0 commit comments

Comments
 (0)