Commits on Oct 17, 2018
  1. Return nullable WindowProxy from, name, features)

    dguenther authored and domenic committed Oct 17, 2018
    This overload delegates to the window open steps, which can return null.
    Fixes #4091.
Commits on Oct 15, 2018
Commits on Oct 12, 2018
Commits on Oct 11, 2018
  1. Correct WindowProxy's [[Set]]

    annevk authored and domenic committed Oct 11, 2018
    * Explain why [[Get]] and [[Set]] pass this instead of W.
    * Remove a source reference to an addressed JavaScript issue.
    Fixes #4064.
  2. Editorial: remove spurious double quote

    annevk committed Oct 11, 2018
    And adjust wrapping and wording slightly around the noopener feature and boolean window feature parsing.
  3. Specify parsing of 'noopener' feature in

    cdumez authored and zcorpan committed Oct 11, 2018
    Specify parsing of 'noopener' feature in so that noopener is only set to true
    if the value is either:
    - The empty string.
    - The string "yes".
    - The value is not 0 or an error when parsed as an integer.
    Fixes #2600.
Commits on Oct 9, 2018
  1. Change how module scripts are fetched

    annevk authored and domenic committed Oct 9, 2018
    * Module scripts are always fetched with request credentials mode
      "same-origin" by default, instead of the previous default of "omit".
      Only worker module scripts can still set that to "omit", using the
      credentials option to the Worker constructor. Non-worker module
      scripts, which only have the crossorigin="" attribute available, can
      only toggle between "same-origin" and "include", similar to how
      crossorigin="" works for other platform features.
    * Similarly, import() statements inside of classic scripts now use the
      "same-origin" credentials mode, instead of "omit". This affects both
      <script> elements, where the default can be changed using
      crossorigin="", and other contexts like javascript: URLs and classic
      worker scripts, where the default cannot be changed.
    * The top-level script for module workers is always fetched with request
      mode "same-origin". Cross-origin workers did not quite work due to
      service workers.
    Fixes #2557. Fixes #3109.
    * web-platform-tests/wpt#11274
    * web-platform-tests/wpt#13176
    * web-platform-tests/wpt#13426
  2. Fix srcset attribute guidelines

    Johanna-hub authored and annevk committed Oct 9, 2018
    Conformance requirement for the width descriptor is about the sizes attribute, not the srcset attribute.
    Fixes #3250.
Commits on Oct 8, 2018
  1. Change an exception name in to "InvalidAccessError"

    foolip authored and domenic committed Oct 8, 2018
    This was changed in #2672 without
    being explicitly discussed. This was discovered because the tests
    still match the old behavior:
  2. Create a new reserved environment for cross-origin redirects

    mattto authored and annevk committed Oct 8, 2018
    Previously, a navigation would create a reserved environment once and use it for all redirects. This commit changes that so a new environment is created on a cross-origin redirect.
    We now also run CSP for each redirect.
    See also w3c/ServiceWorker#1316.
Commits on Oct 5, 2018
  1. Add initStorageEvent()

    foolip committed Oct 3, 2018
Commits on Sep 19, 2018
  1. Revamp how fieldset and legend rendering is defined

    zcorpan committed Sep 19, 2018
    Properly define the rendering of the fieldset and legend elements.
    The layout model used is most similar to Gecko, which uses an anonymous box to hold the fieldset's contents.
    Fixes #3955, fixes #3930, fixes #3929, fixes #3928, fixes #3927, fixes #3915, fixes #3913, fixes #3660, fixes #3331, fixes #2756, fixes #4013.
Commits on Sep 17, 2018
  1. Revert "Add advances to TextMetrics and change baselines API"

    domenic committed Sep 17, 2018
    This reverts commit 7711a1f. As
    discussed in #3995, these changes were made prematurely without
    appropriate implementer sign-off. Since then, a plethora of issues
    around the changes here have been opened up (e.g. #3994, #4023, #4026,
    #4030, #4033, #4034). We revert these changes until a more complete and
    agreed-upon specification can replace them.
    Closes #3995.
Commits on Sep 14, 2018
  1. Meta: export WindowProxy's [[Window]] definition

    TimothyGu authored and annevk committed Sep 14, 2018
    This will be used in Web IDL.
Commits on Sep 13, 2018
  1. Add "autoplay" policy-controlled feature

    clelland authored and domenic committed Sep 13, 2018
    This defines "autoplay" as a policy-controlled feature which can be used
    to disable autoplaying videos in any frame. It also adds a new section
    where policy-controlled features defined in HTML can be listed.
Commits on Sep 12, 2018
  1. Add the enterkeyhint="" attribute

    dtapuska authored and domenic committed Sep 12, 2018
    This allows an author to configure what type of icon is displayed in
    place of the enter key on virtual keyboards.
    Tests: web-platform-tests/wpt#12972
  2. Editorial: use VoidFunction instead of Function in queueMicrotask()

    yuki3 authored and domenic committed Sep 12, 2018
    queueMicrotask() doesn't pass any arguments or return any values, so
    VoidFunction is a better fit than Function. This does not change the
    processing model, but is easier for implementers and code generators.
  3. Meta: update some syntax highlighting stuff

    domenic committed Aug 13, 2018
    * Makes "bad" examples fit the current code block style, instead of
      removing their background.
    * Marks ABNF code as such. This will require html-build tweaks to have
      an effect.
    * Adds syntax highlighting styles to the dev edition. Closes #3755.
    * Removes no-longer-necessary [hidden] rule, per
      whatwg/ (comment).
  4. Main part of the content has a dedicated element

    annevk committed Jul 26, 2018
    This was missed in 1dec930.
    Fixes #3795.
Commits on Sep 10, 2018
  1. Editorial: hexademical ➡️ hexadecimal

    Yay295 authored and annevk committed Sep 10, 2018
    Fixes #4006.
Commits on Sep 7, 2018
  1. Check there is a browsing context in's abort step

    TimothyGu authored and domenic committed Sep 7, 2018
    This was missed in #3999.
Commits on Sep 6, 2018
  1. Tweak how accesskey on legend works

    zcorpan committed Sep 6, 2018
    Fixes #3950.
    Tests: web-platform-tests/wpt#12800
    * Don't special-case focusable legend, like Edge/Chrome/Safari
    * Fix grammar
    * Fix wording
    * Use lists to make it less ambiguous
    * and
    * Address domenic's comments
    * Add an example
    * Source formatting nits
  2. only abort when there is a navigation

    TimothyGu authored and domenic committed Sep 6, 2018
    This implements the "ideal 2" plan in #3975, which was found to be
    compatible with the existing Chrome test suite while being reasonably
    Closes #3651.
    Fixes #3975.
    Tests: web-platform-tests/wpt#10789
Commits on Sep 5, 2018
  1. Meta: wrap IDL block in <code> for consistency

    foolip authored and domenic committed Sep 5, 2018
    This was added in #3677. As
    discovered in tidoust/reffy#125, this is the
    only case that isn't wrapped in <code> in addition to <pre>.
  2. Remove unnecessary security check from measureText()

    annevk authored and domenic committed Sep 5, 2018
    Fonts have no origins. This was missed in
    Fixes #3992.
Commits on Sep 4, 2018
  1. Allow to be called on non-active documents

    TimothyGu authored and domenic committed Sep 4, 2018
    There is no longer anything fundamental that prevents
    from being useful on non-active documents. This also aligns with Chrome,
    Edge, and Safari. In fact, some developers already utilize this property
    as a streaming HTML parser to desirable effect (see #2827).
    Additionally, use a more appropriate guard for erasing event listeners
    and handlers on the Window object, as revealed by the tests.
    Fixes #2827.
    Tests: web-platform-tests/wpt#12636
    Tests: web-platform-tests/wpt#12770
Commits on Aug 31, 2018
  1. Match TextMetrics emHeightDescent with the rest of the API

    fserb authored and domenic committed Aug 31, 2018
    "emHeightDescent" was the only descent where "positive" meant "above the baseline". This fixes that and makes it more aligned with the other descents, where "positive" means "below the baseline".
Commits on Aug 30, 2018
  1. Add advances to TextMetrics and change baselines API

    fserb authored and domenic committed Aug 30, 2018
    This changes the canvas TextMetrics interface mixin in two ways:
    * It adds an advances attribute, for the advances of each character.
    * It changes the baselines-retrieval API from separate attributes to a
      dictionary returned by a getBaselines() method.
  2. Annotate OffscreenCanvas attributes with [EnforceRange]

    peria authored and annevk committed Aug 30, 2018
    Tests: offscreen-canvas/the-offscreen-canvas/offscreencanvas.constructor.html in wpt.
    Fixes #3540.
Commits on Aug 29, 2018
  1. remove fragment before propagating entry document's URL

    TimothyGu authored and annevk committed Aug 29, 2018
    This is another part of the effort to overhaul as outlined in #3818.
    Tests: web-platform-tests/wpt#10817.
    Fixes #2555.
Commits on Aug 28, 2018
  1. Make set the document to no-quirks

    TimothyGu authored and annevk committed Aug 28, 2018
    Per investigation in #3818, this change aligns the behavior of with Chrome and Safari.
    Tests: web-platform-tests/wpt#10679.
    Closes #3831.
Commits on Aug 27, 2018
  1. Add requestAnimationFrame() in workers

    fserb authored and domenic committed Aug 27, 2018
    Fixes #3587. Based on the proposal at
    This introduces a new AnimationFrameProvider mixin interface to contain
    requestAnimationFrame() and cancelAnimationFrame(). It's included in
    Window and DedicatedWorkerGlobalScope. In addition to generalizing them
    to work on both objects, the two methods were rewritten editorially to
    be based on Infra primitives.
    This change also introduces the concept of updating the rendering of
    worker event loops.