Bug 115488 - onbeforeunload prompter is now missing some important words
Summary: onbeforeunload prompter is now missing some important words
Status: UNCONFIRMED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKitGTK (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-01 13:18 PDT by Grant Gayed
Modified: 2017-03-11 10:52 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Grant Gayed 2013-05-01 13:18:51 PDT
- 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.
Comment 1 Grant Gayed 2013-05-01 13:19:48 PDT
(In reply to comment #0)
> but indication

but no indication
Comment 2 Grant Gayed 2013-05-01 13:54:27 PDT
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).