Closed Bug 784164 Opened 13 years ago Closed 12 years ago

window.location.replace('#anchor') does not work in Scratchpad

Categories

(DevTools Graveyard :: Scratchpad, defect, P3)

x86
Windows 7
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: alice0775, Unassigned)

Details

Build Identifier: http://hg.mozilla.org/mozilla-central/rev/c676b554c7bb Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Firefox/17.0 ID:20120820030522 window.location.replace('#anchor') does not work in Scratchpad. However, it works if executed in WebConsole. Steps To Reproduce: 1. Open forums.mozillazine.org/viewtopic.php?f=23&t=2518013&p=12213191 2. Open Tools – Web Developer – Scratchpad (Shgt+F4) 3. Paste and Run the following window.location.replace('#p12213191'); Actual Results: Exception: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMLocation.replace] Expected Results: Page Scroll to the anchor.
Priority: -- → P3
This appears to have been fixed.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.