Instant evaluation called on expression using Function.prototype.call.bind(Function.prototype.call) but shouldn't
Categories
(DevTools :: Console, defect, P2)
Tracking
(firefox105 verified)
| Tracking | Status | |
|---|---|---|
| firefox105 | --- | verified |
People
(Reporter: alanas.00, Assigned: arai)
References
(Blocks 1 open bug)
Details
Attachments
(2 external files)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0
Steps to reproduce:
- press F12
- select console tab
- make sure "Instant Evaluation" is on
- copy+paste "Function.prototype.call.bind(Function.prototype.call)(document.write,document,'<h1>why did <code>document.write</code> execute?</h1>');" without pressing enter
https://www.reddit.com/r/firefox/comments/pvojtj/running_stuff_in_javascript_console_without/
Actual results:
document.write executed and page changed to "why did document.write execute?"
Expected results:
page not changed and document.write not executed because it has side effects (same as if you copy+paste "document.write('<h1>why did <code>document.write</code> execute?</h1>');" without pressing enter)
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
Updated•5 years ago
|
| Assignee | ||
Updated•4 years ago
|
| Assignee | ||
Comment 5•4 years ago
|
||
Depends on D152348
| Assignee | ||
Comment 6•4 years ago
|
||
Depends on D152349
Comment 7•4 years ago
|
||
The severity field for this bug is relatively low, S3. However, the bug has 3 duplicates.
:arai, could you consider increasing the bug severity?
For more information, please visit auto_nag documentation.
| Assignee | ||
Comment 8•4 years ago
|
||
This is not security sensitive (the hidden one is also not security sensitive. it needs to be opened up by someone who has privilege).
While it's nice to fix, this is not major issue nor blocker, in my opinion.
Comment 10•4 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/dacb2580cb23
https://hg.mozilla.org/mozilla-central/rev/e5706a3cddeb
Updated•4 years ago
|
I was able to reproduce this issue on Firefox 104.0(build ID: 20220818191623) on Ubuntu 22.04 using the STR from the Description. Verified as fixed on Firefox 105.0b7(build ID: 20220904185841) and Nightly 106.0a1(build ID: 20220905214329) on Ubuntu 22.04, Windows 10, macOS 12.
Description
•