Граф коммитов

24066 Коммитов

Автор SHA1 Сообщение Дата
Olli Pettay abf54817b9 Bug 1428246 - The attributeChangedCallback is fired twice for the *first* style attribute change, r=peterv
The idea with this patch is that style code will first call
InlineStyleDeclarationWillChange before style declaration has changed, and SetInlineStyleDeclaration once it has changed.

In order to be able to report old attribute value, InlineStyleDeclarationWillChange reads the value and also calls AttributeWillChange (so that DOMMutationObserser can grab the old value). Later SetInlineStyleDeclaration passes the old value to
SetAttrAndNotify so that mutation events and attributeChanged callbacks are handled correctly.

Because of performance, declaration can't be cloned for reading the old value. And that is why the recently-added callback is used to detect when declaration is about to change (bug 1466963 and followup bug 1468665).

To keep the expected existing behavior, even if declaration isn't changed, but just a new declaration was created (since there wasn't any), we need to still run all these
willchange/set calls. That is when the code has 'if (created)' checks.

Since there are several declaration implementation and only nsDOMCSSAttributeDeclaration needs the about-to-change callback, GetPropertyChangeClosure is the one to initialize the callback closure, and the struct which is then passes as data to the closure.

Apparently we lost mutation event testing on style attribute when the pref was added, so test_style_attr_listener.html is modified to test both pref values.

--HG--
extra : rebase_source : 9e605d43f22e650ac3912fbfb41abb8d5a2a0c8f
2018-06-26 12:54:00 +03:00
Margareta Eliza Balazs c866c30fcf Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-06-26 12:24:32 +03:00
Cosmin Sabou eb4431c0f5 Backed out changeset 638eb8a41245 (bug 1453751) for frequent linux debug e-10s failures on test_ext_webrequest_filter.html
--HG--
rename : browser/base/content/test/favicons/browser_bug408415.js => browser/base/content/test/general/browser_bug408415.js
rename : browser/base/content/test/favicons/browser_bug550565.js => browser/base/content/test/general/browser_bug550565.js
rename : browser/base/content/test/favicons/browser_favicon_change.js => browser/base/content/test/general/browser_favicon_change.js
rename : browser/base/content/test/favicons/browser_favicon_change_not_in_document.js => browser/base/content/test/general/browser_favicon_change_not_in_document.js
rename : browser/base/content/test/favicons/browser_subframe_favicons_not_used.js => browser/base/content/test/general/browser_subframe_favicons_not_used.js
rename : browser/base/content/test/favicons/file_generic_favicon.ico => browser/base/content/test/general/file_bug970276_favicon1.ico
rename : browser/base/content/test/favicons/file_bug970276_popup1.html => browser/base/content/test/general/file_bug970276_popup1.html
rename : browser/base/content/test/favicons/file_bug970276_popup2.html => browser/base/content/test/general/file_bug970276_popup2.html
rename : browser/base/content/test/favicons/file_favicon_change.html => browser/base/content/test/general/file_favicon_change.html
rename : browser/base/content/test/favicons/file_favicon_change_not_in_document.html => browser/base/content/test/general/file_favicon_change_not_in_document.html
rename : browser/base/content/test/favicons/file_with_favicon.html => browser/base/content/test/general/file_with_favicon.html
extra : rebase_source : 77bf32209022e0351c2a3b69affaac4cf33aa9a6
2018-06-26 07:29:35 +03:00
Masayuki Nakano cccab7b98a Bug 900750 - part 4: Make NativeKey replaces MODIFIER_CONTROL and MODIFIER_ALT of mModKeyState with MODIFIER_ALTGRAPH if user emulates AltGr key press with pressing both Ctrl and Alt keys and current keydown produces character(s) r=m_kato,smaug
Users can emulate AltGr key with pressing both Ctrl key and Alt key on Windows
since AltGr is represented as so in Windows and physical keyboard may not have
AltRight key.

If user emulates AltGr key, we should set MODIFIER_ALTGRAPH to a set of
keyboard events for printable keys only when the key press produces
character(s) or a dead key.  For example:

1. ControlLeft keydown event should make ctrlKey true.
2. AltLeft keydown event should make altKey true (not AltGraph state).
3. ctrlKey and altKey of printable keydown, keypress and keyup events should be
   set to false, but getModifierState("AltGraph") should return true.
4. AltLeft keyup event should make altKey false.
5. ControlLeft keyup event should make ctrlKey false.

(If AltLeft key is pressed first, altKey of AltLeft keydown is true and
both altKey and ctrlKey of the following ControlLeft keydown are true as
usual.)

MozReview-Commit-ID: 8Km8GXPDQw1

--HG--
extra : rebase_source : f4924f075c68361c8ce563910280ea24774c519f
2018-06-04 14:45:28 +09:00
Masayuki Nakano 8fc19f6752 Bug 900750 - part 2: Make ModifierKeyState and VirtualKey treat AltGraph as new modifier and won't set Control and Alt state while AltGraph is active r=m_kato,smaug
By the proposal from Google, <https://github.com/w3c/uievents/issues/147>,
Chromium treat AltRight key as "AltGraph" modifier if the keyboard layout
has AltGr key.

When AltRight key is pressed with a keyboard layout which has AltGr key,
modifiers should as following:

1. "keydown" for ControlLeft:
  ctrlKey:  true, altKey: false, getModifierState("AltGraph"): false
2. "keydown" for AltRight:
  ctrlKey: false, altKey: false, getModifierState("AltGraph"): true
3. Some "keydown", "keypress" and "keyup" events:
  ctrlKey: false, altKey: false, getModifierState("AltGraph"): true
4. "keyup" for ControlLeft:
  ctrlKey: false, altKey: false, getModifierState("AltGraph"): true
5. "keyup" for AltRight:
  ctrlKey: false, altKey: false, getModifierState("AltGraph"): false

So, only when the preceding "keydown" event for ControlLeft, ctrlKey should
be set to true as usual.  However, after AltRight key is pressed actually,
we should treat "AltGraph" modifier is true and both ctrlKey and altKey
should be set to false for web apps can handle text input normally.

So, MODIFIER_ALTGRAPH and MODIFIER_CONTROL/MODIFIER_ALT should not be set
at the same time.

This patch makes ModifierKeyState have only MODIFIER_ALTGRAPH or
MODIFIER_CONTROL/MODIFIER_ALT.

Additionally, this patch makes VirtualKey::ShiftState treat "AltGraph" as a
modifier.  So, now, VirtualKey needs to convert ShiftState to index value when
it accesses its mShiftStates array.  Therefore, this patch adds
VirtualKey::ToIndex() and make each VirtualKey method use it before
accessing mShiftStates.

Note that this patch also fixes bug of WinUtils::SetupKeyModifiersSequence().
The constructor of KeyPair takes 2 keycode values, but the second virtual
keycode can have scancode to distinguish if the key is left or right.
However, WinUtils::SetupKeyModifiersSequence() never sets scancode to
KeyPair.  Therefore, it fails to dispatch AltRight key event.

MozReview-Commit-ID: 7ealxJH9KlZ

--HG--
extra : rebase_source : 761bc4416222def020a0731d6ae7940ef074ebe0
2018-05-30 17:27:31 +09:00
Tom Ritter 8fab7ae7af Bug 1451601 Do not buffer output in TaskCluster job output r=gps
MozReview-Commit-ID: 4XOcqSXGhHi

--HG--
extra : rebase_source : 315755e7027546f26f98d154dfe15cd0eaf5684d
2018-06-25 15:28:06 -05:00
Gijs Kruitbosch 006aa20e16 Bug 1438499 - show 'close multiple tabs' warning dialog when quitting, r=jaws,whimboo
MozReview-Commit-ID: J2gi9do8HK9

--HG--
extra : rebase_source : b22103b5a4d43fc6da535ef00f75ed6bc80d92fb
2018-06-13 09:34:52 -07:00
Gijs Kruitbosch a4d6d71982 Bug 1470100 - use a vector instead of an array for the list of prefs, r=ato
MozReview-Commit-ID: 5JI85Rif28M

--HG--
extra : rebase_source : ce4ee702166107d85b268f78d5efaa66eaa9ab2b
2018-06-21 12:02:00 +01:00
Dave Hunt 4d7f8fd972 Bug 1428362 - Run modernize against mozlog to support Python 3; r=ahal
MozReview-Commit-ID: 6BxTt4eGmfc

--HG--
extra : rebase_source : 2185715e8664288a9847dd81695fdb1640ee32eb
2018-05-31 13:35:19 +01:00
Joel Maher 9c7f5155eb Bug 1466853 - Port stylebench and motionmark benchmarks test from talos to raptor. r=rwood
stylebench and motionmark run in talos, we want these running in raptor

Differential Revision: https://phabricator.services.mozilla.com/D1814
2018-06-25 20:28:58 +00:00
Henrik Skupin 894f69b8b2 Bug 1470414 - Clean-up moz.build files for BUG_COMPONENT in testing/. r=ahal
MozReview-Commit-ID: F5vHc4G13v6

--HG--
extra : rebase_source : 1c6c8de55def6026da467d589ec3a8b511986125
2018-06-22 13:32:05 +02:00
Geoff Brown 897d7e1991 Bug 1470177 - Ensure numeric comparison of timeout in adb.py; r=bc 2018-06-25 10:09:48 -06:00
Geoff Brown a26309e5fe Bug 1470177 - Improve timeout handling in runjunit.py; r=bc 2018-06-25 10:09:45 -06:00
Lee Salzman df04ecc567 Bug 1468801 - deprecate SkiaGL for Canvas2D. r=snorp 2018-06-14 11:08:14 -07:00
Ben Kelly 1ab920261c Bug 1469988 Fix performance-timeline.https.html to not timeout if bufferfull event is not fired in service worker. r=mrbkap 2018-06-23 10:12:26 -07:00
Bob Clary 1e9e1b9418 Bug 1426586 - Add mozharness script and config for android hardware tests, r=gbrown 2017-12-19 00:26:18 -08:00
Andreea Pavel 2104aead80 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-06-23 00:52:57 +03:00
Andreea Pavel ef549e2095 Merge mozilla-inbound to mozilla-central. a=merge 2018-06-23 00:49:42 +03:00
Eric Rahm 08c517ede3 Bug 1395540 - Part 6: Fix missing whitespace. r=me
--HG--
extra : rebase_source : b72967aeecd2a9e397ccd1c1a9bf7d2eec13a328
2018-06-22 12:13:35 -07:00
Rob Wood c69268f5dd Bug 1468535 - Port raptor-speedometer firefox to linux64; r=jmaher
MozReview-Commit-ID: 2guFxLN3yLq

--HG--
extra : rebase_source : ffddd40608baaccb4a44eb142e43ad991cc5ab73
2018-06-22 11:24:38 -04:00
Jonathan Kew 0175511c57 Bug 1460527 - Adjust WPT expectations for font fallback changes that affect fragile first-letter tests. r=me. 2018-06-22 11:52:21 +01:00
Eric Rahm e6892b931a Bug 1442361 - Track explicit memory usage in the base content memory test. r=mccr8
--HG--
extra : rebase_source : f6ef9d4f541c7df1dfbb0297613ec0c011688d29
2018-06-21 14:57:12 -07:00
Coroiu Cristina e72433191e Merge inbound to mozilla-central a=merge 2018-06-22 12:55:04 +03:00
Emilio Cobos Álvarez c228998b4f Bug 1410578: Make <link rel="stylesheet"> work in shadow trees. r=heycam
Summary: Somewhat straight-forward, mostly removing special-casing.

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

MozReview-Commit-ID: 6f8duD4pGrl
2018-06-22 04:15:56 +02:00
Emilio Cobos Álvarez c3ac8b8b46 Bug 1470150: noscript rules should not apply to non-HTML elements. r=heycam
Differential Revision: https://phabricator.services.mozilla.com/D1749

MozReview-Commit-ID: JhNFlHbtDw6
2018-06-22 03:48:34 +02:00
Emilio Cobos Álvarez 3d4fb99408 Bug 1470087: Tests for getComputedStyle on display: none subtrees. r=heycam
MozReview-Commit-ID: B7UNVcTW0WG
2018-06-22 03:39:26 +02:00
Csoregi Natalia ed1521707f Merge inbound to mozilla-central. a=merge 2018-06-22 00:50:23 +03:00
Olli Pettay 3d32fafdae Bug 1396761, add a testcase ensuring creating customized built-in elements rethrow the exception from the constructor, r=mrbkap 2018-06-21 20:59:28 +03:00
Eric Rahm 5ab7117b5c Bug 1395540 - Part 5: Enable DMD in automation. r=bc
This adds support running AWSY with DMD in automation via mozharness. We use
existence of dmd.py to detect whether or not dmd should be enabled.
Additionally sandboxing has to be disabled in order to avoid crashes on Windows
and OSX.

--HG--
extra : rebase_source : 1576dbb98bc2cff565ea5055daaec5a44aed88a8
2018-06-15 09:59:18 -07:00
Dave Hunt 11afa9eaef Bug 1470122 - Bump mozinstall to 1.16.0; r=whimboo
MozReview-Commit-ID: LtxU2upM8Oo

--HG--
extra : rebase_source : 9ca85c85b220ad797a02c113c4d8e16f4d81f88d
2018-06-21 13:26:41 +01:00
Ahilya Sinha 0c0e0dc0a6 Bug 1468869 - Add git-cinnabar support for wpt-manifest download, r=ato
MozReview-Commit-ID: 7Nl4r7ty7Ji

--HG--
extra : rebase_source : eafe63123caa4ab5416bd658f0aa2f0b4df8f52f
2018-06-14 15:51:26 -07:00
Andrea Marchesini 5a50ce0da9 Bug 1268889 - Implement Clear-Site-Data header - part 2 - pref, r=smaug 2018-06-20 11:57:49 -04:00
Andrea Marchesini 10a98f93d1 Bug 1268889 - Implement Clear-Site-Data header - part 1, r=mayhemer 2018-06-20 11:57:49 -04:00
Henrik Skupin 734f172309 Bug 1467700 - Disable download of OpenH264 and Widevine plugins for Marionette and geckodriver. r=ato
MozReview-Commit-ID: BYcxxdblzcD

--HG--
extra : rebase_source : 5f9861860ee5033bfa807948591fff0bc2b16bb2
2018-06-08 12:12:46 +02:00
Andreas Tolfsen 1c8c3887ef Bug 1469307 - Pretty-print Attr objects in format.pprint. r=whimboo
Attr objects are returned from Node.getAttribute() and this provides
a readable string like the one offered in devtools for them.

MozReview-Commit-ID: 60Pb0AV1tjt

--HG--
extra : rebase_source : e5ae61bdeb283f635714cd6b9d422eaeb0dbf0e4
2018-06-18 16:05:39 +01:00
Gurzau Raul 9862c7afdc Backed out changeset 96496ebab2d9 (bug 1466853) for StyleBench failures on a CLOSED TREE 2018-06-22 02:51:38 +03:00
Cosmin Sabou aa915dbed0 Merge central to autoland. a=merge 2018-06-21 04:18:03 +03:00
Cosmin Sabou 4c18cd4036 Merge inbound to central. a=merge
--HG--
rename : servo/components/style/properties/longhand/box.mako.rs => servo/components/style/properties/longhands/box.mako.rs
2018-06-21 04:16:40 +03:00
Andrea Marchesini aae23cc727 Bug 1268889 - Implement Clear-Site-Data header - part 2 - pref, r=smaug 2018-06-20 11:57:49 -04:00
Andrea Marchesini 2726b1820f Bug 1268889 - Implement Clear-Site-Data header - part 1, r=mayhemer 2018-06-20 11:57:49 -04:00
Ciure Andrei 75ba9e4e5c Backed out 1 changesets (bug 1405428) for wpt failures. CLOSED TREE
Backed out changeset 0b026cd7903d (bug 1405428)
2018-06-20 18:25:45 +03:00
Joel Maher 3b4cff2f56 Bug 1405428 - annotate web-platform-tests which fail to pass test-verify. r=gbrown 2018-06-19 12:27:57 -04:00
Emilio Cobos Álvarez e80b8667d5 Bug 1469076: Fix the broken invariants of the rule node cache. r=heycam
We were spuriously reframing the <shadow> because it initially shared style with
the <br>, which ended up being display: none, while the <shadow> should've been
display: contents from the beginning.

lookup_by_rules seems pretty prone to obscure bugs, and also it's pretty
complex... Probably we should try to get rid of it, I'm unconvinced that it's
worth it.

Even with that, in a normal restyle the <details> wouldn't have ended up with a
style. It of course never had it before the reframe because the <shadow> was
display: none, but that doesn't mean it shouldn't have gotten one, since we
detected we needed to go through kids in:

  https://searchfox.org/mozilla-central/rev/6eea08365e7386a2b81c044e7cc8a3daa51d8754/servo/components/style/matching.rs#500

That code did happen, but since it's an animation-only restyle, we don't look at
unstyled stuff.

That looks somewhat fishy, but I guess for now it's fine as long as display
isn't animatable.

MozReview-Commit-ID: B6NMSTNOKgK
2018-06-20 11:21:35 +02:00
Blake Kaplan 5d09eec7de Bug 1469433 - Match the spec's error reporting more closely. r=smaug
MozReview-Commit-ID: LI13cA0okeu

--HG--
extra : rebase_source : 8ffb8db4fc0e4905f31cca2b41a954b89720e42a
2018-06-19 15:30:43 -07:00
Bogdan Tara 106238d1d1 Bug 1468201 - Removed old Windows references. r=jmaher 2018-06-19 09:21:00 +03:00
Olli Pettay d10d7af09d Bug 1443722 - Implement customElements.upgrade() , r=mrbkap
--HG--
extra : rebase_source : b6153841b5cb38d697795564f1e864e46eb96d35
2018-06-20 02:06:33 +03:00
Dorel Luca b595d82310 Merge mozilla-central to mozilla-inbound 2018-06-20 01:06:23 +03:00
Dorel Luca e06ba10d0b Merge mozilla-inbound to mozilla-central. a=merge 2018-06-20 00:54:45 +03:00
Joel Maher 3732d000de Bug 1465360 - add asm.js-apps shell benchmark to jsshell-bench. r=ahal 2018-06-19 08:58:20 -04:00
Justin Wood fa608470a1 Bug 1469595 - Android single locale (not nightly) broken on beta. r=rail
Differential Revision: https://phabricator.services.mozilla.com/D1703
2018-06-19 16:41:32 +00:00