Bug 78143 - REGRESSION (5.1.3 - ToT): doesn't open some webarchive files
Summary: REGRESSION (5.1.3 - ToT): doesn't open some webarchive files
Alias: None
Product: WebKit
Classification: Unclassified
Component: Page Loading (show other bugs)
Version: 528+ (Nightly build)
Hardware: Macintosh Intel OS X 10.7
: P1 Normal
Assignee: Nobody
: 78317 (view as bug list)
Depends on:
Reported: 2012-02-08 12:54 PST by clear111
Modified: 2012-02-10 10:53 PST (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description clear111 2012-02-08 12:54:21 PST
I have eight webarchive files from 2009. When double-clicked, they all open instantly in Safari Version 5.1.3 (7534.53.10). When dragged to the WebKit icon, seven try to open, but they just try and try, and nothing happens. The eighth one opens.
[WebKit version: I don't recognize the numbers on your web page. When I do an info on the WebKit icon, it reads: r107100, Copyright 2005-2009 Apple Inc. I'm not a programmer and don't know much about these matters.]
Comment 1 Alexey Proskuryakov 2012-02-09 10:48:52 PST
Could you please attach the affected files? 

This sounds like a bad problem, but there is not much we can do to fix it if there is no way to reproduce.
Comment 2 Alexey Proskuryakov 2012-02-09 22:21:43 PST
*** Bug 78317 has been marked as a duplicate of this bug. ***
Comment 3 Alexey Proskuryakov 2012-02-10 10:45:01 PST
Response was posted to duplicate bug:

Description From clear111@hotmail.com 2012-02-09 19:24:24 PST (-) [reply]
The files are from an internet dating site, and are very personal, so unfortunately I cannot share them.
I don’t remember if I mentioned that they were from 2009. Perhaps something changed after that time, in the webarchive files are written or read. I also don’t remember if I mentioned that the regular Safari opens them without a problem. Is there a difference in the way a webarchive file is read and interpreted, between the regular Safari and WebKit?

Wait a minute! I think that I’ve figured it out!

The files that WebKit couldn’t open all begin with a date and time containing slashes! Sometimes the OS tolerates slashes in a file name, and sometimes it doesn’t. I don’t know why that is, but a friend with a new MacBook Air had file names with slashes, and the OS opened some of them but not others! The app was Pages.

Here are three file names that WebKit couldn’t open: 
03/24/2009 11-15 AM.webarchive

The file name that it could open is: xxxxxxxxxxX0X0 profile.webarchive
The lower case x-es represent lower case letters in the file name, the upper case X-es represent upper case letters in the file name, and the 0-s represent numbers in the file name.

You could try changing the name of a webarchive file that you have to 03/24/2009 11-15 AM.webarchive and see what happens when you try to open it.

BTW, I’m using an iMac with Mac OS 10.7.3.

Comment 4 Alexey Proskuryakov 2012-02-10 10:53:18 PST
I could not reproduce this by renaming a WebArchive, or by saving a new file from a page that had slashes in title.