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

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>14137</bug_id>
          
          <creation_ts>2011-09-13 11:35:56 +0000</creation_ts>
          <short_desc>Just want to add - don&apos;t get hung up on the process/thread stuff.  It is just a metaphor.  I don&apos;t really care how it is implemented.  One could do it all in one process.  The present design fits the process model nicely.  There is no sharing of memory.</short_desc>
          <delta_ts>2011-09-13 19:43:23 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>Web Workers (editor: Ian Hickson)</component>
          <version>unspecified</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>14086</dup_id>
          
          <bug_file_loc>http://www.whatwg.org/specs/web-apps/current-work/#top</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>contributor</reporter>
          <assigned_to name="Ian &apos;Hixie&apos; Hickson">ian</assigned_to>
          <cc>art.barstow</cc>
    
    <cc>ayg</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>56735</commentid>
    <comment_count>0</comment_count>
    <who name="">contributor</who>
    <bug_when>2011-09-13 11:35:56 +0000</bug_when>
    <thetext>Specification: http://www.w3.org/TR/2011/WD-workers-20110901/
Multipage: http://www.whatwg.org/C#top
Complete: http://www.whatwg.org/c#top

Comment:
Just want to add - don&apos;t get hung up on the process/thread stuff.  It is just
a metaphor.  I don&apos;t really care how it is implemented.  One could do it all
in one process.  The present design fits the process model nicely.  There is
no sharing of memory.  However, the design decision to make the DOM
inaccessible is, I hope I have shown, unnecessary.  Regardless of how the
browser is presently implemented (eg threads for Firefox), there IS a way to
put in the DOM.

Every browser that I know of can have two web pages open at once.  Those 2 web
pages both have a DOM, they don&apos;t share a DOM.	Some browsers implement this
as 2 different processes, some as 2 threads.

The approach of having the web worker have a DOM seems to be the least amount
of work to do for implementers, and does not give developers more strange
rules to remember (oh yeah, I cannot user the window object, I cannot use the
setInterval() or alert(),  but wait, the W3C kludged some stuff on to allow me
to do some of that)...

Posted from: 199.89.158.132
User agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56737</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Pieters">zcorpan</who>
    <bug_when>2011-09-13 12:19:17 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 14086 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56757</commentid>
    <comment_count>2</comment_count>
    <who name="Aryeh Gregor">ayg</who>
    <bug_when>2011-09-13 19:43:23 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; Every browser that I know of can have two web pages open at once.  Those 2 web
&gt; pages both have a DOM, they don&apos;t share a DOM.    Some browsers implement this
&gt; as 2 different processes, some as 2 threads.

This is where you&apos;re mistaken.  Some browsers (Firefox?) have one thread for all pages.  They cannot support two threads both accessing DOMs, even different DOMs, because their implementation is not thread-safe at all.  Different pages can both access DOMs because they&apos;re actually on the same thread.

(I think.)</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>