forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement request-close command for dialogs
https://bugs.webkit.org/show_bug.cgi?id=288476 Reviewed by NOBODY (OOPS!). Spec PR: whatwg/html#11045 This patch implements the request-close command for dialog, this maps to the requestClose() method. * LayoutTests/TestExpectations: * LayoutTests/imported/w3c/web-platform-tests/html/semantics/the-button-element/command-and-commandfor/on-dialog-behavior-request-close.tentative-expected.txt: Added. * Source/WebCore/dom/Element.h: * Source/WebCore/html/HTMLButtonElement.cpp: (WebCore::HTMLButtonElement::commandType const): * Source/WebCore/html/HTMLDialogElement.cpp: (WebCore::HTMLDialogElement::isValidCommandType): (WebCore::HTMLDialogElement::handleCommandInternal):
- Loading branch information
1 parent
34fd069
commit 87cb00b
Showing
5 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...on-element/command-and-commandfor/on-dialog-behavior-request-close.tentative-expected.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
|
||
|
||
PASS invoking to request-close (with command property as request-close) open dialog closes | ||
PASS invoking to request-close with value (with command property as request-close) open dialog closes and sets returnValue | ||
PASS invoking to request-close (with command property as request-close) open dialog with preventDefault is no-op | ||
PASS invoking to request-close (with command property as request-close) open modal dialog with preventDefault is no-op | ||
PASS invoking to request-close (with command property as request-close) open dialog while changing command still closes | ||
PASS invoking to request-close (with command property as request-close) open modal dialog while changing command still closes | ||
PASS invoking to request-close (with command attribute as request-close) open dialog closes | ||
PASS invoking to request-close with value (with command attribute as request-close) open dialog closes and sets returnValue | ||
PASS invoking to request-close (with command attribute as request-close) open dialog with preventDefault is no-op | ||
PASS invoking to request-close (with command attribute as request-close) open modal dialog with preventDefault is no-op | ||
PASS invoking to request-close (with command attribute as request-close) open dialog while changing command still closes | ||
PASS invoking to request-close (with command attribute as request-close) open modal dialog while changing command still closes | ||
PASS invoking to request-close (with command property as reQuEst-Close) open dialog closes | ||
PASS invoking to request-close with value (with command property as reQuEst-Close) open dialog closes and sets returnValue | ||
PASS invoking to request-close (with command property as reQuEst-Close) open dialog with preventDefault is no-op | ||
PASS invoking to request-close (with command property as reQuEst-Close) open modal dialog with preventDefault is no-op | ||
PASS invoking to request-close (with command property as reQuEst-Close) open dialog while changing command still closes | ||
PASS invoking to request-close (with command property as reQuEst-Close) open modal dialog while changing command still closes | ||
PASS invoking to request-close (with command attribute as reQuEst-Close) open dialog closes | ||
PASS invoking to request-close with value (with command attribute as reQuEst-Close) open dialog closes and sets returnValue | ||
PASS invoking to request-close (with command attribute as reQuEst-Close) open dialog with preventDefault is no-op | ||
PASS invoking to request-close (with command attribute as reQuEst-Close) open modal dialog with preventDefault is no-op | ||
PASS invoking to request-close (with command attribute as reQuEst-Close) open dialog while changing command still closes | ||
PASS invoking to request-close (with command attribute as reQuEst-Close) open modal dialog while changing command still closes | ||
PASS invoking (as request-close) already closed dialog is noop | ||
PASS invoking (as request-close) dialog as open popover=manual is noop | ||
PASS invoking (as request-close) dialog as open popover=auto is noop | ||
PASS invoking (as request-close) dialog that is removed is noop | ||
PASS invoking (as request-close) dialog from a detached invoker | ||
PASS invoking (as request-close) detached dialog from a detached invoker | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters