From 5a26b73763dba394253f0b1ff55de5544beb1c8f Mon Sep 17 00:00:00 2001 From: Anne van Kesteren Date: Wed, 13 Mar 2019 15:05:31 +0100 Subject: [PATCH] Tie BarProp object lifetime to the Window object Also describe what happens when the browsing context is discarded. Tests: https://github.com/web-platform-tests/wpt/pull/15815. Fixes #2579. --- source | 41 ++++++++++++++++------------------------- 1 file changed, 16 insertions(+), 25 deletions(-) diff --git a/source b/source index c7bd43e1ec6..a09eee984f8 100644 --- a/source +++ b/source @@ -78443,8 +78443,7 @@ interface Window : Eve [Replaceable] readonly attribute BarProp personalbar; [Replaceable] readonly attribute BarProp scrollbars; [Replaceable] readonly attribute BarProp statusbar; - [Replaceable] readonly attribute BarProp toolbar; + [Replaceable] readonly attribute BarProp toolbar; attribute DOMString status; void close(); readonly attribute boolean closed; @@ -79203,7 +79202,6 @@ interface BarProp { };
-
window . locationbar . visible

Returns true if the location bar is visible; otherwise, returns false.

@@ -79234,45 +79232,45 @@ interface BarProp {

Returns true if the toolbar is visible; otherwise, returns false.

-
-

The visible attribute, on getting, must return either - true or a value determined by the user agent to most accurately represent the visibility state of - the user interface element that the object represents, as described below.

+

The visible attribute's getter must run these + steps:

-

The following BarProp objects exist for each Document object in a - browsing context. Some of the user interface elements represented by these objects - might have no equivalent in some user agents; for those user agents, except when otherwise - specified, the object must act as if it was present and visible (i.e. its visible attribute must return true).

+
    +
  1. If this BarProp object's relevant global object's browsing context is null, then return false. -

    +
  2. If the user agent does not have a user interface element that the object represents, as + described below, then return true.

  3. -
    The location bar BarProp object
    +
  4. Return true or a value determined by the user agent to most accurately represent the + visibility state of the user interface element that the object represents, as described + below.

  5. +
+

The following BarProp objects must exist for each Window object:

+ +
+
The location bar BarProp object
Represents the user interface element that contains a control that displays the URL of the active document, or some similar interface concept.
The menu bar BarProp object
-
Represents the user interface element that contains a list of commands in menu form, or some similar interface concept.
The personal bar BarProp object
-
Represents the user interface element that contains links to the user's favorite pages, or some similar interface concept.
The scrollbar BarProp object
-
Represents the user interface element that contains a scrolling mechanism, or some similar interface concept.
The status bar BarProp object
-
Represents a user interface element found immediately below or after the document, as appropriate for the user's media, which typically provides information about ongoing network activity or information about elements that the user's pointing device is current indicating. If @@ -79281,14 +79279,12 @@ interface BarProp { data-x="dom-BarProp-visible">visible attribute may return false).
The toolbar BarProp object
-
Represents the user interface element found immediately above or before the document, as appropriate for the user's media, which typically provides session history traversal controls (back and forward buttons, reload buttons, etc). If the user agent has no such user interface element, then the object may act as if the corresponding user interface element was absent (i.e. its visible attribute may return false).
-

The locationbar attribute must return @@ -79309,11 +79305,6 @@ interface BarProp {

The toolbar attribute must return the toolbar BarProp object.

- -

For historical reasons, the status attribute