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

622232 Коммитов

Автор SHA1 Сообщение Дата
Jonathan Kingston 4248b4c554 Bug 1490257 - Pass triggeringPrincipal to test code. r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D10882

--HG--
extra : moz-landing-system : lando
2018-11-05 14:05:47 +00:00
Chris Martin 3824b0d43e Bug 1402282 - Change jemalloc to use secure random arena ids r=glandium
Previously the id for a new arena was just a counter that increased by one
every time. For hardening purposes, we want to make the new counter a secure
random ID, so an attacker will have a more difficult time finding the memory
they are looking for.

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

--HG--
extra : moz-landing-system : lando
2018-11-05 00:27:31 +00:00
Chris Martin a1d5bd1909 Bug 1402282 - Clang-format on mozjemalloc r=glandium
Differential Revision: https://phabricator.services.mozilla.com/D10794

--HG--
extra : moz-landing-system : lando
2018-11-05 00:26:00 +00:00
vinoth 896a7bbbd2 Bug 1504207 - Add Prefs for allowing usage of eval with system principal in test files r=ckerschb
Differential Revision: https://phabricator.services.mozilla.com/D10696

--HG--
extra : moz-landing-system : lando
2018-11-05 13:39:31 +00:00
ffxbld de627b48fd No Bug, mozilla-central repo-update HSTS HPKP remote-settings tld-suffixes - a=repo-update r=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D10879

--HG--
extra : moz-landing-system : lando
2018-11-05 13:27:19 +00:00
Razvan Caliman c1b14bfa3e Bug 1502857 - Refactor loading tools in Inspector sidebar; r=gl
- removes duplication of logic to create each panel.
- removes needless exposing of panel instances as properties on `inspector`:
  - `inspector.layoutview`
  - `inspector.fontinspector`
  - `inspector.animationinspector`
  - `inspector.changesview`
- updates tests to not rely on those exposed properties and instead
call `inspector.getPanel(toolId)` (previously created panels are stored
and a reference is returned).
- consolidates panel `destroy()` so we don't have to remember to
destroy them individually.

MozReview-Commit-ID: GVkP6z7FxKt

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

--HG--
extra : moz-landing-system : lando
2018-11-05 13:15:10 +00:00
WR Updater Bot 5f0e43a33a Bug 1504507 - Re-vendor rust dependencies. r=kats
Depends on D10889

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

--HG--
extra : moz-landing-system : lando
2018-11-05 13:14:49 +00:00
WR Updater Bot 0b6d11eb7f Bug 1504507 - Update serde branch for changes in WR PR #3264. r=kats
Depends on D10887

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

--HG--
extra : moz-landing-system : lando
2018-11-05 13:14:07 +00:00
WR Updater Bot a42012aeb7 Bug 1504507 - Update webrender to commit b04e28d59a339fe0b155ff4e5edfe2f2edac71f9 (WR PR #3264). r=kats
Differential Revision: https://phabricator.services.mozilla.com/D10887

--HG--
extra : moz-landing-system : lando
2018-11-05 13:13:55 +00:00
Gerald Squelart 69cacfa74d Bug 1504347 - Add IDLE markers and AUTO_PROFILER_THREAD_SLEEP around Necko waits - r=mayhemer
IDLE markers help with categorizing threads in the profiler UI.
_SLEEP makes the profiler spend less time sampling threads that haven't changed.

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

--HG--
extra : moz-landing-system : lando
2018-11-05 12:58:51 +00:00
Masayuki Nakano 2bde324acf Bug 1501663 - part 7: HTMLEditor::GetSelectedElement() shouldn't return element node when Selection starts before the element node r=m_kato
This fixes odd case of this API.  GetSelectedElement() ignores non-element
nodes before an element node.  This must be intended to allow Selection to
start from in an element node.  However, current code allows to select starting
from previous text node.  This patch changes this behavior to stop looking
for element node if non-element node appears before an element node.

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

--HG--
extra : moz-landing-system : lando
2018-11-05 11:38:10 +00:00
Masayuki Nakano 189f0a35de Bug 1501663 - part 6: Get rid of |foundElmentInRange| r=m_kato
The |for| loop in HTMLEditor::GetSelectedElement() does not allow to be
after an element node because if another element is found, returns nullptr,
and if another non-element node is found, lastElementInRange which is
result of the method is cleared.  So, we checking lastElementInRange at
first of the for loop (i.e., immediately after calling
nsIContentIterator::Next()), we can get rid of use ugly bool flag.

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

--HG--
extra : moz-landing-system : lando
2018-11-05 11:16:20 +00:00
Masayuki Nakano 8442e9e0f6 Bug 1501663 - part 5: Rewrite the loop in HTMLEditor::GetSelectedElement() with |for| r=m_kato
HTMLEditor::GetSelectedElement() uses |while| and calls
nsIContentIterator::Next() at the last line.  Therefore, it cannot use
early-continue style.  Because nsIContentIterator::Next() is always called,
it should be rewrite with |for|.

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

--HG--
extra : moz-landing-system : lando
2018-11-05 11:07:34 +00:00
Masayuki Nakano db5abeb169 Bug 1501663 - part 4: Clean up first-half of HTMLEditor::GetSelectedElement() r=m_kato
HTMLEditor::GetSelectedElement() should use RangeBoundary to reduce auto
variables which are in large scope.  So, first optimization block can be
optimized with RangeBoundary.

Then, the second block, for handling nsGkAtoms::href, does not need to
retrieve AnchorRef() nor FocusRef() since this is exactly same as
StartRef() and EndRef() of the first range when there is only one selected
range.  So, the last |if| block in this block is not necessary since
this has already been handled by the first block.

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

--HG--
extra : moz-landing-system : lando
2018-11-05 11:05:54 +00:00
Masayuki Nakano 82618136b1 Bug 1501663 - part 3: HTMLEditor::GetElementOrParentByTagNameInternal() shouldn't return <a> element when it's looking for nsGkAtoms::href or nsGkAtoms::anchor but found <a> element does not match with <a href="..."> or <a name="..."> r=m_kato
HTMLEditor::GetElementOrParentByTagNameInternal() may return <a> element
which does not match for nsGkAtoms::href or nsGkAtoms::anchor (in the former
case, it should return only an <a> element which has "href" attribute and
its value is not empty.  in the latter case, it should return only <a> element
which has "name" attribute and its value is not empty).

This patch makes it won't check found element's name when nsGkAtoms::href or
nsGkAtoms::anchor is specified.

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

--HG--
extra : moz-landing-system : lando
2018-11-05 06:52:11 +00:00
Masayuki Nakano 2654031504 Bug 1501663 - part 2: HTMLEditor::GetSelectedElement() should return nullptr if 2 or more elements are in selected range r=m_kato
This is also regression of bug 1432944, but hidden by the optimization of
bug 1482019.

In bug 1482019, we removing the code clearing |found| flag when the loop
meets second element in selection range.
https://searchfox.org/mozilla-central/diff/0dd29e18302c5e6b07b88aac7164889d752acda7/editor/libeditor/HTMLEditor.cpp#2751-2753
because the flag won't be referred.

However, before the fix of bug 1432944, it's referred and the cleared flag
makes the method return nullptr.

Therefore, this patch makes it return nullptr when 2 or more elements are
in selected range.

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

--HG--
extra : moz-landing-system : lando
2018-11-05 04:57:02 +00:00
Masayuki Nakano fa95dc80c3 Bug 1501663 - part 1: HTMLEditor::GetSelectedElement() should return nullptr when first found element is not what the caller is looking for r=m_kato
This takes back old behavior, 59 or earlier version.

|selectedElement| may be set to an element which is not what the caller is
looking for.  Therefore, if the first element node in the selected range is
not what the caller is looking for, it should return nullptr.

This regression is caused by this changeset:
https://hg.mozilla.org/mozilla-central/rev/93c1d149d757 (bug 1432944)

Additionally, this patch modifies the automated test for conforming to
original idea of the API.  This API must not be intended to retrieve
usual inline elements like <b>, <i>, etc.

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

--HG--
extra : moz-landing-system : lando
2018-11-05 03:52:10 +00:00
ffxbld e35d7cbe8f No Bug, taskcluster/docker/funsize-update-generator pipfile-update. r=sfraser
Differential Revision: https://phabricator.services.mozilla.com/D10872

--HG--
extra : moz-landing-system : lando
2018-11-05 12:28:30 +00:00
arthur.iakab a4fd61f751 Backed out changeset dda13ad0cdee (bug 1393004) for failing TV tests on spv-only-sent-to-initiator.sub.html CLOSED TREE
--HG--
rename : testing/web-platform/tests/content-security-policy/navigate-to/form-action/form-action-blocks-navigate-to-allows.sub.html => testing/web-platform/tests/content-security-policy/navigate-to/form-action/form-action-blocks-navigate-to-allows.html
rename : testing/web-platform/tests/content-security-policy/navigate-to/spv-only-sent-to-initiator.sub.html => testing/web-platform/tests/content-security-policy/navigate-to/spv-only-sent-to-initiator.html
2018-11-05 14:07:22 +02:00
Emilio Cobos Álvarez 8babb8a035 Bug 1504644 - Fix servo build. 2018-11-05 12:47:03 +01:00
Emilio Cobos Álvarez 0fce47dc20 Bug 1504644 - Fix tidy issues. 2018-11-05 12:25:59 +01:00
Emilio Cobos Álvarez dddb8d0f6a Bug 1504644 - Cherry-pick servo/servo#21644. 2018-11-05 12:25:24 +01:00
Sebastian Hengst 2707fcbd6c Bug 1504521 - rename in-tree mentions of bugzilla metadata for product and component "Core :: Layout: Web Painting" to "Core :: Web Painting" r=kats
Differential Revision: https://phabricator.services.mozilla.com/D10832

--HG--
extra : moz-landing-system : lando
2018-11-04 12:57:04 +00:00
Wes Kocher 7f1ff917d9 Bug 1393004 - Make sure wpt pipes are used in form-action-blocks-navigate-to-allows and spv-only-sent-to-initiator r=jgraham
Neither test file was picking up the pipes correctly due to file names, and form-action-blocks-navigate-to-allows was just using the string "dummy" instead of an actual dummy uuid. This patch fixes that.

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

--HG--
rename : testing/web-platform/tests/content-security-policy/navigate-to/form-action/form-action-blocks-navigate-to-allows.html => testing/web-platform/tests/content-security-policy/navigate-to/form-action/form-action-blocks-navigate-to-allows.sub.html
rename : testing/web-platform/tests/content-security-policy/navigate-to/spv-only-sent-to-initiator.html => testing/web-platform/tests/content-security-policy/navigate-to/spv-only-sent-to-initiator.sub.html
extra : moz-landing-system : lando
2018-11-05 10:55:03 +00:00
Wes Kocher f17c49b20e Bug 1499969 - update wpt metadata for a passing screen-orientation test on android r=jgraham
Differential Revision: https://phabricator.services.mozilla.com/D10831

--HG--
extra : moz-landing-system : lando
2018-11-05 10:53:53 +00:00
Jan Odvarko 80afef1c94 Bug 1476097 - Use the Menu API's edit menu for all context menu textboxes within the toolbox; r=bgrins,flod
Differential Revision: https://phabricator.services.mozilla.com/D6494

--HG--
rename : devtools/client/webconsole/utils/context-menu.js => devtools/client/framework/toolbox-context-menu.js
extra : moz-landing-system : lando
2018-11-05 10:52:27 +00:00
Paul Adenot 44be778ba3 Bug 1503536 - Call ApplySettings in MediaEngineWebRTCMicrophoneSource::Start. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D10347

--HG--
extra : moz-landing-system : lando
2018-11-05 10:43:08 +00:00
Emilio Cobos Álvarez 5d6e408a75 Bug 1462233 - Simplify invalid custom property handling. r=xidorn
It's a bit useless to keep a set of invalid properties if we're going
to use them just to reject lookups into another key. This makes it more
consistent with the cascade / no-references code, and should not change
behavior.

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

--HG--
extra : moz-landing-system : lando
2018-11-05 10:42:12 +00:00
Emilio Cobos Álvarez bc8766b7fc Bug 1462233 - Implement the env() function with hardcoded zeros for safe-area-inset. r=heycam,firefox-style-system-reviewers
Intent to Implement and Ship: https://groups.google.com/d/msg/mozilla.dev.platform/EVKyR1B87T0/_l-_qK8SAAAJ

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

--HG--
extra : moz-landing-system : lando
2018-11-05 10:39:46 +00:00
Andi-Bogdan Postelnicu 4f5c3e9078 Bug 1501821 - Update clang-plugin in order to make it compatiable with clang 8.0.0 trunk. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D10806

--HG--
extra : moz-landing-system : lando
2018-11-03 13:41:36 +00:00
Margareta Eliza Balazs 9c21a42638 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-11-05 11:52:05 +02:00
Margareta Eliza Balazs 7c848ac763 Merge inbound to mozilla-central. a=merge 2018-11-05 11:48:33 +02:00
Emilio Cobos Álvarez 82d06eb342 Bug 1504536 - Simplify the SVG animation code. r=hiro,heycam
It's overly generic for no good reason.

Differential Revision: https://phabricator.services.mozilla.com/D10844
2018-11-05 10:36:07 +01:00
Emilio Cobos Álvarez 41b924baf1 Bug 1504536 - Move animation of svg-related bits outside of animated_properties. r=hiro
Being in mako is unnecessary, and makes it harder to debug and such.

Differential Revision: https://phabricator.services.mozilla.com/D10843
2018-11-05 10:35:55 +01:00
Emilio Cobos Álvarez 53dca96aa3 Bug 1504536 - Remove nscsspropertyid_is_{animatable,transitionable}. r=hiro
There are better ways, plus the existing code didn't handle aliases at
all (not that it needed to, but it's better if it does).

Differential Revision: https://phabricator.services.mozilla.com/D10838
2018-11-05 10:35:44 +01:00
Emilio Cobos Álvarez 4516fa52fe Bug 1504618 - Remove a bunch of unused style consts. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D10871

--HG--
extra : moz-landing-system : lando
2018-11-05 09:19:25 +00:00
Masayuki Nakano f6c59cabb6 Bug 1504093 - Make DocumentResizeEventListener::HandleEvent() call public methods of HTMLEditor r=m_kato
DocumentResizeEventListener::HandleEvent() calls protected method,
HTMLEditor::RefreshResizersInternal().  However, this method is an event
handler, i.e., called when the editor is not handling an edit action.

Therefore, for ensuring AutoEditActionDataSetter instance, it should call
public method, nsIHTMLEditor::RefereshResizers() instead.

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

--HG--
extra : moz-landing-system : lando
2018-11-05 06:28:53 +00:00
Ciure Andrei 46f758b8b5 Backed out changeset cb84a3ed7bdd (bug 1504557) for nsErrorService leakcheck failures CLOSED TREE 2018-11-05 05:17:40 +02:00
Ehsan Akhgari dd816ca924 Bug 1504438 - Remove the XPCOM registration for "@mozilla.org/accessibleRetrieval;1" r=surkov
This contract ID is unused.

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

--HG--
extra : moz-landing-system : lando
2018-11-05 01:43:04 +00:00
Masayuki Nakano 9d4ed3f232 Bug 1503744 - Make HTMLEditor::SetHTMLBackgroundColorWithTransaction() not refer RefPtr after moving it r=m_kato
Simple fix of crash caused by referring nullptr.

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

--HG--
extra : moz-landing-system : lando
2018-11-05 02:13:05 +00:00
Masayuki Nakano dbbd5b9823 Bug 1503565 - Make HTMLEditor::BlobReader::OnResult() create AutoEditActionDataSetter r=m_kato
HTMLEditor::BlobReader::OnResult() is a callback method and it calls
non-public method of HTMLEditor, DoInsertHTMLWithContext().  So,
DoInsertHTMLWithContext() may need caller to have already created
AutoEditActionDataSetter instance.  Therefore, BlobReader should keep
EditAction which is the purpose of creating it and its OnResult() should
create AutoEditActionDataSetter instance with it.

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

--HG--
extra : moz-landing-system : lando
2018-11-05 02:12:27 +00:00
Lee Salzman 102969de53 Bug 1503749 - fix SkColor4f to SkColor conversion on big-endian. r=awilfox 2018-11-04 20:37:17 -05:00
Ehsan Akhgari e95c3cca7d Bug 1504557 - Remove the XPCOM registration for nsErrorService r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D10848

--HG--
extra : moz-landing-system : lando
2018-11-05 00:43:41 +00:00
Ehsan Akhgari 3f93a1ac85 Bug 1504558 - Mark nsIErrorService an non-scriptable r=froydnj
There are no scriptable consumers of this interface.

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

--HG--
extra : moz-landing-system : lando
2018-11-05 00:45:10 +00:00
Emilio Cobos Álvarez c2a166db23 Bug 1504536 - Move various font-related animation code to its own file. r=hiro
Similarly, the code is not trivial and doesn't really need to be in
mako.

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

--HG--
extra : moz-landing-system : lando
2018-11-04 23:18:18 +00:00
Emilio Cobos Álvarez 0549a1d065 Bug 1504536 - Move various length animation implementations to its own file. r=hiro
It's nicer, I think.

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

--HG--
extra : moz-landing-system : lando
2018-11-04 23:16:07 +00:00
Emilio Cobos Álvarez ecf9afe80c Bug 1504536 - Move the keyframes property priority stuff outside of animated_properties. r=hiro
Similarly, no need to be here.

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

--HG--
extra : moz-landing-system : lando
2018-11-04 23:12:24 +00:00
Emilio Cobos Álvarez d6b32c443b Bug 1504536 - Move shorthand IDL order stuff out of animated_properties. r=hiro
Doesn't really need to be in a mako file.

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

--HG--
extra : moz-landing-system : lando
2018-11-04 23:10:17 +00:00
Emilio Cobos Álvarez 3a9e249141 Bug 1502751 - Don't keep a separate list of ignored-when-colors-disabled longhands. r=heycam
Most of the change is moving sets around to be static functions on
LonghandIdSet. I think I like that pattern, but I can also make the new set a
global static and add mako code to be `pub` or something.

Though I think the LonghandIdSet::foo().contains(..) pattern is nice to read :)

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

--HG--
extra : moz-landing-system : lando
2018-11-05 00:16:58 +00:00
Emilio Cobos Álvarez bb25a09e27 Bug 1502893 - Don't match document author rules if not needed for revalidation. r=heycam,firefox-style-system-reviewers
When you're in a ShadowRoot and can share style with a sibling, the sharing code
is smart enough to skip document author rules.

But then it could get confused if you also include document rules, since
revalidation selectors are matched against these.

This is not a correctness issue, because we're matching more than what we need,
and avoid sharing if we failed.

Also fix the detection for user rules in any_applicable_rule_data.

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

--HG--
extra : moz-landing-system : lando
2018-11-05 00:05:12 +00:00