<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>260778</bug_id>
          
          <creation_ts>2023-08-27 13:32:20 -0700</creation_ts>
          <short_desc>[GTK] XDG extended attributes spec support</short_desc>
          <delta_ts>2023-09-23 09:56:23 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Avid Seeker">avidseeker7</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ap</cc>
    
    <cc>bugs-noreply</cc>
    
    <cc>ie2kl43y</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1973832</commentid>
    <comment_count>0</comment_count>
    <who name="Avid Seeker">avidseeker7</who>
    <bug_when>2023-08-27 13:32:20 -0700</bug_when>
    <thetext>XDG Extended Attributes guidelines include metadata about files that is supported on the file system level. Many programs attach this metadata to downloaded or produced files, and it would seem a useful feature to attach some metadata to downloaded files.

Steps to reproduce:
Download a webpage on xattr-supported file system.

Actual results:
user.xdg.origin and user.xdg.referrer extended attributes are not set.

Expected results:
Set user.xdg.origin and user.xdg.referrer as per Freedesktop standard: https://www.freedesktop.org/wiki/CommonExtendedAttributes/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973922</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-08-28 07:42:21 -0700</bug_when>
    <thetext>Moving from https://gitlab.gnome.org/GNOME/epiphany/-/issues/2165, as I mentioned there, the standard has no mention of user.xdg.referrer. It would be of questionable utility anyway: what would you ever want to use that for? 

We could set user.xdg.origin.url though.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973923</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-08-28 07:43:14 -0700</bug_when>
    <thetext>I&apos;d like to ensure that at least Firefox or Chrome already does this, though, because users might be very surprised if we add extra metadata to downloaded files that other web browsers do not add.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973959</commentid>
    <comment_count>3</comment_count>
    <who name="Alexey Proskuryakov">ap</who>
    <bug_when>2023-08-28 10:46:59 -0700</bug_when>
    <thetext>I&apos;m guessing that the point of referrer is probably that it&apos;s what the user thinks of as where they&apos;ve downloaded from. The trust comes from the referring HTML page, not from where the file is served from.

There is limited visibility for the user into the actual download URL, especially if there are redirects happening.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1975270</commentid>
    <comment_count>4</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-09-03 13:33:13 -0700</bug_when>
    <thetext>&lt;rdar://problem/114906279&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1975522</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-09-05 06:31:40 -0700</bug_when>
    <thetext>Discussion thread here, including some negative feedback from the nautilus developers: https://discourse.gnome.org/t/feat-xdg-extended-attribute-spec-support/16892</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>