Commit Graph

609373 Commits

Author SHA1 Message Date
Masayuki Nakano
0dd29e1830 Bug 1482019 - part 3: Minimize some scope of auto varaiables in HTMLEditor::GetSelectedNode() r=m_kato
Some variables in HTMLEditor::GetSelectedNode() are declared very large block
they are not used and/or referred.  So, we can get rid of some variables or
move smaller block.
2018-08-10 17:41:58 +09:00
Masayuki Nakano
837bcd9d8e Bug 1482019 - part 2: Make HTMLEditor::GetSelectedNode() take nsAtom* for element name r=m_kato
Using nsAtom makes the method faster and simpler, although the caller needs
to atomize lower-cased string.
2018-08-10 17:30:04 +09:00
Masayuki Nakano
8e992098fa Bug 1482019 - part 1: Create non-virtual method HTMLEditor::GetSelectedNode() for implementing nsIHTMLEditor::GetSelectedElement() r=m_kato
For making each diff compact, this bug needs some patches.

First of all, this patch moves implementation of
nsIHTMLEditor::GetSelectedElement() to new non-virtual method
HTMLEditor::GetSelectedNode().
2018-08-10 16:51:52 +09:00
Masayuki Nakano
3b38503bf4 Bug 1482019 - part 0: Add automated tests for nsIHTMLEditor.getSelectedElement() r=m_kato
The HTMLEditor::GetSelectedElement() is ugly.  Probably, it's checked only with
expected simple cases since the result does not make sense in some cases.

For example, when Selection is collapsed, it returns an element only when
"href" is specified with the argument.  When Selection selects only one
element node (including its children), it quickly returns the node, however,
in the slow path, it returns second element node if first element node matches
with the argument.  Or returns first element ndoe if it does not match with
the argument.

For preventing regressions, new test is designed to keep current odd behavior.

The new test is disabled only debug build on Android because adding this test
causes permanent orange of non-related test,
dom/tests/mochitest/fetch/test_request.html, see bug 1480702.
2018-08-13 15:31:56 +09:00
Cameron McCormack
0e70842906 Bug 1483449 - Simplify nsStaticAtomUtils::Lookup. r=njn 2018-08-16 11:40:02 +10:00
Thomas P.
061be62bb5 Bug 1481237 - Automate updating internal libFuzzer code. r=decoder 2018-08-15 22:01:25 +00:00
Makoto Kato
d3b4ee4c97 Bug 1483434 - Allow nullptr parameter for PriorVisibleNode and NextVisibleNode. r=masayuki
Summary:
Sometimes the caller of PriorVisibleNode or NextVisibleNode doesn't use
outVisNode and/or outvisOffset. But both methods require all parameters and
it don't allow nullptr. It is complex whether parameter is used or unused.

So I would like to allow nullptr.

Also, this methods can change to const method, so I will change some methods
to const method too for this change.

Reviewers: masayuki

Tags: #secure-revision

Bug #: 1483434

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

--HG--
extra : rebase_source : 5bd9c87f05c8e88879268188a46a4a80126bd3e5
2018-08-14 18:26:46 +09:00
Csoregi Natalia
22b0dc3451 Backed out changeset a91ccbe2b3fd (bug 1483449) for failures at nsStaticAtomUtils.h:25. CLOSED TREE 2018-08-16 05:11:46 +03:00
Gabriel Luong
d0fbf8a9e5 Bug 1467572 - Part 19: Remove responsive-ua.css. r=rcaliman 2018-08-15 17:27:58 -04:00
Gabriel Luong
d79733fb65 Bug 1467572 - Part 18: Show an onboarding tooltip for the setting menu button in RDM. r=jdescottes
Design https://mozilla.invisionapp.com/d/main#/console/12408235/300479943/preview
2018-08-15 17:27:57 -04:00
Gabriel Luong
1c76adb63f Bug 1467572 - Part 17: Implement left alignment of viewports. r=rcaliman 2018-08-15 17:27:55 -04:00
Gabriel Luong
bd80f8c21d Bug 1467572 - Part 16: Adjust RDM colors for the light and dark theme to match the designs. r=rcaliman
Light Theme Design https://mozilla.invisionapp.com/d/main#/console/12408235/300479943/preview
Dark Theme Design https://mozilla.invisionapp.com/d/main#/console/12408235/302151757/preview
2018-08-15 17:27:53 -04:00
Gabriel Luong
066e7b4a8c Bug 1467572 - Part 15: Fix unit tests for RDM to work with the new RDM design. r=Honza
- Various element IDs and strings were renamed in the preceeding patches before this. This fixes
the strings and element ID reference in the RDM unit tests.
- Fixed RDM unit tests to work with new native context menu which used to be <select> elements.
2018-08-15 17:27:51 -04:00
Gabriel Luong
7563059c05 Bug 1467572 - Part 14: Set the minimum viewport dimension to 50px. r=rcaliman 2018-08-15 17:27:49 -04:00
Gabriel Luong
ba9f663c64 Bug 1467572 - Part 13: Removes the custom toolbar button styling and fixes the sizing of the device close button in RDM. r=rcaliman 2018-08-15 17:27:47 -04:00
Gabriel Luong
f401295f1f Bug 1467572 - Part 12: Use native context menu instead of select element in the Device selector. r=Honza
- Removes all the unused styling for the <select> and <option> elements and the
toolbar-dropdown class.
2018-08-15 17:27:46 -04:00
Gabriel Luong
df39a60dc7 Bug 1467572 - Part 11: Use native context menu instead of select elements in the DPR menu. r=Honza
--HG--
rename : devtools/client/responsive.html/components/DevicePixelRatioSelector.js => devtools/client/responsive.html/components/DevicePixelRatioMenu.js
2018-08-15 17:27:44 -04:00
Gabriel Luong
8f8bab224c Bug 1467572 - Part 10: Reuse the network throttling menu in the network monitor in RDM. r=Honza
- Removes the duplicate dropdown arrow icon that is used in both RDM and Network monitor
- Converts the network throttling menu in the network monitor to be a shared component that
can be used in both RDM and network monitor
- Move the common styles for the dropdown menu button into toolbars.css

--HG--
rename : devtools/client/shared/components/throttling/NetworkThrottlingSelector.js => devtools/client/shared/components/throttling/NetworkThrottlingMenu.js
2018-08-15 17:27:43 -04:00
Gabriel Luong
8112f73aed Bug 1467572 - Part 9: Use native context menu instead of select elements in the reload condition menu of RDM. r=Honza
- Converts the reload condition <select> to use native context menu
- Converts the showMenu util to be reusable by both RDM and the Network Monitor
- Renames getToplevelWindow to getTopLevelWindow
- Renames the reload condition menu to be a setting menu in RDM according to the designs
- Uses the new photon setting icon in RDM

--HG--
rename : devtools/client/responsive.html/components/ReloadConditions.js => devtools/client/responsive.html/components/SettingsMenu.js
rename : devtools/client/netmonitor/src/utils/menu.js => devtools/client/shared/components/menu/utils.js
2018-08-15 17:27:41 -04:00
Gabriel Luong
0cf08baeef Bug 1467572 - Part 8: Add proper separators to the global toolbar. r=jryans 2018-08-15 17:27:39 -04:00
Gabriel Luong
d280f20fc3 Bug 1467572 - Part 7: Add rotate viewport button to the global toolbar. r=jryans 2018-08-15 17:27:37 -04:00
Gabriel Luong
3f628eefa6 Bug 1467572 - Part 6: Add the viewport dimension to the global toolbar. r=jryans 2018-08-15 17:27:36 -04:00
Gabriel Luong
2489d2f23f Bug 1467572 - Part 5: Implement the new style for the global toolbar. r=rcaliman
--HG--
rename : devtools/client/responsive.html/components/GlobalToolbar.js => devtools/client/responsive.html/components/Toolbar.js
2018-08-15 17:27:34 -04:00
Gabriel Luong
889739ae50 Bug 1467572 - Part 4: Move the device selector into the global toolbar. r=jryans 2018-08-15 17:27:32 -04:00
Gabriel Luong
49825bb4d4 Bug 1467572 - Part 3: Remove the viewport dimension. r=jryans 2018-08-15 17:27:30 -04:00
Gabriel Luong
c2dc2e8274 Bug 1467572 - Part 2: Remove the viewport toolbar. r=jryans 2018-08-15 17:27:28 -04:00
Gabriel Luong
c2a8f1e87b Bug 1467572 - Part 1: Move the App component into the component folder. r=jryans
--HG--
rename : devtools/client/responsive.html/app.js => devtools/client/responsive.html/components/App.js
2018-08-15 17:27:26 -04:00
Cameron McCormack
a4d0161e79 Bug 1483449 - Simplify nsStaticAtomUtils::Lookup. r=njn 2018-08-16 11:40:02 +10:00
Kris Maglione
6d732b690f Bug 1480319: Split favicon loading code out of ContentLinkHandler.jsm. r=Mossop
MozReview-Commit-ID: KyP42P5FJRq

--HG--
rename : browser/modules/ContentLinkHandler.jsm => browser/actors/LinkHandlerChild.jsm
rename : browser/modules/ContentLinkHandler.jsm => browser/modules/FaviconLoader.jsm
extra : rebase_source : dccf68b3e9e5d90dfca72a8860ca88d7ba67dfb7
extra : source : aa14dcca91fb46a6e44a68d2b0370dd0eff8d400
2018-08-01 21:36:12 -07:00
Mike Hommey
49dd99e3a3 Bug 1480631 - Switch Linux builds to clang. r=froydnj
This change switches most CI builds to clang, with a few exceptions:
- valgrind builds, until bug 1481670 is figured out.
- PGO and nightly builds, until that's fully tested.
- coverage builds, per bug 1471339 comment 17.
- base toolchain builds, to keep some builds on GCC even when we're
  fully switched to clang.
- any build that doesn't use build/unix/mozconfig.linux (e.g. probably
  all those driven by autospider.py, maybe others).
2018-08-16 10:32:33 +09:00
Matt Howell
a6c38b171f Bug 1481907 followup - Fix a memory allocation oversight. r=me
--HG--
extra : source : 73f53d38cf61a2e3c6dee857894b82d0a279df47
2018-08-15 18:08:07 -07:00
Jed Davis
5e630f7ccf Bug 1481978 - Change IPC CloseSuperfluousFds to prevent accidentally heap-allocating closures. r=glandium
Closures are nice but -- as pointed out in bug 1481978 comment #2 --
it's a footgun to take a std::function argument in a context where heap
allocation isn't safe.

Fortunately, non-capturing closures convert to C function pointers,
so a C-style interface with a void* context can still be relatively
ergonomic.
2018-08-15 19:08:40 -06:00
Csoregi Natalia
fcbb856357 Backed out 4 changesets (bug 1480319) for mochitest failures on test_ext_webrequest_filter.html. CLOSED TREE
Backed out changeset 186ad2d171c1 (bug 1480319)
Backed out changeset 0161b3bbc9d2 (bug 1480319)
Backed out changeset 30a0f8cede1e (bug 1480319)
Backed out changeset aa14dcca91fb (bug 1480319)

--HG--
rename : browser/modules/FaviconLoader.jsm => browser/modules/ContentLinkHandler.jsm
2018-08-16 03:46:56 +03:00
Csoregi Natalia
e67c081821 Backed out 19 changesets (bug 1467572) for devtools failures on browser_net_telemetry_throttle_changed.js. CLOSED TREE
Backed out changeset 39123899178c (bug 1467572)
Backed out changeset 62fcbe25665c (bug 1467572)
Backed out changeset 5ef6c1c42747 (bug 1467572)
Backed out changeset e295be61276e (bug 1467572)
Backed out changeset 41d85a6f8a2a (bug 1467572)
Backed out changeset 4e6b95a6c506 (bug 1467572)
Backed out changeset 36d459a24020 (bug 1467572)
Backed out changeset abb52c2c68ab (bug 1467572)
Backed out changeset 470b9ce4ba0f (bug 1467572)
Backed out changeset 37609995dc8f (bug 1467572)
Backed out changeset 636bf5ce96f7 (bug 1467572)
Backed out changeset 5880a55d2ee8 (bug 1467572)
Backed out changeset 0f19f84bb2ed (bug 1467572)
Backed out changeset e83526778ccd (bug 1467572)
Backed out changeset c42448ca6e4a (bug 1467572)
Backed out changeset 934fb24dad26 (bug 1467572)
Backed out changeset 6102b9ef805b (bug 1467572)
Backed out changeset 7aaea1245d27 (bug 1467572)
Backed out changeset 7793f8a2b14f (bug 1467572)

--HG--
rename : devtools/client/shared/components/menu/utils.js => devtools/client/netmonitor/src/utils/menu.js
rename : devtools/client/responsive.html/components/App.js => devtools/client/responsive.html/app.js
rename : devtools/client/responsive.html/components/DevicePixelRatioMenu.js => devtools/client/responsive.html/components/DevicePixelRatioSelector.js
rename : devtools/client/responsive.html/components/Toolbar.js => devtools/client/responsive.html/components/GlobalToolbar.js
rename : devtools/client/responsive.html/components/SettingsMenu.js => devtools/client/responsive.html/components/ReloadConditions.js
rename : devtools/client/shared/components/throttling/NetworkThrottlingMenu.js => devtools/client/shared/components/throttling/NetworkThrottlingSelector.js
2018-08-16 03:43:41 +03:00
Matthew Gaudet
702d2b2570 Bug 1483542 - Correct the expected compare type computation for CacheIR stubs in some cases r=tcampbell
--HG--
extra : rebase_source : 915e290b73a818e0bb2f8b81d814e81f272e4103
extra : amend_source : e63d0980b316fae4233e6f152310322e18e1f283
2018-08-15 14:44:00 -04:00
Brian Birtles
29e984d336 Bug 1483404 - Use "auto" values for unspecified keyframe-specific composite operations; r=smaug
Summary:
This brings our implementation into line with the following spec change:

  ced6b5aac0

See https://github.com/w3c/csswg-drafts/issues/3000

Reviewers: smaug

Tags: #secure-revision

Bug #: 1483404

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

--HG--
extra : rebase_source : 097d8307cea82b5d1ea0345414153965067b2b5b
extra : amend_source : fe1f4aeef842961600fe3dba760a573ed2fc84df
2018-08-15 09:51:28 +09:00
Randell Jesup
c1e6e4d220 Bug 1482899: un-bitrot --enable-perf r=jandem 2018-08-15 19:47:22 -04:00
Ehsan Akhgari
60f130b6fc Bug 1483604 - Part 3: Pass in a channel object when calling InternalStorageAllowedForPrincipal() from StorageAllowedForWindow() and StorageAllowedForDocument(); r=smaug 2018-08-15 19:00:52 -04:00
Ehsan Akhgari
99d839224e Bug 1483604 - Part 2: Make all of the external consumers of nsContentUtils::StorageDisabledByAntiTracking() pass a channel if available; r=smaug 2018-08-15 19:00:52 -04:00
Ehsan Akhgari
0ef6860e9a Bug 1483604 - Part 1: Only call NotifyContentBlockingState() when the channel argument is non-null; r=smaug 2018-08-15 19:00:51 -04:00
Matthew Noorenberghe
e4b01ff640 Bug 1465673 - Disable browser_card_edit.js on linux debug builds. r=me
--HG--
extra : rebase_source : c6c5ced06a994179f1cbf16762e085e58e9e6f9e
2018-08-15 14:21:18 -07:00
Gabriel Luong
fb8789b523 Bug 1467572 - Part 19: Remove responsive-ua.css. r=rcaliman 2018-08-15 17:27:58 -04:00
Gabriel Luong
8ca98140f5 Bug 1467572 - Part 18: Show an onboarding tooltip for the setting menu button in RDM. r=jdescottes
Design https://mozilla.invisionapp.com/d/main#/console/12408235/300479943/preview
2018-08-15 17:27:57 -04:00
Gabriel Luong
8d5a3eacf4 Bug 1467572 - Part 17: Implement left alignment of viewports. r=rcaliman 2018-08-15 17:27:55 -04:00
Gabriel Luong
6b8e5c657d Bug 1467572 - Part 16: Adjust RDM colors for the light and dark theme to match the designs. r=rcaliman
Light Theme Design https://mozilla.invisionapp.com/d/main#/console/12408235/300479943/preview
Dark Theme Design https://mozilla.invisionapp.com/d/main#/console/12408235/302151757/preview
2018-08-15 17:27:53 -04:00
Gabriel Luong
8bfb4863a1 Bug 1467572 - Part 15: Fix unit tests for RDM to work with the new RDM design. r=Honza
- Various element IDs and strings were renamed in the preceeding patches before this. This fixes
the strings and element ID reference in the RDM unit tests.
- Fixed RDM unit tests to work with new native context menu which used to be <select> elements.
2018-08-15 17:27:51 -04:00
Gabriel Luong
4ae4bafb0d Bug 1467572 - Part 14: Set the minimum viewport dimension to 50px. r=rcaliman 2018-08-15 17:27:49 -04:00
Gabriel Luong
0d04044793 Bug 1467572 - Part 13: Removes the custom toolbar button styling and fixes the sizing of the device close button in RDM. r=rcaliman 2018-08-15 17:27:47 -04:00
Gabriel Luong
62b46d9afc Bug 1467572 - Part 12: Use native context menu instead of select element in the Device selector. r=Honza
- Removes all the unused styling for the <select> and <option> elements and the
toolbar-dropdown class.
2018-08-15 17:27:46 -04:00
Gabriel Luong
0167d8cf80 Bug 1467572 - Part 11: Use native context menu instead of select elements in the DPR menu. r=Honza
--HG--
rename : devtools/client/responsive.html/components/DevicePixelRatioSelector.js => devtools/client/responsive.html/components/DevicePixelRatioMenu.js
2018-08-15 17:27:44 -04:00