Closed Bug 278422 Opened 20 years ago Closed 20 years ago

Image insert fails to get image

Categories

(SeaMonkey :: Composer, defect)

x86
Windows XP
defect
Not set
blocker

Tracking

(Not tracked)

VERIFIED DUPLICATE of bug 268311

People

(Reporter: tracy, Assigned: timeless)

Details

(Keywords: regression, smoketest)

seen on Windows Mozilla Trunk build 2005-01-14-09-trunk

-open composer
-select Insert | Image
-click Choose File
-find and image to insert and click open

tested results:
no image path or Image preview is shown in the Image Propertites dialog. Can't
insert an image.

expected results:
the path of the selected image is move to the Images Propertied dialog as well
as an Image preview displayed, then allowed to instert the image into the document.

expected
This also affects inserting an image into Mail message compose
not a problem using gtk2 moz bits on linux fc2.
Summary: Image insert fails to get image → Image insert fails to get image
fwiw, was using 2005-01-14-06 linux bits.
this also works for marcia on mac.
This exception appears when selecting a image in the file picker (after clicking
on the open button):
JavaScript error: , line 0: uncaught exception: [Exception... "Component returned
 failure code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIFilePicker.displayDirector
y]"  nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)"  location: "JS frame :: chro
me://editor/content/editorUtilities.js :: SaveFilePickerDirectory :: line 604"  d
ata: no]
Probably fallout from Bug 268311, timeless will look into this bug.
I also don't see the bug with a gtk2 build that's patched to use the XUL
filepicker, pulled at approx. 2005-01-14-14
Assignee: composer → timeless
linux/gtk1 build 2005011505 works fine as well.  I poked around the code and
pref settings trying to get it to fail as described in comment 5, but it always
worked fine.

people who are seeing this bug: if you start with a fresh profile, do you still
hit the bug the first time you try to insert an image?  The specific line in
comment 5 should be skipped on the first time through (with a pristine profile).

timeless said on IRC that he tested the codepath on windows and it seemed to
work, the image preview showed my image and everything and the file location was
properly prettified.
I put in a couple of printfs into nsBaseFilePicker.cpp but that seems to return
NS_OK so I don't understand why XPConnect is returning an error.
Doh, it's SetDisplayDirectory that's throwing the error...
The error was caused by setting the display directory to an uninitialised file.
However the file was obtained by getting the display directory :-(
This bug exists for all TB zip builds after version 0.6+ (20050113) which puts
it right in line with https://bugzilla.mozilla.org/show_bug.cgi?id=268311
I have checked TB zip builds on 2005014-2005016 ,all come up with a blank image
source after the file picker file selection. Typing a local file location into
the Image properties box, avoiding the file picker works OK.
This is with Winxp sp2
Do we need a specific Thunderbird bug for this.
> people who are seeing this bug: if you start with a fresh profile, do you still
> hit the bug the first time you try to insert an image?  The specific line in
> comment 5 should be skipped on the first time through (with a pristine profile).

yes, a clean install with a new profile displays this problem even on the first
attempt to insert an image.
Flags: blocking1.8b?

*** This bug has been marked as a duplicate of 268311 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
verified dupe
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.