Changeset 255982 in webkit


Ignore:
Timestamp:
Feb 6, 2020 2:28:50 PM (4 years ago)
Author:
Devin Rousso
Message:

Web Inspector: REGRESSION(r249831): Sources: endless spinner when trying to view a resource
https://bugs.webkit.org/show_bug.cgi?id=207346
<rdar://problem/59209016>

Reviewed by Timothy Hatcher.

Source/WebInspectorUI:

  • UserInterface/Workers/Formatter/HTMLParser.js:

(HTMLParser.prototype._parseAttr):
Attributes are allowed to contain "/".
https://html.spec.whatwg.org/multipage/parsing.html#before-attribute-value-state

LayoutTests:

  • inspector/formatting/resources/html-tests/attributes.html:
  • inspector/formatting/resources/html-tests/attributes-expected.html:
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r255979 r255982  
     12020-02-06  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: REGRESSION(r249831): Sources: endless spinner when trying to view a resource
     4        https://bugs.webkit.org/show_bug.cgi?id=207346
     5        <rdar://problem/59209016>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        * inspector/formatting/resources/html-tests/attributes.html:
     10        * inspector/formatting/resources/html-tests/attributes-expected.html:
     11
    1122020-02-06  Truitt Savell  <tsavell@apple.com>
    213
  • trunk/LayoutTests/inspector/formatting/resources/html-tests/attributes-expected.html

    r249831 r255982  
    1616<p attr=value1 attr=value2></p>
    1717<p a=1 b=2></p>
     18<p href1=#fragment href2=/path/page.html href3=example.org href4=//example.org href5=http://example.org></p>
    1819
    1920<p a=1 b=2></p>
  • trunk/LayoutTests/inspector/formatting/resources/html-tests/attributes.html

    r249831 r255982  
    1616<p attr=value1 attr=value2></p>
    1717<p a=1 b=2></p>
     18<p href1=#fragment href2=/path/page.html href3=example.org href4=//example.org href5=http://example.org></p>
    1819
    1920<p
  • trunk/Source/WebInspectorUI/ChangeLog

    r255980 r255982  
     12020-02-06  Devin Rousso  <drousso@apple.com>
     2
     3        Web Inspector: REGRESSION(r249831): Sources: endless spinner when trying to view a resource
     4        https://bugs.webkit.org/show_bug.cgi?id=207346
     5        <rdar://problem/59209016>
     6
     7        Reviewed by Timothy Hatcher.
     8
     9        * UserInterface/Workers/Formatter/HTMLParser.js:
     10        (HTMLParser.prototype._parseAttr):
     11        Attributes are allowed to contain "/".
     12        https://html.spec.whatwg.org/multipage/parsing.html#before-attribute-value-state
     13
    1142020-02-06  Devin Rousso  <drousso@apple.com>
    215
  • trunk/Source/WebInspectorUI/UserInterface/Workers/Formatter/HTMLParser.js

    r249867 r255982  
    364364            }
    365365
    366             let attributeValue = this._consumeRegex(/[^\s=/>]+/);
     366            let attributeValue = this._consumeRegex(/[^\s=>]+/);
    367367            this._pushAttribute({name: attributeName, value: attributeValue, quote: HTMLParser.AttrQuoteType.None, namePos: attributeNameStartPos, valuePos: attributeValueStartPos});
    368368            return;
Note: See TracChangeset for help on using the changeset viewer.