[popover] support popover=hint
Categories
(Core :: DOM: Core & HTML, enhancement)
Tracking
()
People
(Reporter: zsun, Assigned: keithamus)
References
(Depends on 1 open bug, Blocks 2 open bugs)
Details
(Keywords: dev-doc-complete, parity-chrome, parity-safari, Whiteboard: [platform-feature], [wptsync upstream])
User Story
web-feature: popover-hint
Attachments
(8 files, 1 obsolete file)
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
Spec in discussion:
https://github.com/whatwg/html/pull/9778
Test affected:
popover-types-with-hints.tentative.html
| Assignee | ||
Updated•1 year ago
|
Comment 1•1 year ago
|
||
Once prototyped, this should be added to https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Experimental_features.
Sebastian
| Assignee | ||
Comment 2•1 year ago
|
||
| Assignee | ||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•7 months ago
|
Updated•7 months ago
|
| Assignee | ||
Updated•6 months ago
|
| Assignee | ||
Comment 3•4 months ago
|
||
These methods are never used in the codebase.
| Assignee | ||
Comment 4•4 months ago
|
||
Adding code comments reflecting each line of the spec helps us confirm
behaviour adheres to existing spec, highlights where we're diverging,
and also shows us where we need to introduce new behaviour. It also
provides a snapshot - if the spec introduces new prose we can easily see
where we're out of date.
This commit has no functional changes, it's just code comments.
| Assignee | ||
Comment 5•4 months ago
|
||
This splits out the HidePopoverStackUntil function from HideAllPopoversUntil.
Splitting this out isn't strictly necessary as it's only called once at current,
but as we support popover=hint it'll need to be called twice, and having it
split out also makes it clearer when checking our code against the spec.
As a consequence of this split, the closeAllOpenPopovers lambda also
needs to be split into a function - CloseEntirePopoverList. This
is a separate algorithm in the spec, but also it's called from both
HidePopoverStackUntil and HideAllPopoversUntil.
| Assignee | ||
Comment 6•4 months ago
|
||
PopoverOpenedInMode forces popovers to have a fixed state during their opened
lifetime, which may be different from the attribute state. They can use the
PopoverAttributeState as they can only be opened in modes that match their
attribute state.
This change introduces this new mode in the minimum ally viable way -
introducing it just for the check in HideAllPopoversUntil step 7; and the
callsites where it is set.
| Assignee | ||
Comment 7•4 months ago
|
||
Some of the steps in ShowPopover were already implemented, but in slightly
different ways compared to the current state of the spec. This commit moves
those particular lines of code around to be more aligned to the spec, in
preparation for popover=hint.
There are no functional changes in this commit, behaviour should be
identical.
| Assignee | ||
Comment 8•4 months ago
|
||
The methods CloseEntirePopoverList, HidePopoverStackUntil, AutoPopoverList, and
IsAutoPopover all either take a popover list (of hint or auto) or have
equivalent methods (e.g. HintPopoverList). In order to introduce popover=hint,
this change refactors these methods to take a PopoverAttributeState which
determines the "opened in mode" to filter the popover list by, ensuring that
these methods can act on either Auto or Hint popovers.
This change has no behavioural changes - everything should function the
same - but it is preparatory work for popover=hint.
Updated•4 months ago
|
Comment 10•4 months ago
|
||
| Assignee | ||
Comment 11•4 months ago
|
||
Comment 12•4 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/298ba2b1a98f
https://hg.mozilla.org/mozilla-central/rev/9d6b3f84d113
https://hg.mozilla.org/mozilla-central/rev/f44c5814c8f4
https://hg.mozilla.org/mozilla-central/rev/4f5ddfd1c415
https://hg.mozilla.org/mozilla-central/rev/c8d21baa3c77
https://hg.mozilla.org/mozilla-central/rev/9c7385b8d7a8
| Assignee | ||
Updated•4 months ago
|
| Assignee | ||
Updated•4 months ago
|
Updated•4 months ago
|
| Assignee | ||
Updated•3 months ago
|
Comment 13•3 months ago
|
||
Comment 15•3 months ago
|
||
Comment 16•3 months ago
|
||
Reverted this because it was causing linting opt failures.
- Revert link
- Push with failures
- Failure Log
- Failure line: TEST-UNEXPECTED-ERROR | /builds/worker/checkouts/gecko/testing/web-platform/tests/html/semantics/popovers/WEB_FEATURES.yml:0 | The WEB_FEATURES.yml file references a test that does not exist: '!popover-light-dismiss-hint.html' (MISSING-WEB-FEATURES-FILE)
| Assignee | ||
Updated•3 months ago
|
Comment 18•3 months ago
|
||
Comment 19•3 months ago
|
||
Comment 20•3 months ago
|
||
Backed out for causing ba failures @browser_relations_domain_popoverinvokerisdetails.js.
| Assignee | ||
Updated•3 months ago
|
Updated•3 months ago
|
Updated•3 months ago
|
Comment 21•3 months ago
|
||
Comment 22•3 months ago
|
||
Comment 23•3 months ago
•
|
||
Backed out for causing reftest failures @ GlobalStyleSheetCache.cpp
| Assignee | ||
Updated•3 months ago
|
Comment 24•3 months ago
|
||
Comment 25•3 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/4ba2c666992c
https://hg.mozilla.org/mozilla-central/rev/6293507d171b
Comment 26•2 months ago
|
||
Please request an addition to 149 release notes, thanks.
https://wiki.mozilla.org/Release_Management/Release_Notes_Nomination
| Assignee | ||
Comment 27•2 months ago
|
||
Release Note Request (optional, but appreciated)
[Why is this notable]: Added support for popover=hint
[Affects Firefox for Android]: Yes
[Suggested wording]: Added support for popover=hint
[Links (documentation, blog post, etc)]: https://developer.mozilla.org/en-US/docs/Web/API/Popover_API/Using#using_hint_popover_state
Comment 28•2 months ago
|
||
Note added to our 149 nightly release notes in the Web Platform section with this wording:
Added support for the HTML attribute
popover="hint".
I am keeping the relnote-firefox? flag set until we include this note in our final 149 release notes, thanks.
Updated•2 months ago
|
Updated•2 months ago
|
Comment 29•2 months ago
|
||
Related issues and pull requests
Updated•1 month ago
|
| Assignee | ||
Comment 30•1 month ago
|
||
Comment 31•1 month ago
|
||
A patch has been attached on this bug, which was already closed. Filing a separate bug will ensure better tracking. If this was not by mistake and further action is needed, please alert the appropriate party. (Or: if the patch doesn't change behavior -- e.g. landing a test case, or fixing a typo -- then feel free to disregard this message)
Updated•1 month ago
|
Description
•