Closed
Bug 1025871
Opened 11 years ago
Closed 11 years ago
Incorrect JavaScript execution when developer tools are open
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 998908
Tracking | Status | |
---|---|---|
firefox30 | --- | affected |
firefox31 | --- | unaffected |
People
(Reporter: artema, Unassigned)
Details
(Keywords: regression, testcase, Whiteboard: DUPEME)
Attachments
(3 files)
User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36
Steps to reproduce:
1. Open the developer tools.
2. Switch to the debugger tab.
3. Navigate to a page containing:
<script type="text/javascript">
(function(){
eval('var a=1; var b=(function(){ alert(typeof a) })()')
})();
</script>
Actual results:
Pop-up saying 'undefined'.
Expected results:
Pop-up saying 'number', since 'a' has type 'number'. This is what happens when developer tools are not open.
Reporter | ||
Comment 1•11 years ago
|
||
Reporter | ||
Comment 2•11 years ago
|
||
Reporter | ||
Comment 3•11 years ago
|
||
Actual user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:30.0) Gecko/20100101 Firefox/30.0
Comment 4•11 years ago
|
||
This wfm on Firefox 31, but breaks on 30. Jan, do you know whether there was just a fix which didn't get uplifted to 30 or something?
Status: UNCONFIRMED → NEW
status-firefox30:
--- → affected
status-firefox31:
--- → unaffected
Component: Untriaged → JavaScript Engine
Ever confirmed: true
Flags: needinfo?(jdemooij)
Keywords: regression,
testcase
OS: Linux → All
Product: Firefox → Core
Hardware: x86_64 → All
Whiteboard: DUPEME
Version: 29 Branch → 30 Branch
Comment 5•11 years ago
|
||
No idea.. This script should just run in the interpreter FWIW.
Maybe shu or jimb knows?
Flags: needinfo?(shu)
Flags: needinfo?(jimb)
Flags: needinfo?(jdemooij)
Comment 6•11 years ago
|
||
Shu, this looks a lot like bug 998908, can you confirm?
This test also has an inner function inside an eval, and fails in 30, works in 31.
![]() |
||
Comment 7•11 years ago
|
||
Progression window(m-i)
Bad:
https://hg.mozilla.org/integration/mozilla-inbound/rev/1fe69cad9713
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0 ID:20140429215012
Fixed:
https://hg.mozilla.org/integration/mozilla-inbound/rev/10e37b92e195
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0 ID:20140429215811
Progression pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=1fe69cad9713&tochange=10e37b92e195
Comment 8•11 years ago
|
||
Thanks again Alice, much appreciated. And Artem, thank you for reporting this.
(In reply to Alice0775 White from comment #7)
> Fixed:
> https://hg.mozilla.org/integration/mozilla-inbound/rev/10e37b92e195
> Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 Firefox/32.0
> ID:20140429215811
This means comment 6 is correct, this is a duplicate of bug 998908 and will be fixed in the next Firefox version (31).
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: needinfo?(shu)
Flags: needinfo?(jimb)
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•