Commit Graph

610647 Commits

Author SHA1 Message Date
Ehsan Akhgari
e5937f080b Bug 1484876 - Part 5: Merge the PrivateBrowsingTrackingProtectionWhitelist service with PrivateBrowsingUtils.jsm; r=johannh 2018-08-22 09:08:10 -04:00
Ehsan Akhgari
3070297f6f Bug 1484876 - Part 4: Remove nsIPrivateBrowsingTrackingProtectionWhitelist.existsInAllowList(); r=johannh 2018-08-22 09:08:10 -04:00
Ehsan Akhgari
c4e0a11824 Bug 1484876 - Part 3: Refactor the code responsible for checking whether the top window URI is on the content blocking allow list into AntiTrackingCommon; r=francois 2018-08-22 09:08:10 -04:00
Ehsan Akhgari
57a5790ea9 Bug 1484876 - Part 2: Check the trackingprotection-pb permission in the channel classifier code instead of accessing nsIPrivateBrowsingTrackingProtectionWhitelist; r=francois 2018-08-22 09:08:10 -04:00
Ehsan Akhgari
b7e2c3cf52 Bug 1484876 - Part 1: Refactor the PrivateBrowsingTrackingProtectionWhitelist service on top of the permission manager; r=johannh
Session permissions aren't persisted to disk, so we can easily add a
new permission type and only store session permissions in the permission
manager database, and drop the in-memory allow list that this service
maintains.

This has the advantage that the permission manager already has the IPC
machinery to make this information available in the content processes,
so we can also check this allow list in the content process.
2018-08-22 09:08:10 -04:00
Dão Gottwald
17bfe80ec1 Bug 1485256 - Use photon red for the fullscreen window close button. r=ntim
--HG--
extra : rebase_source : 8aa8dd600dfc45b520b0a378ea098057b2f74eef
2018-08-22 07:38:03 +02:00
Kai Engert
54db9a96b9 Bug 1477680, land NSPR 4.20 beta snapshot 34274ae8c85e, r=me
UPGRADE_NSPR_RELEASE
2018-08-22 14:09:49 +02:00
Nathan Froyd
a19ca9d1ab Bug 1480652 - add an aarch64 windows case to ServoBindings.toml; r=xidorn
This is the LLVM target name that's getting used in https://github.com/rust-lang/rust/pull/53173.
2018-08-22 08:01:29 -04:00
Nicolas Silva
9bd631e865 Bug 1484624 - Don't create texture sources if the compositor doesn't have a GL context. r=sotaro 2018-08-22 13:59:15 +02:00
Paul Adenot
1c154b62b4 Bug 1483926 - Take into account mInputDeviceID is always nullptr on Android for now. r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D3899

--HG--
extra : moz-landing-system : lando
2018-08-21 16:32:24 +00:00
Nicolas Chevobbe
deb15674b1 Bug 1483880 - Always hide the autocompletion popup in acceptProposedCompletion; r=Honza.
When hitting enter, if there was no autocompletionText shown (because
the input was matching a proposed value), then the autocompletion
popup wasn't closed.
We now close it every time, and only check the completionText to
insert a possible string after the cursor.
A test case is added to make sure we don't regress this.

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

--HG--
extra : moz-landing-system : lando
2018-08-22 11:40:09 +00:00
Henri Sivonen
641c6f0580 Bug 1485320 - Use SetLength() instead of GetMutableData() throwing away the pointer in MemoryOutputStream::Create(). r=asuth
MozReview-Commit-ID: zZmGlE30kz

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

--HG--
extra : moz-landing-system : lando
2018-08-22 11:32:41 +00:00
Mark Banner
8c0f4cd4a0 Bug 1485113 - Change DownloadHistory to keep a cache of download metadata throughout the session. r=paolo
This avoids the need to do async lookups in the database when updating the UI.

MozReview-Commit-ID: BXe88ay0csO

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

--HG--
extra : moz-landing-system : lando
2018-08-22 11:25:01 +00:00
Jan Odvarko
3476ed9421 Bug 1470815 - Make sure the Security panel is visible for HTTP requests in the Console panel; r=nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D3904

--HG--
extra : moz-landing-system : lando
2018-08-22 11:14:45 +00:00
Ionut Goldan
cdc30659e3 Bug 1411304 - lowerIsBetter not true for sccache hit rate r=jmaher
Differential Revision: https://phabricator.services.mozilla.com/D3959

--HG--
extra : moz-landing-system : lando
2018-08-22 09:54:41 +00:00
Johann Hofmann
8997b3ac3e Bug 1484583 - Update Tracking Protection UI tour for Content Blocking. r=nhnt11
Differential Revision: https://phabricator.services.mozilla.com/D3929

--HG--
rename : browser/components/uitour/test/browser_trackingProtection.js => browser/components/uitour/test/browser_contentBlocking.js
extra : moz-landing-system : lando
2018-08-22 10:29:52 +00:00
Mark Banner
f99b0cbb91 Bug 1484482 - Fix the bookmarks menu when it is displayed via the hidden window. r=paolo
MozReview-Commit-ID: 7VYNxFmedZl

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

--HG--
extra : moz-landing-system : lando
2018-08-22 10:17:28 +00:00
Masayuki Nakano
6bba243c2c Bug 1484124 - part 1: Create HTMLEditor::GetCellIndexes() class to get and store indexes of a table cell r=m_kato
HTMLEditor::GetCellIndexes() is an XPCOM method and used a lot internally.
So, we need alternative way to retrieve indexes of a cell without virtual
calls.  In a lot of places, receiving indexes with 2 int32_t variables causes
the code messy and that causes making it harder to understand which are
index for same cell and where they come from.  So, making both of them stored
one variable makes the callers simpler.  Therefore, this patch creates
CellIndexes stack class to get and store the result simply.  Then, this makes
all callers of GetCellIndexes() use this new class and makes GetCellIndexes()
also use this new class.

FYI: This patch does NOT put ErrorResult instances in small block scope as far as
possible. The reason is, I see its destructor in profile sometimes. I don't think
that we should use nsresult& instead of ErrorResult& only for this performance
reason, but I think that creating each instance in loops does not make sense.

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

--HG--
extra : moz-landing-system : lando
2018-08-22 03:34:40 +00:00
Masayuki Nakano
d344ead994 Bug 1484124 - part 0: Add automated tests for nsITableEditor::GetCellIndexes() r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D3848

--HG--
extra : moz-landing-system : lando
2018-08-22 03:35:05 +00:00
Noemi Erli
a6271be24c Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-08-22 12:53:37 +03:00
Noemi Erli
a3eb003ecf Merge inbound to mozilla-central. a=merge
--HG--
rename : testing/web-platform/tests/css/motion/offset-path-string.html => testing/web-platform/tests/css/motion/offset-path-string-001.html
2018-08-22 12:49:02 +03:00
Emilio Cobos Álvarez
19b0bfc00d Bug 1484855: Match the 'is rendered' definition from the spec in innerText. r=smaug
This matches other implementations and the spec for fallback content like:

  <canvas><div>abc

(calling div.innerText).

We're treating the <div> as 'rendered' because it's not in a display: none
subtree, but that's not ok, since it is in fact not rendered.

This was added in bug 1226293, and Boris suggested this change, but roc opposed
because it'd be hard to spec properly in comment 15. Looks like the HTML spec
ended up merging roc's innerText spec, and now it's spec'd in terms of 'being
rendered'.

I think IsOrHasAncestorWithDisplayNone just doesn't work in any reasonable way
for stuff out of the flat tree. Thus I think this change is the right thing.

The canvas test fails because of bug 1485076.

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

--HG--
extra : moz-landing-system : lando
2018-08-22 09:05:09 +00:00
Masayuki Nakano
28c6b4ddec Bug 1484115 - part 2: Get rid of nsITableEditor.getNextRow() r=m_kato
Nobody uses nsITableEditor.getNextRow().  Therefore, this patch removes this
XPCOM API.

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

--HG--
extra : moz-landing-system : lando
2018-08-22 06:52:16 +00:00
Masayuki Nakano
9bcbe841c9 Bug 1484115 - part 1: Create HTMLEditor::GetNextTableRowElement() for internal use of nsITableEditor::GetNextRow() r=m_kato
nsITableEditor::GetNextRow() is an XPCOM method.  Therefore, we should have
a non-virtual method for internal use of it.

This changes the definition in nsITableEditor.  First, it allows only <tr>
element as what HTMLEditor::GetNextRow() has actually done.  Then, changes
the return type to Element since it always returns an element node.

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

--HG--
extra : moz-landing-system : lando
2018-08-22 06:52:07 +00:00
Xidorn Quan
7119449f79 Bug 1484587 - Put the behavior that overflow-wrap: break-word affecting intrinsic size behind a pref and disable it by default. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D3749

--HG--
extra : moz-landing-system : lando
2018-08-22 06:55:13 +00:00
Masayuki Nakano
7b00fb391b Bug 1484693 - Fix some nits of test_resizers_resizing_elements.html r=m_kato
There are 2 bugs:

One is a simple mistake. kTest is each item of the tests, kTests is array of
all tests.  When it needs to refer kTest.isAbsolutePosition, it referred
kTests.isAbsolutePosiiton.  Therefore, the test always failed to enable
editing UI for absolute positioned element.

The other is, this test requires to disable inline-table-editing UI (which is
add or remove rows and columns).  Note that even if the UI is disabled,
resizers is available for <table> elements.

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

--HG--
extra : moz-landing-system : lando
2018-08-22 06:44:51 +00:00
Cameron McCormack
61ab3b7383 Bug 1485252 - Add MallocSizeOf impls for 128-bit integers. r=xidorn
Differential Revision: https://phabricator.services.mozilla.com/D3947

--HG--
extra : moz-landing-system : lando
2018-08-22 05:37:39 +00:00
Gian-Carlo Pascutto
ac0adb0b5e Bug 1480755 - Add support for new Mesa device probing. r=jld
MozReview-Commit-ID: CD9ATGHUOZ1

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

--HG--
extra : moz-landing-system : lando
2018-08-22 01:52:44 +00:00
Belén Albeza
11358a959e Bug 1460862 - Smooth scrolling when clicking on 'reveal' in slotted elements. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D3509

--HG--
extra : moz-landing-system : lando
2018-08-22 08:35:40 +00:00
Alexandre Poirot
740bef2e99 Bug 1484764 - Prevent netmonitors is undefined exception when closing tools during page load. r=Honza
Differential Revision: https://phabricator.services.mozilla.com/D3863

--HG--
extra : moz-landing-system : lando
2018-08-21 17:06:19 +00:00
Nicolas Silva
808163871b Bug 1483459 - Avoid copying regions before converting them to rects throughout the gfx directory. r=sotaro
This patch was generated using a simple sed script:
sed -i 's/ToUnknownRegion().GetBounds()/GetBounds().ToUnknownRect()/g' gfx/**/*.cpp gfx/**/*.h

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

--HG--
extra : rebase_source : 4e9e7c9f2fb4ca60122712dd06632147cdec7195
2018-08-21 14:58:47 +02:00
Nicolas Silva
55a85b0bc0 Bug 1483459 - Don't needlessly copy regions in ContainerLayer::GetIntermediateSurfaceRect. r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D3876

--HG--
extra : rebase_source : 3f615973f71fbaeed595663308e8ee34b77afd8b
2018-08-21 14:41:42 +02:00
Jan de Mooij
33c23d877c Bug 1466118 part 8 - Change compartment check to realm check for JSScript and AbstractFramePtr. r=luke
--HG--
extra : rebase_source : a4c29a2f5aec406883d4d429ffcf9720ab29ce4f
2018-08-21 13:14:23 +02:00
Jan de Mooij
7930c29c25 Bug 1466118 part 7 - Avoid a TLS lookup for each compartment check. r=jonco
--HG--
extra : rebase_source : d31a14c44c281a5931743806a8fd2ae560959b4b
2018-08-21 12:58:58 +02:00
Jan de Mooij
37ba79255e Bug 1466118 part 6 - Rename CompartmentChecker to ContextChecks and support realm checks. r=luke
--HG--
extra : rebase_source : ae82aa6126bd8d169504c0fa0505348d626012cc
2018-08-21 12:48:03 +02:00
Jan de Mooij
0031fef557 Bug 1466118 part 5 - Replace assertSameCompartmentImpl with JSContext::checkImpl. r=luke
--HG--
extra : rebase_source : 9fccb0b445e1521903ea1310d6b85bec2c0fcd85
2018-08-21 12:34:18 +02:00
Jan de Mooij
4c32da5e1a Bug 1466118 part 4 - Replace assertSameCompartment with JSContext::check. r=luke
--HG--
extra : rebase_source : df78f08fa1e3a26f6713f3c669f4777dbdd9c988
extra : source : e24d946c4978ef29e025fee2f9b79339a27b7d79
2018-08-21 12:18:21 +02:00
Jan de Mooij
aa66503708 Bug 1466118 part 3 - Replace assertSameCompartmentDebugOnly with JSContext::debugOnlyCheck. r=luke
--HG--
extra : rebase_source : d654bc0ce7ab4803ff73889281e2e07d16ae66a2
2018-08-21 12:11:52 +02:00
Jan de Mooij
4f14f33f62 Bug 1466118 part 2 - Replace releaseAssertSameCompartment with JSContext::releaseCheck. r=luke
--HG--
extra : rebase_source : 55532737970009ea24149cbf93a2bace3d54ca3a
2018-08-21 12:07:57 +02:00
Jan de Mooij
fd73b662f3 Bug 1466118 part 1 - Use variadic templates for assertSameCompartment functions. r=luke
--HG--
extra : rebase_source : 4a4d62c9a14bcd55fe758bdc46c8e746b9247442
2018-08-21 11:57:49 +02:00
Henrik Skupin
e8aa70584c Bug 1485564 - [wdspec] Re-enable webdriver/tests/minimize_window/user_prompts.py. r=ato
--HG--
extra : rebase_source : e61121a5aa62fb238d5375bd73b2977cbb6089b4
2018-08-23 08:26:19 +02:00
Nicolas B. Pierron
e5ad38e790 Bug 1418971 - Add Bug 1363233 test case. r=me 2018-08-23 11:54:57 +02:00
Gurzau Raul
e48778441f Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-08-23 12:45:44 +03:00
Nicholas Nethercote
de3b7e3af9 Bug 1483182 - Do report OOM failures in HashTable::reserve(). r=luke
This fixes a typo.

--HG--
extra : rebase_source : bc5d5eaa187797aa1167790c2bddd2db2110bf01
2018-08-21 19:07:20 +10:00
Julian Descottes
f179d033c2 Bug 1479382 - Add README.md in aboutdebugging-new to document architecture guidelines;r=daisuke,ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D2708

--HG--
extra : moz-landing-system : lando
2018-08-21 08:32:26 +00:00
Mantaroh Yoshinaga
b65f665554 Bug 1479071 - Revert kPMDataFormatXMLCompressed to kPMDataFormatXMLNormal. r=mstange
Bug 1411879 introduced kPMDataFormatXMLCompress. However, this parameter caused
the saving print settings problem.
Before investigating this reason, this patch will revert this parameter.

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

--HG--
extra : moz-landing-system : lando
2018-08-22 02:07:28 +00:00
Nicolas Chevobbe
9257e6c166 Bug 1479758 - Enable history navigation with Cmd/Ctrl ArrowUp/Down; r=bgrins.
Matches old-JsTerm behavior.

Depends on D2824

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

--HG--
extra : moz-landing-system : lando
2018-08-21 16:05:45 +00:00
Ciure Andrei
40b18c41b7 Backed out 7 changesets (bug 1429298) for xpcshell failures properties-db.js CLOSED TREE
Backed out changeset 48214a8e1b6b (bug 1429298)
Backed out changeset cc2785ab879e (bug 1429298)
Backed out changeset c217209a3b04 (bug 1429298)
Backed out changeset 196fc7b48b84 (bug 1429298)
Backed out changeset 761e9bb54adb (bug 1429298)
Backed out changeset 0b9ec0d707b5 (bug 1429298)
Backed out changeset 38ad1cc1b0c8 (bug 1429298)

--HG--
rename : testing/web-platform/tests/css/motion/offset-path-string-002.html => testing/web-platform/tests/css/motion/offset-path-string.html
2018-08-22 08:01:49 +03:00
Andreea Pavel
c7eca6e1df Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-08-22 06:37:23 +03:00
Andreea Pavel
883da574e8 Merge mozilla-inbound to mozilla-central. a=merge 2018-08-22 06:35:14 +03:00