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

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: Created 4 years, 10 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
« no previous file with comments | « components/app_modal/javascript_dialog_manager.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 Confirm Navigation
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 This page is warning you that if you leave this page, data may be lost. Are you sure you want to leave this page?
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 this Page
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 on this Page
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 reload' dialog.">
37 Confirm Reload 37 Confirm Reload
38 </message> 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."> 39 <message name="IDS_BEFORERELOAD_MESSAGEBOX_MESSAGE" desc="Text shown as the me ssage of the 'before reload' dialog.">
Charlie Reis 2016/02/18 21:37:13 nit: 'before unload' dialog for reloads. (There's
Avi (use Gerrit) 2016/02/18 21:42:26 Done.
40 Are you sure you want to reload this page? 40 This page is warning you that if you reload this page, data may be lost. Are you sure you want to reload this page?
41 </message> 41 </message>
42 <message name="IDS_BEFORERELOAD_MESSAGEBOX_OK_BUTTON_LABEL" desc="The text on the button which reloads the page."> 42 <message name="IDS_BEFORERELOAD_MESSAGEBOX_OK_BUTTON_LABEL" desc="The text on the button which reloads the page.">
43 Reload this Page 43 Reload this Page
44 </message> 44 </message>
45 <message name="IDS_BEFORERELOAD_MESSAGEBOX_CANCEL_BUTTON_LABEL" desc="The text on the button which cancels the page reload."> 45 <message name="IDS_BEFORERELOAD_MESSAGEBOX_CANCEL_BUTTON_LABEL" desc="The text on the button which cancels the page reload.">
46 Don't Reload 46 Don't Reload
47 </message> 47 </message>
48 48
49 </grit-part> 49 </grit-part>
OLDNEW
« no previous file with comments | « components/app_modal/javascript_dialog_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698