Closed
Bug 793031
Opened 12 years ago
Closed 12 years ago
Open recent file fails if the file doesn't exists anymore
Categories
(DevTools Graveyard :: Scratchpad, defect, P2)
DevTools Graveyard
Scratchpad
Tracking
(Not tracked)
RESOLVED
FIXED
Firefox 19
People
(Reporter: andreshm, Assigned: johan.charlez)
References
Details
(Whiteboard: [fixed-in-fx-team])
Attachments
(1 file, 7 obsolete files)
6.75 KB,
patch
|
rcampbell
:
review+
|
Details | Diff | Splinter Review |
The issue is when you open a file using the File > Open Recent menu, but the file doesn't exists anymore.
Currently it shows two selected items in the list and there is an error in console:
JavaScript error: resource://gre/modules/NetUtil.jsm, line 165: NS_ERROR_FILE_NOT_FOUND: Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIChannel.asyncOpen]
I suggest to open the file picker and remove/update the entry on the recent list.
Comment 1•12 years ago
|
||
Hi Andres. Thanks for the bug report. Good catch.
WIP patch:
I'm using the nofication bar to tell the user if a file doesn't exist.
Thoughts?
Assignee: nobody → johan.charlez
Status: NEW → ASSIGNED
Attachment #663543 -
Flags: review?(rcampbell)
Attachment #663545 -
Flags: ui-review?(rcampbell)
Comment 4•12 years ago
|
||
Comment on attachment 663543 [details] [diff] [review]
patch 1 wip
should at least clear the entry from the recent files list too.
Attachment #663543 -
Flags: review?(rcampbell)
Introduced a new method for clearing one or more files.
* Clears the file from the menu.
Attachment #663543 -
Attachment is obsolete: true
Attachment #663571 -
Flags: review?(rcampbell)
Comment 7•12 years ago
|
||
Comment on attachment 663545 [details]
Screenshot 1 of patch 1
The language feels a little funny here. Mostly the "you" makes it sound like we're having a conversation with the user.
How about, "This file no longer exists."?
Attachment #663545 -
Flags: ui-review?(rcampbell)
Comment 8•12 years ago
|
||
Comment on attachment 663571 [details] [diff] [review]
patch 2 wip
looks good.
Thought about a test yet?
Attachment #663571 -
Flags: review?(rcampbell) → feedback+
Changes in this version:
1. Changed the name of the l10n-string from 'fileExists.notification' to 'fileNoLongerExists.notification'.
2. Added tests.
3. Changed the notification value from 'SCRATCHPAD_CONTEXT_BROWSER' to "file-no-longer-exists".
4. Changed the notification label per your feedback.
5. Rebased 2012-10-01.
Cheers!
Attachment #663545 -
Attachment is obsolete: true
Attachment #663571 -
Attachment is obsolete: true
Attachment #666664 -
Flags: review?(rcampbell)
Comment 10•12 years ago
|
||
Comment on attachment 666664 [details] [diff] [review]
patch 3
looks good! We should send this through the try servers for our amusement.
Attachment #666664 -
Flags: review?(rcampbell) → review+
Updated•12 years ago
|
Whiteboard: [try-run]
Comment 11•12 years ago
|
||
sorry for the delay, Johan.
Try results here:
https://tbpl.mozilla.org/?tree=Try&rev=a8a9a50ce32e
Updated•12 years ago
|
Whiteboard: [try-run] → [land-in-fx-team]
Comment 12•12 years ago
|
||
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
Comment 13•12 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 19
Comment 14•12 years ago
|
||
Unfortunately I had to back this out for causing bug 801660.
Backout:
https://hg.mozilla.org/integration/mozilla-inbound/rev/7703f0ec6770
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Target Milestone: Firefox 19 → ---
Comment 15•12 years ago
|
||
(In reply to Ed Morley [:edmorley UTC+1] from comment #14)
> Unfortunately I had to back this out for causing bug 801660.
>
> Backout:
> https://hg.mozilla.org/integration/mozilla-inbound/rev/7703f0ec6770
https://hg.mozilla.org/mozilla-central/rev/7703f0ec6770
Assignee | ||
Comment 16•12 years ago
|
||
Thank you Ed :)
This patch should hopefully fix the intermittent oranges.
Rob, could you take another look?
Changes from previous patch:
1. The test now removes 'gFile04' rather than 'gFile02'. 'gFile02' was the active file in Scratchpad and might have been what caused the failures.
2. Added the function 'waitForFileDeletion()'. This should make sure the file ('gFile04') has been removed before proceeding with the test.
Cheers!
Attachment #666664 -
Attachment is obsolete: true
Attachment #672046 -
Flags: review?(rcampbell)
Comment 17•12 years ago
|
||
Comment on attachment 672046 [details] [diff] [review]
patch 4
+function waitForFileDeletion() {
+ if (gFile04.exists()) {
+ setTimeout(waitForFileDeletion, 0);
you can use executeSoon() instead of setTimeout() here. Otherwise looks good. I'll send it through the try gauntlet.
Attachment #672046 -
Flags: review?(rcampbell) → review+
Assignee | ||
Comment 18•12 years ago
|
||
* Use executeSoon() instead of setTimeout().
Carrying forward r+ from 'patch 4'.
Attachment #672885 -
Flags: review+
Assignee | ||
Comment 19•12 years ago
|
||
Rebased,
cheers!
Attachment #672046 -
Attachment is obsolete: true
Attachment #672885 -
Attachment is obsolete: true
Attachment #673877 -
Flags: review?(rcampbell)
Updated•12 years ago
|
Priority: -- → P2
Comment 20•12 years ago
|
||
Comment on attachment 673877 [details] [diff] [review]
patch 4.2
this should work
Attachment #673877 -
Flags: review?(rcampbell) → review+
Updated•12 years ago
|
Whiteboard: [land-in-fx-team]
Assignee | ||
Comment 22•12 years ago
|
||
rebased
Attachment #673877 -
Attachment is obsolete: true
Attachment #678870 -
Flags: review?(rcampbell)
Updated•12 years ago
|
Attachment #678870 -
Flags: review?(rcampbell) → review+
Comment 23•12 years ago
|
||
https://hg.mozilla.org/integration/fx-team/rev/fd245024ffad
\o/
Thanks, Johan!
Whiteboard: [fixed-in-fx-team]
Comment 24•12 years ago
|
||
This landed on m-c some time ago, but the bugs were not updated:
https://hg.mozilla.org/mozilla-central/rev/fd245024ffad
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → Firefox 19
Updated•6 years ago
|
Product: Firefox → DevTools
Updated•5 years ago
|
Product: DevTools → DevTools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•