[webkit-changes] [WebKit/WebKit] 93eafb: Web Inspector: Show "Device" menu for all sessions

Patrick Angle noreply at github.com
Tue Dec 6 12:38:17 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 93eafbf907d4c798d27490949b762d826870dab8
      https://github.com/WebKit/WebKit/commit/93eafbf907d4c798d27490949b762d826870dab8
  Author: Patrick Angle <pangle at apple.com>
  Date:   2022-12-06 (Tue, 06 Dec 2022)

  Changed paths:
    M Source/WebInspectorUI/UserInterface/Base/Main.js
    A Source/WebInspectorUI/UserInterface/Images/Computer.svg

  Log Message:
  -----------
  Web Inspector: Show "Device" menu for all sessions
https://bugs.webkit.org/show_bug.cgi?id=247808
rdar://102241043

Reviewed by Timothy Hatcher.

The device menu allows for applying an array of options that can negatively affect other tabs/windows if those settings
are applied globally. We currently already show the Device menu for remote inspection (like iOS), and with this patch we
will do so for local inspection (like macOS) as well, allowing developers to continue to use the rest of the browser for
normal browsing tasks, instead of using the browser's global settings for disabling core features which will break other
pages, like documentation, they are viewing.

For now we hide the User Agent dropdown, as it is not currently correctly tracking the state of the view, causing some
browser features like Safari's Responsive Design Mode to change the UA without updating this UI at the same time.

* Source/WebInspectorUI/UserInterface/Base/Main.js:
* Source/WebInspectorUI/UserInterface/Images/Computer.svg: Added.

Canonical link: https://commits.webkit.org/257426@main




More information about the webkit-changes mailing list