Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Side by Side Diff: components/app_modal_strings.grdp

Issue 1714573002: Remove the ability of webpages to specify strings for the onbeforeunload dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <grit-part> 2 <grit-part>
3 3
4 <!-- JavaScript Dialog Box strings --> 4 <!-- JavaScript Dialog Box strings -->
5 <message name="IDS_JAVASCRIPT_MESSAGEBOX_TITLE" desc="Title for JavaScript pro mpt and confirm originating from a webpage"> 5 <message name="IDS_JAVASCRIPT_MESSAGEBOX_TITLE" desc="Title for JavaScript pro mpt and confirm originating from a webpage">
6 <ph name="SITE">$1<ex>http://www.google.com</ex></ph> says: 6 <ph name="SITE">$1<ex>http://www.google.com</ex></ph> says:
7 </message> 7 </message>
8 <message name="IDS_JAVASCRIPT_MESSAGEBOX_TITLE_IFRAME" desc="Title for JavaScr ipt prompt and confirm originating from an iframe inside the webpage"> 8 <message name="IDS_JAVASCRIPT_MESSAGEBOX_TITLE_IFRAME" desc="Title for JavaScr ipt prompt and confirm originating from an iframe inside the webpage">
9 An embedded page at <ph name="SITE">$1<ex>http://www.google.com</ex></ph> sa ys: 9 An embedded page at <ph name="SITE">$1<ex>http://www.google.com</ex></ph> sa ys:
10 </message> 10 </message>
11 <message name="IDS_JAVASCRIPT_MESSAGEBOX_TITLE_NONSTANDARD_URL" desc="Title fo r JavaScript prompt and confirm originating from a webpage with a non-standard U RL such as |data:|"> 11 <message name="IDS_JAVASCRIPT_MESSAGEBOX_TITLE_NONSTANDARD_URL" desc="Title fo r JavaScript prompt and confirm originating from a webpage with a non-standard U RL such as |data:|">
12 This page says: 12 This page says:
13 </message> 13 </message>
14 <message name="IDS_JAVASCRIPT_MESSAGEBOX_TITLE_NONSTANDARD_URL_IFRAME" desc="T itle for JavaScript prompt and confirm originating from an iframe inside the web page with a non-standard URL such as |data:|"> 14 <message name="IDS_JAVASCRIPT_MESSAGEBOX_TITLE_NONSTANDARD_URL_IFRAME" desc="T itle for JavaScript prompt and confirm originating from an iframe inside the web page with a non-standard URL such as |data:|">
15 An embedded page on this webpage says: 15 An embedded page on this webpage says:
16 </message> 16 </message>
17 <message name="IDS_JAVASCRIPT_MESSAGEBOX_SUPPRESS_OPTION" desc="Optional UI sh own on the message box, in the form of a checkbox, allowing the user to suppress additional message boxes from the page."> 17 <message name="IDS_JAVASCRIPT_MESSAGEBOX_SUPPRESS_OPTION" desc="Optional UI sh own on the message box, in the form of a checkbox, allowing the user to suppress additional message boxes from the page.">
18 Prevent this page from creating additional dialogs. 18 Prevent this page from creating additional dialogs.
19 </message> 19 </message>
20 20
21 <!-- "Before Unload" Dialog Box strings --> 21 <!-- "Before Unload" Dialog Box strings -->
22 <message name="IDS_BEFOREUNLOAD_MESSAGEBOX_TITLE" desc="Title for the 'before unload' dialog."> 22 <message name="IDS_BEFOREUNLOAD_MESSAGEBOX_TITLE" desc="Title for the 'before unload' dialog.">
23 Confirm Navigation 23 Do you want to leave this site?
24 </message> 24 </message>
25 <message name="IDS_BEFOREUNLOAD_MESSAGEBOX_FOOTER" desc="Text shown at the bot tom of the dialog, after the message provided by the script."> 25 <message name="IDS_BEFOREUNLOAD_MESSAGEBOX_MESSAGE" desc="Text shown as the me ssage of the 'before unload' dialog.">
26 Are you sure you want to leave this page? 26 Changes you made may not be saved.
27 </message> 27 </message>
28 <message name="IDS_BEFOREUNLOAD_MESSAGEBOX_OK_BUTTON_LABEL" desc="The text on the button which navigates the user away from the page."> 28 <message name="IDS_BEFOREUNLOAD_MESSAGEBOX_OK_BUTTON_LABEL" desc="The text on the button which navigates the user away from the page.">
29 Leave this Page 29 Leave
30 </message> 30 </message>
31 <message name="IDS_BEFOREUNLOAD_MESSAGEBOX_CANCEL_BUTTON_LABEL" desc="The text on the button which cancels the navigation away from the page."> 31 <message name="IDS_BEFOREUNLOAD_MESSAGEBOX_CANCEL_BUTTON_LABEL" desc="The text on the button which cancels the navigation away from the page.">
32 Stay on this Page 32 Stay
33 </message> 33 </message>
34 34
35 <!-- "Before Reload" Dialog Box strings (same as "Before Unload" but when relo ading rather than unloading the page --> 35 <!-- "Before Reload" Dialog Box strings (same as "Before Unload" but when relo ading rather than unloading the page -->
36 <message name="IDS_BEFORERELOAD_MESSAGEBOX_TITLE" desc="Title for the 'before reload' dialog."> 36 <message name="IDS_BEFORERELOAD_MESSAGEBOX_TITLE" desc="Title for the 'before unload' dialog for reloads.">
37 Confirm Reload 37 Do you want to reload this site?
38 </message>
39 <message name="IDS_BEFORERELOAD_MESSAGEBOX_FOOTER" desc="Text shown at the bot tom of the dialog, after the message provided by the script.">
40 Are you sure you want to reload this page?
41 </message> 38 </message>
42 <message name="IDS_BEFORERELOAD_MESSAGEBOX_OK_BUTTON_LABEL" desc="The text on the button which reloads the page."> 39 <message name="IDS_BEFORERELOAD_MESSAGEBOX_OK_BUTTON_LABEL" desc="The text on the button which reloads the page.">
43 Reload this Page 40 Reload
44 </message> 41 </message>
45 <message name="IDS_BEFORERELOAD_MESSAGEBOX_CANCEL_BUTTON_LABEL" desc="The text on the button which cancels the page reload."> 42 <message name="IDS_BEFORERELOAD_MESSAGEBOX_CANCEL_BUTTON_LABEL" desc="The text on the button which cancels the page reload.">
46 Don't Reload 43 Dont Reload
47 </message> 44 </message>
48 45
49 </grit-part> 46 </grit-part>
OLDNEW
« no previous file with comments | « components/app_modal/javascript_dialog_manager.cc ('k') | components/test_runner/web_frame_test_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698