Closed Bug 207111 Opened 22 years ago Closed 22 years ago

Clicking on a link in javascript console throws an exception

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 173879

People

(Reporter: steffen.wilberg, Assigned: bugzilla)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030525 Mozilla Firebird/0.6 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030525 Mozilla Firebird/0.6 If you click on a link in javscript console, it displays an exception. View Source entered this way has got Mozilla-specific menu items. Some of them do not work. Reproducible: Always Steps to Reproduce: 1. Open Javascript console. 2. Look for a link in it. If you can't find one, browse to http://java.sun.com/getjava/ 3. Click on the url (not beneath it). Actual Results: 1. The url in the js console is not formatted like a link, e.g. blue and underlined. 2. JS console shows this exception: Error: uncaught exception: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIPrefBranch.getIntPref]" nsresult: "0x8000ffff (NS_ERROR_UNEXPECTED)" location: "JS frame :: chrome://cookie/content/cookieTasksOverlay.xul :: CookieTasksStartup :: line 84" data: no] 3. A View Source window opens and jumps to the line of the error (new Mozilla feature). It has several menu items from the Mozilla version of View Source: Menu File-New-Navigator Window, Composer Page (doesn't work), Message (my email client opens a new message); Menu File-Edit Page, Page Setup; Menu Edit-Goto line, Find Previous, Find Text as you type; Menu View-Text Zoom; Menu Help-Release Notes, About Plug-ins, About Mozilla Firebird. Expected Results: 1. The url in the url console should be formatted like a link. 2. There should be no exception. 3. The View Source window entered from the js console should show the same menu items as the normal one. They should both contain useful items such as Edit-Goto line, Find Previous, Find Text as you type and View-Text Zoom.
Steffen, for the problem mentioned in the summary (problem 2 in your bug report) there already exists a bug #173879. Problem 1) can be reproduced using latest MozillaFirebird Gecko/20030526 - though I used a different URI (hhtp://www.frankfurt-galaxy.de) to get a JS error Problem 3) can also be reproduced using above mentioned Mozilla Firebird To avoid confusion and to seperate different problems I'd suggest to duplicate this one because of bug #173879 and to open two seperate bugs for the remaining two problems! *** This bug has been marked as a duplicate of 173879 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Summary: Clicking on a link in javascript console throws an exception and opens View Source with Mozilla-specific menu items → Clicking on a link in javascript console throws an exception
Bug 173879 does indeed cover problem 2. I didn't realize that it isn't limited to opening View Source from the js console. Problem 1) filed as bug 207403. Problem 2) files as bug 207406.
verified.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.