Closed
Bug 1152602
Opened 9 years ago
Closed 9 years ago
Useless counter value in dom/workers/test/serviceworkers/importscript.sjs
Categories
(Core :: DOM: Core & HTML, defect)
Core
DOM: Core & HTML
Tracking
()
RESOLVED
FIXED
mozilla40
Tracking | Status | |
---|---|---|
firefox40 | --- | fixed |
People
(Reporter: ehsan.akhgari, Assigned: baku)
References
Details
Attachments
(1 file, 1 obsolete file)
683 bytes,
patch
|
ehsan.akhgari
:
review+
|
Details | Diff | Splinter Review |
The counter variable there is only ever read from... Is that test really doing what we want?
Flags: needinfo?(amarchesini)
Assignee | ||
Comment 1•9 years ago
|
||
Flags: needinfo?(amarchesini)
Attachment #8590127 -
Flags: review?(ehsan)
Reporter | ||
Comment 2•9 years ago
|
||
Comment on attachment 8590127 [details] [diff] [review] counter.patch Review of attachment 8590127 [details] [diff] [review]: ----------------------------------------------------------------- ::: dom/workers/test/serviceworkers/importscript.sjs @@ +2,5 @@ > function handleRequest(request, response) { > if (!counter) { > response.setHeader("Content-Type", "application/javascript", false); > response.write("callByScript();"); > + counter++; I'm not sure if this does the right thing. Have you tested this? As far as I know, global variables are not preserved across sjs runs. You probably need to use the getState/setState APIs: <https://dxr.mozilla.org/mozilla-central/source/netwerk/test/httpserver/nsIHttpServer.idl#184>
Attachment #8590127 -
Flags: review?(ehsan) → review-
Assignee | ||
Comment 3•9 years ago
|
||
Attachment #8590127 -
Attachment is obsolete: true
Attachment #8590433 -
Flags: review?(ehsan)
Reporter | ||
Updated•9 years ago
|
Attachment #8590433 -
Flags: review?(ehsan) → review+
Assignee | ||
Comment 4•9 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/89f9815da675
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → amarchesini
OS: Mac OS X → All
Hardware: x86 → All
Comment 5•9 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/89f9815da675
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox40:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla40
Updated•5 years ago
|
Component: DOM → DOM: Core & HTML
You need to log in
before you can comment on or make changes to this bug.
Description
•