diff options
author | Chris Lahey <clahey@ximian.com> | 2003-11-30 19:38:12 +0800 |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2003-11-30 19:38:12 +0800 |
commit | 3ee87498b5087ca1e7bd78142ee6c5539673b09f (patch) | |
tree | 97a99ba23db0a53c41d19154eb15956b17b9f6f2 /data | |
parent | f84a5ff4e920c25d089786864f1ae2cdd94586d6 (diff) | |
download | gsoc2013-epiphany-3ee87498b5087ca1e7bd78142ee6c5539673b09f.tar.gz gsoc2013-epiphany-3ee87498b5087ca1e7bd78142ee6c5539673b09f.tar.zst gsoc2013-epiphany-3ee87498b5087ca1e7bd78142ee6c5539673b09f.zip |
Marco Pesenti Gritti <marco@gnome.org>
2003-11-30 Chris Lahey <clahey@ximian.com>
Marco Pesenti Gritti <marco@gnome.org>
* data/Makefile.am:
* data/epiphany-lockdown.schemas.in:
* src/ephy-main.c: (main):
* src/ephy-tab.c: (ephy_tab_new_window_cb), (ephy_tab_size_to_cb):
* src/ephy-window.c: (update_chromes_visibility), (update_chrome),
(ephy_window_fullscreen), (ephy_window_unfullscreen),
(show_embed_popup), (update_layout_toggles), (chrome_notifier),
(ephy_window_init), (ephy_window_finalize),
(ephy_window_request_chrome), (ephy_window_set_print_preview),
(ephy_window_show), (print_dialog_preview_cb):
* src/ephy-window.h:
* src/ppview-toolbar.c: (ppview_toolbar_set_window),
(toolbar_cmd_ppv_close):
* src/window-commands.c: (window_cmd_view_bookmarks_bar),
(window_cmd_view_toolbar), (window_cmd_view_statusbar):
Implement lockdown pref to not allow javascript to modify
chromes. Do necessary changes to chromes code to make
it possible.
Diffstat (limited to 'data')
-rw-r--r-- | data/Makefile.am | 4 | ||||
-rw-r--r-- | data/epiphany-lockdown.schemas.in | 26 |
2 files changed, 28 insertions, 2 deletions
diff --git a/data/Makefile.am b/data/Makefile.am index 2f18dac23..999810340 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -28,8 +28,8 @@ applicationsdir = $(datadir)/application-registry applications_DATA = epiphany.applications schemadir = $(sysconfdir)/gconf/schemas -schema_in_files = epiphany.schemas.in -schema_DATA = epiphany.schemas +schema_in_files = epiphany.schemas.in epiphany-lockdown.schemas.in +schema_DATA = epiphany.schemas epiphany-lockdown.schemas aboutdir = $(pkgdatadir) about_DATA = epiphany.xhtml conspiracy.xhtml diff --git a/data/epiphany-lockdown.schemas.in b/data/epiphany-lockdown.schemas.in new file mode 100644 index 000000000..7cdbb4ea8 --- /dev/null +++ b/data/epiphany-lockdown.schemas.in @@ -0,0 +1,26 @@ +<gconfschemafile> + <schemalist> + <schema> + <key>/schemas/apps/epiphany/lockdown/disable_javascript_chrome</key> + <applyto>/apps/epiphany/lockdown/disable_javascript_chrome</applyto> + <owner>epiphany</owner> + <type>bool</type> + <default>0</default> + <locale name="C"> + <short>Disable JavaScript chrome control</short> + <long>Disable JavaScript's control over window chrome.</long> + </locale> + </schema> + <schema> + <key>/schemas/apps/epiphany/lockdown/hide_menubar</key> + <applyto>/apps/epiphany/lockdown/hide_menubar</applyto> + <owner>epiphany</owner> + <type>bool</type> + <default>0</default> + <locale name="C"> + <short>Hide menubar by default</short> + <long>Hide the menubar by default.</long> + </locale> + </schema> + </schemalist> +</gconfschemafile> |