Closed Bug 801982 Opened 12 years ago Closed 12 years ago

Scratchpad doesn't show confirmation dialog after opening a file

Categories

(DevTools Graveyard :: Scratchpad, defect)

x86_64
All
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
Firefox 19

People

(Reporter: anton, Assigned: anton)

Details

Attachments

(1 file, 2 obsolete files)

How to reproduce:

 * Open Scratchpad
 * Load a new file
 * Change its contents
 * Try closing Scratchpad by clicking on X (not a menu item)

Expected result: a dialog asking you to save changes.
Actual result: Scratchpad closes and your changes are lost.
Assignee: nobody → anton
Status: NEW → ASSIGNED
Attachment #671694 - Flags: review?(fayearthur)
Heather (correctly) noticed that we don't need _skipClosePrompt at all since window.close doesn't trigger a "close" event. I tested manually and run all Scratchpad tests (on Ubuntu).
Attachment #671694 - Attachment is obsolete: true
Attachment #671694 - Flags: review?(fayearthur)
Attachment #672061 - Flags: review?(fayearthur)
Attachment #672061 - Flags: review?(fayearthur) → review+
Whiteboard: [land-in-fx-team]
https://hg.mozilla.org/integration/fx-team/rev/0c63519f8e41
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
Backed out for failing scratchpad test on Win XP debug:

https://hg.mozilla.org/integration/fx-team/rev/f39343285fc1
Whiteboard: [fixed-in-fx-team]
Updated patch to prevent potential race condition when testing |Scratchpad.onClose|. This method now accepts an optional callback, just like |Scratchpad.close|.

Try build for this patch: https://tbpl.mozilla.org/?tree=Try&rev=f5a74664ba5f (no related oranges).
Attachment #672061 - Attachment is obsolete: true
Attachment #672879 - Flags: review?(fayearthur)
Comment on attachment 672879 [details] [diff] [review]
Removed all _skipClosePrompt instances and added a regression test

Looks good, I like the code removal.
Attachment #672879 - Flags: review?(fayearthur) → review+
Whiteboard: [land-in-fx-team]
https://hg.mozilla.org/integration/fx-team/rev/4067355bbc56
Whiteboard: [land-in-fx-team] → [fixed-in-fx-team]
https://hg.mozilla.org/mozilla-central/rev/4067355bbc56
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [fixed-in-fx-team]
Target Milestone: --- → Firefox 19
Product: Firefox → DevTools
Product: DevTools → DevTools Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: