LearnNewsExamplesServices
Frontmatter
id7210
titleImplement Window Management Permission Request
stateClosed
labels
enhancement
assigneestobiu
createdAtAug 21, 2025, 9:50 PM
updatedAtAug 21, 2025, 9:51 PM
githubUrlhttps://github.com/neomjs/neo/issues/7210
authortobiu
commentsCount0
parentIssue7201
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtAug 21, 2025, 9:51 PM

Implement Window Management Permission Request

Closed v10.6.0 enhancement
tobiu
tobiu commented on Aug 21, 2025, 9:50 PM

Status: Done

Overview

This ticket covers the implementation of a user-facing mechanism to request the window-management permission from the browser. This is a prerequisite for Phase 3 of the EPIC-Dashboard-Drag-And-Drop.md, which involves creating and moving popup windows during a drag operation.

Implementation Details

  1. UI Button:

    • A new button, "Enable Window Management," was added to apps/colors/view/HeaderToolbar.mjs.
    • This button serves as the user-initiated entry point for the permission request.
  2. Controller Logic:

    • An event handler, onEnableWindowManagementClick, was added to apps/colors/view/ViewportController.mjs.
    • This handler calls the new remote method on the DragDrop main thread addon.
    • It updates the button's appearance (text, icon, disabled state) based on the success or failure of the permission request, providing clear feedback to the user.
  3. Main Thread Addon Method:

    • A new remote method, requestWindowManagementPermission, was created in src/main/addon/DragDrop.mjs.
    • This method encapsulates the browser API interaction, calling window.getScreenDetails() to trigger the permission prompt.
    • It includes checks for a secure context (window.isSecureContext) and API availability, returning a detailed success or error status.
tobiu assigned to @tobiu on Aug 21, 2025, 9:50 PM
tobiu added the enhancement label on Aug 21, 2025, 9:50 PM
tobiu added parent issue #7201 on Aug 21, 2025, 9:50 PM
tobiu referenced in commit e081555 - "Implement Window Management Permission Request #7210" on Aug 21, 2025, 9:51 PM
tobiu closed this issue on Aug 21, 2025, 9:51 PM