Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Go to file
Timothy Guan-tin Chien 80827187fc Bug 1504418 - Access to nsIDateTimeInputArea interface implemented by XBL from chrome via wrappedJSObject r=mconley
Part I of bug 1496242 was not implemented correctly as it accesses the
nsIDateTimeInputArea methods directly on the <datetimebox> element object.
This won't work because the XBL binding is run in a non-chrome scope.
The methods it implemented are exposed thus had to be accessed via
wrappedJSObject.

Object pass to setValueFromPicker() therefore has to clone into the content scope.

We can be sure that the methods called are implemented by the XBL binding,
because the web content should not have access to <datetimebox>, which is a NAC.

A small clean-up is included in the patch also, removing the useless 3rd argument
to the CustomEvent constructor.

Tests related to the datetime input is duplicated and run with UA Widget disabled
to ensure the XBL binding continue to work.

Differential Revision: https://phabricator.services.mozilla.com/D10947

--HG--
rename : dom/html/test/forms/chrome.ini => dom/html/test/forms/xbl/chrome.ini
rename : dom/html/test/forms/mochitest.ini => dom/html/test/forms/xbl/mochitest.ini
rename : dom/html/test/forms/test_autocompleteinfo.html => dom/html/test/forms/xbl/test_autocompleteinfo.html
rename : dom/html/test/forms/test_input_attributes_reflection.html => dom/html/test/forms/xbl/test_input_attributes_reflection.html
rename : dom/html/test/forms/test_input_date_bad_input.html => dom/html/test/forms/xbl/test_input_date_bad_input.html
rename : dom/html/test/forms/test_input_date_key_events.html => dom/html/test/forms/xbl/test_input_date_key_events.html
rename : dom/html/test/forms/test_input_datetime_focus_blur.html => dom/html/test/forms/xbl/test_input_datetime_focus_blur.html
rename : dom/html/test/forms/test_input_datetime_focus_blur_events.html => dom/html/test/forms/xbl/test_input_datetime_focus_blur_events.html
rename : dom/html/test/forms/test_input_datetime_focus_state.html => dom/html/test/forms/xbl/test_input_datetime_focus_state.html
rename : dom/html/test/forms/test_input_datetime_input_change_events.html => dom/html/test/forms/xbl/test_input_datetime_input_change_events.html
rename : dom/html/test/forms/test_input_datetime_tabindex.html => dom/html/test/forms/xbl/test_input_datetime_tabindex.html
rename : dom/html/test/forms/test_input_defaultValue.html => dom/html/test/forms/xbl/test_input_defaultValue.html
rename : dom/html/test/forms/test_input_sanitization.html => dom/html/test/forms/xbl/test_input_sanitization.html
rename : dom/html/test/forms/test_input_textarea_set_value_no_scroll.html => dom/html/test/forms/xbl/test_input_textarea_set_value_no_scroll.html
rename : dom/html/test/forms/test_input_time_key_events.html => dom/html/test/forms/xbl/test_input_time_key_events.html
rename : dom/html/test/forms/test_input_time_sec_millisec_field.html => dom/html/test/forms/xbl/test_input_time_sec_millisec_field.html
rename : dom/html/test/forms/test_input_types_pref.html => dom/html/test/forms/xbl/test_input_types_pref.html
rename : dom/html/test/forms/test_input_typing_sanitization.html => dom/html/test/forms/xbl/test_input_typing_sanitization.html
rename : dom/html/test/forms/test_label_input_controls.html => dom/html/test/forms/xbl/test_label_input_controls.html
rename : dom/html/test/forms/test_max_attribute.html => dom/html/test/forms/xbl/test_max_attribute.html
rename : dom/html/test/forms/test_min_attribute.html => dom/html/test/forms/xbl/test_min_attribute.html
rename : dom/html/test/forms/test_mozistextfield.html => dom/html/test/forms/xbl/test_mozistextfield.html
rename : dom/html/test/forms/test_novalidate_attribute.html => dom/html/test/forms/xbl/test_novalidate_attribute.html
rename : dom/html/test/forms/test_pattern_attribute.html => dom/html/test/forms/xbl/test_pattern_attribute.html
rename : dom/html/test/forms/test_required_attribute.html => dom/html/test/forms/xbl/test_required_attribute.html
rename : dom/html/test/forms/test_step_attribute.html => dom/html/test/forms/xbl/test_step_attribute.html
rename : dom/html/test/forms/test_stepup_stepdown.html => dom/html/test/forms/xbl/test_stepup_stepdown.html
rename : dom/html/test/forms/test_textarea_attributes_reflection.html => dom/html/test/forms/xbl/test_textarea_attributes_reflection.html
rename : dom/html/test/forms/test_validation.html => dom/html/test/forms/xbl/test_validation.html
rename : dom/html/test/forms/test_validation_not_in_doc.html => dom/html/test/forms/xbl/test_validation_not_in_doc.html
rename : dom/html/test/forms/test_valueAsDate_pref.html => dom/html/test/forms/xbl/test_valueAsDate_pref.html
rename : dom/html/test/forms/test_valueasdate_attribute.html => dom/html/test/forms/xbl/test_valueasdate_attribute.html
rename : dom/html/test/forms/test_valueasnumber_attribute.html => dom/html/test/forms/xbl/test_valueasnumber_attribute.html
rename : toolkit/content/tests/browser/browser_datetime_datepicker.js => toolkit/content/tests/browser/xbl/browser_datetime_datepicker.js
extra : moz-landing-system : lando
2018-11-13 22:02:08 +00:00
.cargo Bug 1504507 - Update serde branch for changes in WR PR #3264. r=kats 2018-11-05 13:14:07 +00:00
.vscode Bug 1493017 - Tweak vscode tasks.json problemMatcher regexes to handle clang/Windows output - r=jya 2018-09-21 10:00:59 +00:00
accessible Bug 1479039 - Update SessionAccessibility cache and state from events. r=snorp,yzen 2018-11-12 16:42:37 +00:00
browser Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-11-13 23:49:10 +02:00
build Bug 1506756 - Remove the use of real_path added in bug 1501903. r=andi 2018-11-13 08:22:25 +00:00
caps Bug 1502743 - Replace black/whitelist within caps to block/allowlist r=ckerschb 2018-10-31 17:56:43 +00:00
chrome Bug 1356412: Part 2 - Remove script loader path mangling from DOM code. r=bz 2018-11-02 16:15:26 -07:00
config Bug 1506380 - Rename opcode.py to avoid conflict with builtin Python module. r=arai 2018-11-12 03:55:30 +00:00
db Bug 1495238 - Upgrade to SQLite 3.25.3. r=mak 2018-11-06 16:59:19 +00:00
devtools Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-11-13 23:49:10 +02:00
docshell Bug 1496840 - Add a browsingContext getter to the browser element. r=farre 2018-11-12 17:57:48 +00:00
dom Bug 1504418 - Access to nsIDateTimeInputArea interface implemented by XBL from chrome via wrappedJSObject r=mconley 2018-11-13 22:02:08 +00:00
editor Bug 1505679 - Make HTMLEditor::RemoveList() sets specific EditAction when it's called by execCommand("insertorderedlist") or execCommand("insertunorderedlist") r=m_kato 2018-11-12 08:13:58 +00:00
embedding
extensions Bug 1504442 - Remove nsIReadConfig r=mkaply 2018-11-07 18:23:16 +00:00
gfx Backed out changeset ed34f1838218 (bug 1506748) for Android build bustages CLOSED TREE 2018-11-14 00:11:37 +02:00
gradle/wrapper
hal
image Bug 1196668 - Make images without alt generate a replaced box regardless of src. r=bz 2018-11-09 18:10:14 +01:00
intl Bug 1502530 - Part 2: Update tzdata in ICU data files to 2018g. r=Waldo 2018-11-06 02:52:01 -08:00
ipc Backed out 12 changesets (bug 1471535) for VideoDecoderChild failures CLOSED TREE 2018-11-13 23:31:56 +02:00
js Bug 1506736. Don't try to Xray statics on JS builtin constructors that we don't normally support Xrays for. r=bholley 2018-11-13 21:19:01 +00:00
layout Backed out 12 changesets (bug 1471535) for VideoDecoderChild failures CLOSED TREE 2018-11-13 23:31:56 +02:00
media Backed out 3 changesets (bug 1503363) for build bustages on mozbuild. CLOSED TREE 2018-11-13 18:28:48 +02:00
memory Bug 1506559 - Enable ESLint for memory/replace/dmd/test/. r=njn 2018-11-13 09:07:38 +00:00
mfbt Bug 1503639 Part 1 - Handle unrecorded waits internally, r=lsmyth. 2018-10-31 10:17:05 -10:00
mobile Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-11-13 23:49:10 +02:00
modules Backed out 12 changesets (bug 1471535) for VideoDecoderChild failures CLOSED TREE 2018-11-13 23:31:56 +02:00
mozglue Bug 1495512: Part 2 - Add test for 10-byte DLL interception; r=handyman 2018-11-13 19:51:21 +00:00
netwerk Bug 1506538 - Remove +x permissions on C++ source files r=Ehsan 2018-11-13 15:32:08 +00:00
nsprpub
other-licenses Bug 1468544 - Replace mar_hash_name with CityHash algorithm. r=rstrong 2018-11-06 13:34:21 -05:00
parser Bug 1506133 - More HTML parser cleanup post bug 1392185. r=hsivonen 2018-11-12 14:37:09 +00:00
python Bug 1498451 - Migrate Device Manager Dialog of Preferences Section to use Fluent for localization r=Gijs,flod,zbraniecki 2018-11-12 19:34:21 +00:00
security bug 1499882 - remove HSTS holepunch for chart.apis.google.com because it now has a valid certificate r=franziskus 2018-11-13 08:14:06 +00:00
services No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings tld-suffixes - a=repo-update r=RyanVM 2018-11-08 13:54:03 +00:00
servo Bug 1499170 - Add an atom bit to know whether we're ascii lowercase. r=njn 2018-11-13 12:47:40 +00:00
startupcache Bug 1503207 - Remove nsWeakPtr.h and cleanup all files including weak reference-related headers r=froydnj 2018-10-31 20:39:03 +00:00
storage Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (automatic fixes). r=mossop 2018-10-19 12:55:39 +00:00
taskcluster Merge mozilla-inbound to mozilla-central. a=merge 2018-11-13 06:23:01 +02:00
testing Merge mozilla-inbound to mozilla-central. a=merge 2018-11-13 06:23:01 +02:00
third_party Merge mozilla-central to mozilla-inbound. 2018-11-10 13:51:14 +02:00
toolkit Bug 1504418 - Access to nsIDateTimeInputArea interface implemented by XBL from chrome via wrappedJSObject r=mconley 2018-11-13 22:02:08 +00:00
tools Bug 1506538 - Remove +x permissions on C++ source files r=Ehsan 2018-11-13 15:32:08 +00:00
uriloader Bug 1371509 - fix issues with comparing window URIs in browser_auto_close_window.js, r=Felipe 2018-11-09 19:11:30 +00:00
view Bug 1504521 - rename in-tree mentions of bugzilla metadata for product and component "Core :: Layout: Web Painting" to "Core :: Web Painting" r=kats 2018-11-04 12:57:04 +00:00
widget Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-11-13 23:49:10 +02:00
xpcom Backed out 12 changesets (bug 1471535) for VideoDecoderChild failures CLOSED TREE 2018-11-13 23:31:56 +02:00
xpfe/appshell Bug 1496722 - Make nsIDocShellTreeItem.itemType readonly. r=peterv 2018-11-08 21:58:58 +00:00
.arcconfig
.clang-format
.clang-format-ignore Bug 1506177 - Ignore the formating on all layout/style/ns*List.h file r=emilio 2018-11-09 16:51:01 +00:00
.cron.yml Bug 1503547 - Move searchfox indexing jobs a half hour earlier to match nightly build times. r=mccr8 2018-11-01 15:37:07 +00:00
.eslintignore Bug 1506559 - Enable ESLint for memory/replace/dmd/test/. r=njn 2018-11-13 09:07:38 +00:00
.eslintrc.js Bug 1486741 - Enable ESLint rule comma-dangle for all of mozilla-central (setup ESLint). r=mossop 2018-10-19 08:46:31 +00:00
.flake8 Bug 1479503: Check infer in ./mach static-analysis autotest. r=nalexander 2018-10-24 21:54:34 +00:00
.gdbinit
.gdbinit_python
.gitignore
.hgignore Bug 1479503: Check infer in ./mach static-analysis autotest. r=nalexander 2018-10-24 21:54:34 +00:00
.hgtags No bug - Tagging mozilla-central c44fbdd5173548c9035256dda8fd3512f67118a8 with FIREFOX_NIGHTLY_64_END a=release DONTBUILD CLOSED TREE 2018-10-22 08:48:42 -07:00
.lldbinit
.mailmap
.taskcluster.yml Bug 1505930 - Promote try-push analysis result r=catlee 2018-11-08 21:40:53 +00:00
.trackerignore
.yamllint
.ycm_extra_conf.py
aclocal.m4
AUTHORS
build.gradle
Cargo.lock Merge mozilla-central to mozilla-inbound. 2018-11-10 13:51:14 +02:00
Cargo.toml Bug 1504507 - Update serde branch for changes in WR PR #3264. r=kats 2018-11-05 13:14:07 +00:00
client.mk Bug 1498031 - Merge code paths for running configure between Tup and Make based backends. r=firefox-build-system-reviewers,mshal 2018-10-16 22:21:36 +00:00
client.py
CLOBBER Bug 1499026 - Part 3: Updating ICU requires a clobber. r=clobber 2018-11-01 06:32:49 -07:00
configure.in
configure.py
GNUmakefile
gradle.properties
gradlew
LEGAL
LICENSE
mach
Makefile.in Bug 1498031 - Merge code paths for running configure between Tup and Make based backends. r=firefox-build-system-reviewers,mshal 2018-10-16 22:21:36 +00:00
moz.build Bug 1490253 - Replace pipenv with pip-tools for vendoring packages and dependencies; r=ahal 2018-10-10 08:58:41 +00:00
moz.configure Bug 1492716 - Part 2: Add formatting rule to help text for --{enable,disable,with,without}. r=glandium 2018-10-16 20:28:12 +09:00
mozilla-config.h.in Bug 1504022 - Map GetExceptionCode to a nop to avoid an error r=bobowen 2018-11-02 13:28:01 -05:00
old-configure.in Bug 1495238 - Upgrade to SQLite 3.25.3. r=mak 2018-11-06 16:59:19 +00:00
package-lock.json Bug 1495397 - Update mozilla-central's package.json for being more generic, and move existing ESLint modules to dev dependencies. r=firefox-build-system-reviewers,nalexander 2018-10-01 17:28:45 +00:00
package.json Bug 1495397 - Update mozilla-central's package.json for being more generic, and move existing ESLint modules to dev dependencies. r=firefox-build-system-reviewers,nalexander 2018-10-01 17:28:45 +00:00
README.txt Bug 1480997 - Remove "Mozilla FTP server" link in README.txt r=mossop 2018-10-23 10:06:29 +00:00
settings.gradle
test.mozbuild

An explanation of the Mozilla Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://developer.mozilla.org/en/Mozilla_Source_Code_Directory_Structure

For information on how to build Mozilla from the source code, see:

    https://developer.mozilla.org/en/docs/Build_Documentation

To have your bug fix / feature added to Mozilla, you should create a patch and
submit it to Bugzilla (https://bugzilla.mozilla.org). Instructions are at:

    https://developer.mozilla.org/en/docs/Creating_a_patch
    https://developer.mozilla.org/en/docs/Getting_your_patch_in_the_tree

If you have a question about developing Mozilla, and can't find the solution
on https://developer.mozilla.org, you can try asking your question in a
mozilla.* Usenet group, or on IRC at irc.mozilla.org. [The Mozilla news groups
are accessible on Google Groups, or news.mozilla.org with a NNTP reader.]

Nightly development builds can be downloaded from:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly

Keep in mind that nightly builds, which are used by Mozilla developers for
testing, may be buggy.