Bug 115488
Summary: | onbeforeunload prompter is now missing some important words | ||
---|---|---|---|
Product: | WebKit | Reporter: | Grant Gayed <grant_gayed> |
Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
Status: | UNCONFIRMED | ||
Severity: | Normal | CC: | bugs-noreply |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Grant Gayed
- observed in WebKitGTK 2.0.1, WebKit1 API, gtk 2.24.x
Steps:
- add the following to any page:
<script>
function closeIt() {
return "This page has unsaved changes.";
}
window.onbeforeunload = closeIt;
</script>
- view the page and then navigate away from it
- a prompter is shown with just "This page has unsaved changes.", and OK/Cancel buttons, but indication of what they mean
In previous releases the prompter had additional words like "Are you sure you want to navigate away? <page-provided message> Press OK to go, or Cancel to stay". These words are important because onbeforeunload implementers are not generally expected to provide the OK/Cancel button instructions, especially since different browsers have differently-labelled buttons in their prompters.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Grant Gayed
(In reply to comment #0)
> but indication
but no indication
Grant Gayed
Actually I'm getting my renderers mixed up, it looks like WebKitGTK's onbeforeunload prompter has never had words like these (but the others do).