Commit Graph

366 Commits

Author SHA1 Message Date
Jonathan Watt
0a6de6d1c6 Bug 1016931 - Provide better messages to users for range underflow/overflow of HTML number, date and time inputs. r=smaug 2014-06-02 14:53:56 +01:00
Boris Zbarsky
93043baf57 Bug 998356. Don't completely fail out of the parser if we can't format one of our string error messages. r=hsivonen 2014-05-23 17:32:37 -04:00
Monica Chew
f398ab2371 Bug 1014282: Do not direct every ssl error to 'Report Web Forgery' (r=margaret) 2014-05-22 16:26:57 -07:00
Frederik Braun
d006693673 Bug 1010953 - different message for CSP-Report Only to devtools console. r=grobinson 2014-05-20 12:15:43 +02:00
Bobby Holley
d05d2943ee Bug 1010577 - Shim window.controllers (with a warning) in RELEASE_BUILDs. r=bz 2014-05-19 13:08:08 -07:00
Henri Sivonen
97f4c4b92d Bug 943268 - Remove nsCharsetAlias and nsCharsetConverterManager. r=emk. 2014-05-08 12:32:00 +03:00
Yura Zenevich
89d568829e Bug 1001628 - listbox option role string is now less verbose. r=eeejay
---
 accessible/tests/mochitest/jsat/test_output.html           | 12 ++++++++++--
 dom/locales/en-US/chrome/accessibility/AccessFu.properties |  2 +-
 2 files changed, 11 insertions(+), 3 deletions(-)
2014-04-30 11:27:13 -04:00
Aryeh Gregor
b89e016680 Bug 957430 - Stop pretending Attr.specified is deprecated; r=ehsan 2014-04-25 13:29:56 +03:00
Jefry Lagrange
e1f4424ba4 Bug 939323 - Warn about XMLHttpRequest sendAsBinary usage. r=smaug 2014-04-22 13:59:39 -07:00
Marco Zehe
1d98675396 Bug 989958 - Expose PRESSED state on a native button element and remove CHECKABLE state from toggle buttons, r=surkov, r=eeejay 2014-04-04 10:01:19 +02:00
Matthew Gregan
ced956736c Bug 927245 - Remove deprecated Audio Data API implementation. r=cajbir,smaug 2014-04-03 10:53:39 +13:00
Ghislain 'Aus' Lacroix
4574a13528 Bug 982006 - Make GetDownloadDirectory return error for both SD card missing and SD card busy. r=bz 2014-03-31 12:10:44 -07:00
Masatoshi Kimura
e407e8d737 Bug 980134 - Hide DataContainerEvent from content. r=smaug 2014-03-31 06:28:00 +09:00
Ehsan Akhgari
0cfc414bc6 Backed out 2 changesets (bug 957431) because we decided we're keeping Attr.ownerElement in the end
Backed out changeset ab12a8416a1d (bug 957431)
Backed out changeset 188d1e255d40 (bug 957431)
2014-03-21 16:04:09 -04:00
Seth Fowler
567a08b8a4 Bug 63895 (Part 2) - Support table parts as absolute containing blocks. r=dbaron 2014-03-10 15:41:17 -07:00
Alessio Placitelli
683c2bf0e2 Bug 961804 - Drop support for Blob.mozSlice. r=jst 2014-03-06 08:52:52 -05:00
Eitan Isaacson
ef189991a4 Bug 978075 - Screen reader turn on and off announce. r=yzen
This patch does several other things:
 1. When a PrefCache with no default setting available is created, or cleared, set value to null.
 2. Removed weird margin change in announce box.
 3. Add announce method to speech presenter.
 4. Don't start and stop AccessFu implicitly in AccessFuTest.
 5. Change tests to two start/stop pairs where in one pair we activate via pref, and
     the other one via settings (TODO).
2014-03-04 10:10:38 -08:00
Bob Owen
ffcbae7c4d Bug 624883 - Add parentheses around protocol list in dom unknownProtocolFound string. r=bz 2014-02-13 08:58:04 +00:00
Yeuk Hon Wong
927a1bebed Bug 847081 - Throw a warning when a '*-report-only' header doesn't contain a 'report-uri' directive. r=geekboy 2014-02-13 10:10:29 -05:00
Olli Pettay
eb2b15d9d4 Bug 969671 - Warn about use of sync XHR in the main thread, r=sicking/ehsan
--HG--
extra : rebase_source : 4af00da28a4e8b6cc1209d9a5e098d9914286deb
2014-02-10 20:35:25 +02:00
Bob Owen
fb14a8de8b Bug 624883 - Treat view-source as an unrecognised scheme if not top-level. r=bz 2014-01-23 16:02:33 +00:00
Kartikaya Gupta
c6691e53fe Bug 845690 - Print a warning for developers if we apply our implicit backwards-compatible meta-viewport tag. r=ehsan,f=vingtetun 2014-02-03 18:22:09 -05:00
Jonathan Watt
9da53ed2e9 Bug 827161, part 2 - Implement HTML 5's ValidityState.badInput and implement the state for HTMLInputElement's number type. r=smaug 2014-01-30 12:54:12 +00:00
Garrett Robinson
98454ae369 Bug 963901 - Fix variable format error. r=sstamm 2014-01-31 21:54:48 -05:00
Chris Peterson
cf2bfd13b3 Bug 965693 - Remove annoying "Printing XUL documents is not supported" error dialog. r=roc 2014-01-29 20:40:34 -08:00
Sid Stamm
11e26e4568 Bug 843311 - update CSP report-uri parsing to be spec compliant. r=grobinson 2014-01-24 10:24:08 -08:00
Yeuk Hon Wong
f06490d11c Bug 587377 - Display CSP warning in the web console if a hostname is a quoteless CSP keyword match. r=sstamm 2014-01-17 11:10:29 -05:00
Ehsan Akhgari
dab5bc67ba Bug 957431 - Remove support for Attr.ownerElement; r=bzbarsky 2014-01-08 09:28:19 -05:00
Garrett Robinson
64abf55eea Bug 713980 - Log warnings about blocked cross-site requests to the Web Console. r=smaug 2014-01-07 09:51:05 -05:00
Henri Sivonen
e827aa303e Bug 956024 - Remove traces of SunDevanagari and LangBox Arabic encodings. r=emk. 2014-01-07 12:41:09 +02:00
Henri Sivonen
fe3cc0106e Bug 213517 part 1 - Interpret x-user-defined as windows-1252 in <meta> for compatibility with other browsers. r=smontagu.
--HG--
rename : parser/htmlparser/tests/mochitest/file_bug672453_meta_utf16.html => parser/htmlparser/tests/mochitest/file_bug672453_meta_userdefined.html
2014-01-02 09:18:19 +02:00
Boris Zbarsky
6cbdf23c78 Bug 937461. Make cloneNode/importNode "deep" arg default to false, since the spec changed on us. r=sicking 2013-12-20 14:28:17 -05:00
Gregory Szorc
461b5aef7e Bug 774572 - Part 2: Define JAR_MANIFESTS in moz.build files; r=glandium
Every directory with a jar.mn now has JAR_MANIFESTS defined in its
moz.build file.

We also removed the may_skip special consideration of jar.mn files
because this information is now available during tier traversal by the
reader courtesy of the variables being present in moz.build files.

--HG--
extra : rebase_source : 21049b15e6bd9cf65b0805ccaccc4ba5aae93c98
extra : amend_source : 0b1ea866d725beef92d37c6f6d475369ac002e19
2013-12-10 16:18:11 +09:00
Boris Zbarsky
e235bc59e0 Bug 948096. Warn when people use window._content. r=smaug,myk 2013-12-12 16:11:54 -05:00
Cameron McCormack
4fd40c24b6 Bug 773296 - Part 18: Add error reporting for invalid variable references. r=dbaron
This adds CSS parser error reporting for parsing of custom properties
and normal properties that have variable references.

When re-parsing a normal property that had a variable reference, we
report any parse error to be at the beginning of the property value.
This is because it is difficult to keep track of where exactly each
variable substitution came from to point to the particular value
that would have caused the parse error.  For example, with this:

  :root {
    var-a: 1px 2px;
    var-b: 3px var(a);
  }
  p {
    margin: var(a) var(b);
  }

we would end up resolving the value of 'margin' to:

  "  1px 2px  3px  1px 2px"

In this string, the parse error occurs when we encounter the final
"2px", but by this point we don't know where that value came from.
So instead we just point to the line on which 'margin' was declared.

We extend ErrorReporter with an OutputError overload that takes the
specific line and column number to use in the error report to get this
right, and we store the line and column number for each token stream
we parse on the nsCSSValueTokenStream object.
2013-12-12 13:09:44 +11:00
Cameron McCormack
33b0fd85d7 Bug 773296 - Part 17: Resolve property values that have variable references at computed value time. r=dbaron
This re-parses property values at computed value time if
they had a specified value that was a token stream.  We add
a function nsRuleNode::ResolveVariableReferences that looks
at all the values in the nsRuleData and calls in to a new
nsCSSParser::ParsePropertyWithVariableReferences function if they have a
token stream value.

We add a nsCSSExpandedDataBlock::MapRuleInfoInto function that will
take the re-parsed property value and copy it back into the nsRuleData.

nsRuleNode::ResolveVariableReferences returns whether any variables
were attempted to be resolved, so that nsRuleNode::WalkRuleTree wil
recompute the rule detail in case any became 'inherit'.
2013-12-12 13:09:44 +11:00
Cameron McCormack
d8cbd4d866 Bug 773296 - Part 2: Parse CSS variable declarations and store them on Declaration objects. p=ebassi,heycam r=dbaron
Patch co-authored by Emmanuele Bassi <ebassi@gmail.com>

This defines a CSSVariableDeclarations class that holds a set of
variable declarations.  This is at the specified value stage, so values
can either be 'initial', 'inherit' or a token stream (which is what you
normally have).  The variables are stored in a hash table.  Although
it's a bit of a hack, we store 'initial' and 'inherit' using special
string values that can't be valid token streams (we use "!" and ";").

Declaration objects now can have two CSSVariableDeclarations objects
on them, to store normal and !important variable declarations.  So that
we keep preserving the order of declarations on the object, we inflate
mOrder to store uint32_ts, where values from eCSSProperty_COUNT onwards
represent custom properties.  mVariableOrder stores the names of the
variables corresponding to those entries in mOrder.

We also add a new nsCSSProperty value, eCSSPropertyExtra_variable, which
is used to represent any custom property name.
nsCSSProps::LookupProperty can return this value.

The changes to nsCSSParser are straightforward.  Custom properties
are parsed and checked for syntactic validity (e.g. "var(a,)" being
invalid) and stored on the Declaration.  We use nsCSSScanner's
recording ability to grab the unparsed CSS string corresponding to
the variable's value.
2013-12-12 13:09:40 +11:00
Gijs Kruitbosch
6917fdfd0b Bug 943217 - fix moz-document error message, r=dbaron 2013-11-26 10:36:52 +01:00
Cameron McCormack
0e84ec2e38 Bug 945048 - Correctly check for the CSS_PSEUDO_ELEMENT_SUPPORTS_USER_ACTION_STATE flag when parsing pseudo-classes after pseudo-elements. r=bz 2013-12-02 13:06:20 +11:00
Cameron McCormack
8cc9fabdb6 Bug 944493 - Rename PEPseudoSelTrailing because of a string change. r=flod 2013-11-30 12:17:51 +11:00
Cameron McCormack
83cfdc715c Bug 922669 - Part 1: Parse selectors with user action pseudo-classes after pseudo-elements. r=bz 2013-11-28 17:46:38 +11:00
Boris Zbarsky
231c02384a Bug 937465. Warn when cloneNode() and importNode() are used without the boolean "deep" argument on nodes that have kids. r=sicking 2013-11-17 00:10:18 -05:00
Max Li
bc1ea74b99 Bug 933393 - [AccessFu] Utter selection changes. r=eeejay
--HG--
extra : rebase_source : 2997b101df0cc63aba3e94b60ebe63c0db7eb3b7
2013-11-12 19:56:24 -05:00
Vendelin Ruzicka
2db8a81a6e Bug 933563 - Consolidate ReportUseOfDeprecatedMethod and WarnOnceAbout. r=sicking, r=ms2ger 2013-11-11 16:12:18 -05:00
Vendelin Ruzicka
b63fda4d66 Bug 933040 - Warn for showModalDialog uses. r=jst, r=sicking 2013-11-06 08:59:54 -05:00
Yura Zenevich
9439549e91 Bug 934737 - [AccessFu] fixing a string bundle error when encountering an input type='date'. r=eeejay
---
 accessible/src/jsat/OutputGenerator.jsm                    | 7 ++++++-
 accessible/tests/mochitest/jsat/test_utterance_order.html  | 4 ++++
 dom/locales/en-US/chrome/accessibility/AccessFu.properties | 1 +
 3 files changed, 11 insertions(+), 1 deletion(-)
2013-11-05 21:51:56 -05:00
Yura Zenevich
c8bb70a1cc Bug 924896 - [AccessFu] Exposing the type attribute for entries such as search, url, tel, etc. r=eeejay
---
 accessible/src/jsat/OutputGenerator.jsm            | 22 +++++++++++++++++-
 .../tests/mochitest/jsat/test_utterance_order.html | 27 ++++++++++++++++++++++
 .../en-US/chrome/accessibility/AccessFu.properties |  6 +++++
 3 files changed, 54 insertions(+), 1 deletion(-)
2013-10-24 23:21:29 -04:00
Ed Morley
5e739c94f6 Backed out changeset f59777bbd950 (bug 924896) 2013-10-24 18:14:09 +01:00
Yura Zenevich
2c82ebb9df Bug 924896 - [AccessFu] Exposing the type attribute for entries such as search, url, tel, etc. r=eeejay
---
 accessible/src/jsat/OutputGenerator.jsm            |   17 +++++++++++-
 .../tests/mochitest/jsat/test_utterance_order.html |   27 ++++++++++++++++++++
 .../en-US/chrome/accessibility/AccessFu.properties |    6 ++++
 3 files changed, 49 insertions(+), 1 deletions(-)
2013-10-24 11:16:23 -04:00
Felipe Gomes
843ec4fced Bug 916667 - about:tabcrashed fails to display for pages with no title. r=markh,glandium 2013-09-24 00:47:57 -03:00